银行数据库

如何在部分数据库表空间重建后恢复余下的表空间

做了个简单的实验,想用testdb1的完整备份用rebuild的方式恢复部分表空间至testdb12,再用testdb1的完备来恢复前面未恢复的表空间,但是在做后一步的时候,一直报SQL2560N错误,具体见下面的摘要,不知哪里有问题

>db2 "restore db testdb1 rebuild with all tablespaces in database except
tablespace (USERSPACE1) from E:fordb2testbackup taken at
20110105085934 into testdb12"
DB20000I  RESTORE DATABASE命令成功完成。

>db2 "rollforward db testdb12 to end of logs and stop"
SQL1271W  恢复了数据库 "TESTDB12",但一个或多个表空间在节点 "0" 上已脱机。

>db2 "restore db testdb1  tablespace (USERSPACE1) from
E:fordb2testbackup taken at 20110105085934 into testdb12"
SQL2560N  对于从表空间级别备份的复原,目标数据库与源数据库不完全相同。
参与4

3同行回答

wangzhonnewwangzhonnew软件工程师IBM Canada Ltd.
simply you can't do that, once database is restored using specific tablespaces, you can't restore other tablespaces into it, you need to start a brand new restore to another database, with all expected tablespaces显示全部
simply you can't do that, once database is restored using specific tablespaces, you can't restore other tablespaces into it, you need to start a brand new restore to another database, with all expected tablespaces收起
IT分销/经销 · 2011-03-14
浏览375
start2000start2000系统架构师ABB
20110105085934不是数据库备份吗,怎么用来恢复表空间了?显示全部
20110105085934不是数据库备份吗,怎么用来恢复表空间了?收起
互联网服务 · 2011-03-14
浏览357
stephensun123stephensun123软件开发工程师SAP China
回复 3# wangzhonnew Hi Tao, not sure about this. See below link    http://it.toolbox.com/blogs/db2luw/recover-database-from-only-tablespace-backups-10194显示全部
回复 3# wangzhonnew

Hi Tao, not sure about this. See below link
    http://it.toolbox.com/blogs/db2luw/recover-database-from-only-tablespace-backups-10194收起
互联网服务 · 2011-03-14
浏览422

提问者

ysgift
数据库管理员招商银行
擅长领域: 系统运维智能化运维

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2011-03-14
  • 关注会员:1 人
  • 问题浏览:2890
  • 最近回答:2011-03-14
  • X社区推广