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

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

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

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

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

 

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

  1. DB2 drop db sample 

2)、恢復(fù)備份歷史紀(jì)錄(每次backup,不論類型,都會(huì)備份歷史紀(jì)錄文件)。這里的時(shí)間戳應(yīng)該是***的:

 

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

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

 

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

命令返回建議的必需的恢復(fù)操作命令。

 

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

 

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

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

 

5)、這時(shí)數(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 

前滾到同一個(gè)時(shí)間點(diǎn)。這個(gè)操作要在主節(jié)點(diǎn)來做。

 

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

 

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

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

 

3)、恢復(fù)的例子中只做了版本恢復(fù)。若還有更新的全備份和增量備份的image,可以依次做DB2數(shù)據(jù)庫恢復(fù)(注意使用DB2ckrst的建議恢復(fù)次序和次數(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 是存儲(chǔ)備份的目錄或設(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 

確認(rèn)執(zhí)行:TERMINATE

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

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

 

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

 

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

【編輯推薦】

  1. DB2性能優(yōu)化之設(shè)計(jì)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ù)庫進(jìn)行備份在AIX如何操作?
責(zé)任編輯:佚名 來源: 網(wǎng)界網(wǎng)
相關(guān)推薦

2011-03-03 14:52:40

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

2010-11-03 16:32:10

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

2010-08-12 13:32:08

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

2010-08-31 13:35:53

DB2備份恢復(fù)

2010-08-26 16:15:25

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

2010-08-09 13:30:27

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

2010-08-16 13:45:27

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

2010-08-03 09:49:58

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

2011-03-25 15:12:42

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

2010-08-25 14:12:47

DB2備份恢復(fù)

2009-03-25 17:43:09

備份DB2IBM

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

備份恢復(fù)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備份恢復(fù)

2010-08-25 10:16:48

DB2備份Linux
點(diǎn)贊
收藏

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