免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3591 | 回复: 2
打印 上一主题 下一主题

db2relocatedb失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-23 18:03 |只看该作者 |倒序浏览
数据库版本为V7.2,有某个表空间的某个CONTAINER命名出错,有朋友指导说可以用DB2RELOCATEDB来更正。于是参照http://www.qazpl.com/jiaocheng/it/ShowArticle.asp?ArticleID=7297,写了一个TEST.cfg文件,内容如下:

DB_NAME=TEST
DB_PATH=E:
INSTANCE=DB2
cont_path=E:/db2/test.container0022,E:/db2/test.container002

执行db2relocatedb -f test.cfg,却提示:No changes to files or control structures were required.

请问这是怎么回事?

论坛徽章:
0
2 [报告]
发表于 2007-08-07 15:37 |只看该作者
up

论坛徽章:
0
3 [报告]
发表于 2007-08-15 17:03 |只看该作者
请根据下列步骤实施:

1.)db2stop
2.)Change the following entry in the relocation script db2relocatedb.scr
Source:
CONT_PATH=         /db2/<Txx>/sapdata6/PSAPPOOLD.container001,
                        /db2/<Txx>/sapdata6/PSAPPOOLD.container001
Target:
CONT_PATH=         /db2/<Txx>/sapdata6/PSAPPOOLD.container001,
                        /db2/<Txx>/sapdata3/PSAPPOOLD.container001
3.)Move the container PSAPPOOLD.container001 to /db2/<Txx>/sapdata3:
mv  /db2/<Txx>/sapdata6/PSAPPOOLD.container001  /db2/<Txx>/sapdata3
5.)Now start your DB2 training instance : db2start
6.) db2relocatedb -f db2relocatedb.scr
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP