数据库表空间重定向恢复问题

我有2个数据库,在一个instance下,sample和tesdb,testdb有2个表空间是采用裸设备,我现在备份sample表空间 IBMDB2SAMPLEREL,IBMDB2SAMPLEXML,都是file类型db2 " backup database sample tablespace (IBMDB2SAMPLEREL,IBMDB2SAMPLEXML ) to /home/db2inst1/backup"现在我想把s...显示全部
我有2个数据库,在一个instance下,sample和tesdb,testdb有2个表空间是采用裸设备,我现在备份sample表空间 IBMDB2SAMPLEREL,IBMDB2SAMPLEXML,都是file类型
db2 " backup database sample tablespace (IBMDB2SAMPLEREL,IBMDB2SAMPLEXML ) to /home/db2inst1/backup"


现在我想把smaple的这2个表空间的数据重定向恢复到testdb上的裸设备表空间上
db2 "restore db sample tablespace (IBMDB2SAMPLEREL,IBMDB2SAMPLEXML ) from /home/db2inst1/backup to /dbdir  into testdb redirect"
但报错如下:SQL2560N  The target database is not identical to the source database for a
restore from a table space level backup.

我想问下这是不支持表空间重定向恢复啊?收起
参与12

查看其它 10 个回答ynkmtang的回答

ynkmtangynkmtang系统工程师be
我现在用整个数据库来还原,db2 restore db sample  on /dbdir  into testdb  redirect ,但是在db2 "set tablespace containers for 3 using (device '/dev/radtods_dat_01' 131072)" 时提示
SQL20319N  The SET TABLESPACE CONTAINERS command is not allowed on an
automatic storage table space.  SQLSTATE=55061
我创建数据库为automatic storage no,然后再试,重定向容器时还是报同样的错,难道表空间就不能指定到裸设备吗?
IT咨询服务 · 2015-04-16
浏览1855

回答者

ynkmtang
系统工程师be
擅长领域: 服务器存储灾备

ynkmtang 最近回答过的问题

回答状态

  • 发布时间:2015-04-16
  • 关注会员:1 人
  • 回答浏览:1855
  • X社区推广