偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

DB2在線備份,以及重定向恢復實戰(zhàn)演習!

數(shù)據(jù)庫
我們今天主要向大家描述的是DB2在線備份,以及重定向恢復的實際操作步驟,以及對其在實際操作中經(jīng)常要遇到的問題的破解。

以下的文章主要向大家描述的是DB2在線備份,以及重定向恢復的實際操作步驟,相信如果你掌握了DB2在線備份,以及重定向恢復的實際操作步驟,會在以后的學習或是工作中帶來很大的幫助。

目標:在數(shù)據(jù)庫服務器上備份,然后將這個備份重定向恢復到本機數(shù)據(jù)庫上。

1.先在數(shù)據(jù)庫服務器上執(zhí)行如下命令進行全盤DB2在線備份(包括日志) (db2 ? backup可以查看backup幫助信息)

 

  1. db2 backup db wdcs online to E:\Allan include logs 時間戳為20100420093345 


然后將該備份映像拷貝至本機的C:\temp路徑下

2.在數(shù)據(jù)庫服務器上執(zhí)行如下命令查看當前數(shù)據(jù)庫表空間情況

 

  1. db2 list tablespaces show detail 

3.在本地為原數(shù)據(jù)庫創(chuàng)建相應的表空間容器。進入cmd窗口執(zhí)行一下命令:

 

  1. mkdir C:\DB2 \NODE0000\wdcs\syscatspace C:\DB2 \NODE0000\wdcs\indexspace1   
  2. C:\DB2 \NODE0000\wdcs\systoolspace C:\DB2 \NODE0000\wdcs\systoolstmpspace  
  3. C:\DB2 \NODE0000\wdcs\tablespace1 C:\DB2 \NODE0000\wdcs\tempspace1 C:\DB2 \NODE0000\wdcs\userspace1  

 

4.在本地創(chuàng)建一個跟數(shù)據(jù)庫服務器上同名的空數(shù)據(jù)庫wdcs: create db wdcs

5.開始本機上執(zhí)行數(shù)據(jù)庫恢復命令(將日志指定存放的路徑為:

 

  1. C:\db2workspace\wdcs_log)  
  2. db2 restore db wdcs from c:\temp taken at 20100420093345 into wdcs logtarget c:\db2workspace\wdcs_log redirect  

 

此時會提示要求指定存儲容器路徑

6.要恢復的本地數(shù)據(jù)庫表空間指定容器,執(zhí)行下列命令 ( 其中的數(shù)字:0,1,2,3,4,5,6,7,8是源數(shù)據(jù)庫的表空間標識,path后面的路徑就是上面第3步建的路徑,標識號和路徑一一對應 ,最后的file "c:\db2workspace\wdcscontainer\dms.dat" 50000;file "c:\db2workspace\wdcscontainer\index.dat" 50000 是重新建立DB2在線備份管理類型的表空間容器)

 

  1. db2 set tablespace containers for 0 using (path "c:\DB2\node0000\wdcs\syscatspace")  
  2. db2 set tablespace containers for 1 using (path "c:\DB2\node0000\wdcs\tempspace1")  
  3. db2 set tablespace containers for 2 using (path "c:\DB2\node0000\wdcs\userspace1")  
  4. db2 set tablespace containers for 3 using (path "c:\DB2\node0000\wdcs\systoolspace")  
  5. db2 set tablespace containers for 4 using (path "c:\DB2\node0000\wdcs\tablespace1")  
  6. db2 set tablespace containers for 5 using (path "c:\DB2\node0000\wdcs\indexspace1")  
  7. db2 set tablespace containers for 6 using (path "c:\DB2\node0000\wdcs\systoolstmpspace")  
  8. db2 set tablespace containers for 7 using (file "c:\db2workspace\wdcscontainer\dms.dat" 50000)  
  9. db2 set tablespace containers for 8 using (file "c:\db2workspace\wdcscontainer\index.dat" 50000) 

7.然后繼續(xù)執(zhí)行恢復:

 

  1. db2 restore db wdcs continue 

8. 最后要執(zhí)行前滾命:


 

  1. db2 rollforward db wdcs to end of logs and stop overflow log path (C:\db2workspace\wdcs_log)  

以上的相關內(nèi)容就是對DB2在線備份,重定向恢復的介紹,望你能有所收獲。

【編輯推薦】

  1. 揭秘DB2 9數(shù)據(jù)庫需要的內(nèi)存與磁盤條件!
  2. 手動安裝DB2數(shù)據(jù)庫的實現(xiàn)在UNIX操作環(huán)境下
  3. DB2數(shù)據(jù)庫備份參數(shù)修改后報錯如何拯救?
  4. DB2 V9.7啟用索引壓縮大揭秘
  5. import 或是 load多個DB2主從表談何容易?
     
責任編輯:佚名 來源: 計算機產(chǎn)品與流通
相關推薦

2010-08-06 13:26:29

DB2建立databa

2010-08-12 15:16:50

DB2在線備份

2010-08-17 14:15:11

DB2重定向恢復失敗

2010-08-03 16:54:10

DB2 9.5

2010-08-12 11:38:21

DB2數(shù)據(jù)庫

2015-10-29 15:06:36

DB2重定向恢復數(shù)據(jù)

2010-08-17 14:55:33

DB2離線

2010-07-22 14:59:24

SQL Server

2010-09-06 16:02:00

DB2

2011-03-25 15:12:42

DB2數(shù)據(jù)庫

2010-08-06 09:25:19

重定向恢復DB2

2010-08-04 13:15:21

2010-08-06 09:07:15

DB2線增量備份

2010-11-03 14:10:23

DB2在線備份

2010-08-05 15:32:44

重定向恢復DB2數(shù)據(jù)庫

2010-08-20 14:31:32

復制DB2數(shù)據(jù)庫

2010-09-06 09:37:06

DB2用戶密碼修改

2021-08-02 19:39:51

網(wǎng)絡測試路由器

2015-10-23 16:37:13

提高DB2數(shù)據(jù)備份

2011-05-11 13:01:07

DB2數(shù)據(jù)恢復數(shù)據(jù)備份
點贊
收藏

51CTO技術棧公眾號