自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

實現(xiàn)DB2數(shù)據(jù)庫恢復的路如何走好?

數(shù)據(jù)庫
我們今天主要向大家描述的是DB2數(shù)據(jù)庫恢復的正確操作步驟,同時本文也有對DB2數(shù)據(jù)庫恢復的實際操作中的細節(jié)操作的描述。

以下的文章主要向大家講述的是DB2數(shù)據(jù)庫恢復的正確操作步驟,以及對在實現(xiàn)DB2數(shù)據(jù)庫恢復的實際操作中所要涉及到的相關(guān)操作的描述,以下就是相關(guān)內(nèi)容的具體描述,希望會給你帶來一些幫助在此方面。

恢復數(shù)據(jù)庫

 

1)、手工drop數(shù)據(jù)庫,模擬災難DB2數(shù)據(jù)庫恢復的情況,執(zhí)行如下操作:

  1. DB2 drop db sample 

2)、恢復備份歷史紀錄(每次backup,不論類型,都會備份歷史紀錄文件)。這里的時間戳應該是***的:

 

  1. DB2 restore db sample history file use tsm taken at 20030102223107 buffer 100 

3)、使用DB2的恢復幫助工具:

 

  1. DB2ckrst -d sample -t 20030101224424 -r database 

命令返回建議的必需的恢復操作命令。

 

4)、按照幫助工具的提示,先做版本恢復,DB2數(shù)據(jù)庫恢復命令如下:

 

  1. DB2 restore db sample incremental use tsm taken at 20030101224424 buffer 100 

同樣先做主節(jié)點的恢復,再做其他節(jié)點的恢復操作。

 

5)、這時數(shù)據(jù)庫處于rollforward-pending state的狀態(tài),需要做roll forward 操作:

 

  1. DB2 rollforward db sample to 2003-01-12-13.27.25.000000 on all nodes and stop 

前滾到同一個時間點。這個操作要在主節(jié)點來做。

 

5、有關(guān)說明:

 

1)、恢復操作也有online和offline的,區(qū)別如同backup的操作。

2)、按照表空間的備份和恢復類似,加子句TABLESPACE ( tablespace-name )即可。表空間級別的備份/恢復操作要求數(shù)據(jù)庫處于歸檔日志和啟用增量備份模式下。

 

3)、恢復的例子中只做了版本恢復。若還有更新的全備份和增量備份的image,可以依次做DB2數(shù)據(jù)庫恢復(注意使用DB2ckrst的建議恢復次序和次數(shù))后,再做roll forward.

 

  1. DB2 force applications all  
  2. DB2 backup db ldapDB2 to directory_or_device 

DB2 restore db ldapDB2 from directory_or_device replace existing其中 directory_or_device 是存儲備份的目錄或設(shè)備的名稱。

 

windows 遷移到 linux:

  1. DB2move tfms export;  
  2. create db tfms;  
  3. DB2move tfms -u -p import > a.txt;  
  4. DB2move tfmsw179 import -u DB2admin -p DB2admin > a.txt 

確認執(zhí)行:TERMINATE

6、恢復數(shù)據(jù)庫

(1)先創(chuàng)建空數(shù)據(jù)庫:DB2 create db NewdbName

 

(2)DB2 restore olddbName(需DB2數(shù)據(jù)庫恢復數(shù)據(jù)庫名稱) taken at Times(時間點) into NewdbName(新數(shù)據(jù)庫名稱)

 

注:在恢復新的數(shù)據(jù)庫的名稱和剛創(chuàng)建的名稱一樣。

【編輯推薦】

  1. DB2性能優(yōu)化之設(shè)計DB2配置數(shù)據(jù)庫很好用!
  2. DB2性能調(diào)優(yōu)中易出現(xiàn)的問題有哪些?
  3. DB2***SQL性能調(diào)節(jié)技術(shù)經(jīng)典版
  4. DB2 并行版本中的查詢優(yōu)化登峰造極!
  5. DB2數(shù)據(jù)庫進行備份在AIX如何操作?
責任編輯:佚名 來源: 網(wǎng)界網(wǎng)
相關(guān)推薦

2011-03-03 14:52:40

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

2010-08-12 13:32:08

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

2010-11-03 16:32:10

DB2創(chuàng)建數(shù)據(jù)庫

2010-08-31 13:35:53

DB2備份恢復

2010-08-26 16:15:25

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

2010-08-09 13:30:27

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

2010-08-03 09:49:58

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

2010-08-16 13:45:27

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

2010-08-25 14:12:47

DB2備份恢復

2009-03-25 17:43:09

備份DB2IBM

2011-03-25 15:12:42

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

2010-08-12 11:38:21

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

2010-08-12 10:54:21

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

2011-03-11 16:02:03

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

2010-08-17 10:56:13

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

2010-08-17 13:12:18

備份恢復DB2

2011-03-25 14:53:39

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

2010-08-17 09:48:40

DB2 分區(qū)數(shù)據(jù)庫

2010-08-27 13:27:50

DB2備份恢復

2010-08-25 10:16:48

DB2備份Linux
點贊
收藏

51CTO技術(shù)棧公眾號