一则DB2数据库重定向表空间的恢复案例
|
源代码网整理以下DB2数据库重定向表空间的恢复案例: 源代码网整理以下db2 restore database sino into jinan3 源代码网整理以下redirect without rolling forward 源代码网整理以下db2 "set tablespace containers for 2 using 源代码网整理以下(file "/opt/data/jinan3/ct/userspace1" 65536, file " 源代码网整理以下/opt/data/jinan3/ct/userspace2" 65536 , file "/opt 源代码网整理以下/data/jinan3/ct/userspace3" 65536, file "/opt/data 源代码网整理以下/jinan3/ct/userspace4" 65536 , file "/opt/data 源代码网整理以下/jinan3/ct/userspace5" 65536)" 源代码网整理以下db2 "set tablespace containers for 3 using 源代码网整理以下(path "/opt/data/jinan3/ct_temp_sys_16")" 源代码网整理以下db2 "set tablespace containers for 4 using 源代码网整理以下(path "/opt/data/jinan3/ct_temp_user_16")" 源代码网整理以下db2 restore db sino continue 源代码网整理以下----实际操作的过程----注意:重新定向的表空间位置根据实际需求自己定义 源代码网整理以下F:2008_1_21>db2 restore db gzk_1_5 into gzk_1 源代码网整理以下redirect without rolling forward 源代码网整理以下F:2008_1_21>db2 "set tablespace containers 源代码网整理以下for 3 using (file "E:db2gzk_1data 源代码网整理以下8data8-1.dat" 64000, file "e:db2gzk_1data8data8-2.dat" 64000)" 源代码网整理以下DB20000I SET TABLESPACE CONTAINERS命令成功完成。 源代码网整理以下F:2008_1_21>db2 "set tablespace containers 源代码网整理以下for 4 using (file "E:db2gzk_1data 源代码网整理以下16data16-1.dat" 32000)" 源代码网整理以下DB20000I SET TABLESPACE CONTAINERS命令成功完成。 源代码网整理以下F:2008_1_21>db2 "set tablespace containers 源代码网整理以下for 5 using (file "E:db2gzk_1inde 源代码网整理以下x8index8-1.dat" 64000)" 源代码网整理以下DB20000I SET TABLESPACE CONTAINERS命令成功完成。 源代码网整理以下F:2008_1_21>db2 "set tablespace containers 源代码网整理以下for 6 using (file "E:db2gzk_1long 源代码网整理以下8long8-1.dat" 64000)" 源代码网整理以下DB20000I SET TABLESPACE CONTAINERS命令成功完成。 源代码网整理以下F:2008_1_21>db2 "set tablespace containers for 源代码网整理以下7 using (path "E:db2gzk_1 emp 源代码网整理以下8")" 源代码网整理以下DB20000I SET TABLESPACE CONTAINERS命令成功完成。 源代码网整理以下F:2008_1_21>db2 "set tablespace containers 源代码网整理以下for 8 using (path "E:db2gzk_1 emp 源代码网整理以下16")" 源代码网整理以下DB20000I SET TABLESPACE CONTAINERS命令成功完成。 源代码网整理以下F:2008_1_21>db2 restore db gzk_1_5 continue 源代码网整理以下DB20000I RESTORE DATABASE命令成功完成。 源代码网供稿. |
