12
返回列表 发新帖
楼主: hooboor

[FAQ] 如何删除list db directory命令列出的条目

[复制链接]
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
11#
发表于 2008-4-17 19:21 | 只看该作者
doubt if it's the correct way just uncatalog it.... if you didn't use "drop db" command instead just delete the data file, the db information still exist in local sqldbdir, so if you do "db2 list db directory on <database path>", the information will still be there.... "uncatalog db" just remove the entry in ~/sqllib/sqldbdir/sqldbdir, not remove the entry in local sqldbdir file....

使用道具 举报

回复
论坛徽章:
233
天枰座
日期:2016-02-02 09:36:332012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41灰彻蛋
日期:2011-06-22 19:28:30现任管理团队成员
日期:2011-05-07 01:45:082010广州亚运会纪念徽章:拳击
日期:2011-04-08 16:56:552011新春纪念徽章
日期:2011-02-18 11:43:332011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:15
12#
发表于 2008-4-18 17:06 | 只看该作者
原帖由 wangzhonnew 于 2008-4-17 19:21 发表
doubt if it's the correct way just uncatalog it.... if you didn't use "drop db" command instead just delete the data file, the db information still exist in local sqldbdir, so if you do "db2 list db directory on ", the information will still be there.... "uncatalog db" just remove the entry in ~/sqllib/sqldbdir/sqldbdir, not remove the entry in local sqldbdir file....

使用道具 举报

回复
论坛徽章:
12
开发板块每日发贴之星
日期:2005-05-15 01:02:09ERP板块每日发贴之星
日期:2010-05-29 01:01:01生肖徽章2007版:鼠
日期:2009-03-10 21:26:28生肖徽章2007版:虎
日期:2008-11-19 08:08:16ERP板块每日发贴之星
日期:2008-11-18 01:01:03生肖徽章2007版:狗
日期:2008-11-17 20:21:29ERP板块每日发贴之星
日期:2008-11-16 01:01:04奥运会纪念徽章:乒乓球
日期:2008-08-12 22:18:43授权会员
日期:2008-02-29 10:22:07生肖徽章2007版:虎
日期:2008-02-28 21:02:13
13#
发表于 2008-7-4 08:03 | 只看该作者
study it

使用道具 举报

回复
论坛徽章:
2
CTO参与奖
日期:2009-02-20 09:44:20CTO参与奖
日期:2009-02-25 11:11:28
14#
发表于 2012-1-12 15:09 | 只看该作者
wangzhonnew 发表于 2008-4-17 19:21
doubt if it's the correct way just uncatalog it.... if you didn't use "drop db" command instead just ...

if so, how to remove the entry? drop the db?

使用道具 举报

回复
论坛徽章:
2
CTO参与奖
日期:2009-02-20 09:44:20CTO参与奖
日期:2009-02-25 11:11:28
15#
发表于 2012-1-12 15:11 | 只看该作者
wangzhonnew 发表于 2008-4-17 19:21
doubt if it's the correct way just uncatalog it.... if you didn't use "drop db" command instead just ...

if we drop the wrong entry by drop database dbname, it will return error as below:

SQL1036C  An I/O error occurred while accessing the database.  SQLSTATE=58030

Any idea?

使用道具 举报

回复
招聘 : c/c++研发
论坛徽章:
45
技术图书徽章
日期:2014-03-10 14:09:192012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
16#
发表于 2012-1-12 22:54 | 只看该作者
gulangduhu 发表于 2012-1-12 16:11
if we drop the wrong entry by drop database dbname, it will return error as below:

SQL1036C  An ...

can you show some screenshot about the scenario that you are talking about?
include all input/output/list db dir/ls -laR stuff

使用道具 举报

回复
论坛徽章:
15
2009新春纪念徽章
日期:2009-01-04 14:52:28ITPUB十周年纪念徽章
日期:2011-11-01 16:20:28茶鸡蛋
日期:2011-06-09 12:05:152011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:网球
日期:2010-12-01 20:55:192010广州亚运会纪念徽章:藤球
日期:2010-11-22 15:43:49ITPUB9周年纪念徽章
日期:2010-10-08 09:32:252010年世界杯参赛球队:朝鲜
日期:2010-06-29 15:28:312010新春纪念徽章
日期:2010-03-01 11:06:12生肖徽章2007版:猪
日期:2009-11-13 17:36:11
17#
发表于 2012-1-18 12:46 | 只看该作者
db2 uncatalog database <database name>

使用道具 举报

回复
论坛徽章:
0
18#
发表于 2012-1-25 02:20 | 只看该作者
GOOD

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表