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

DB2備份恢復(fù)數(shù)據(jù)庫的正確操作步驟,經(jīng)驗證

數(shù)據(jù)庫
我們今天是要和大家一起討論的是DB2備份恢復(fù)數(shù)據(jù)庫步驟(自己測試通過),其中包括設(shè)置歸檔參數(shù)、備份在線數(shù)據(jù)庫、恢復(fù)在線數(shù)據(jù)庫等內(nèi)容的描述。

以下的文章主要描述的是DB2備份恢復(fù)數(shù)據(jù)庫步驟(自己測試通過),本人是DB2數(shù)據(jù)庫的愛好者,關(guān)于DB2所有的知識都有興趣了解,雖是剛剛接觸DB2的數(shù)據(jù)庫,但是自己整理了一下備份的步驟,分享出來。有不對的地方請大家指正!!

一、設(shè)置歸檔參數(shù):

1、db2 update db cfg for <db_name> using mirrorlogpath /home/db2inst1/mirror_log/ //mirror log

2、db2 get db cfg for <db_name> //確認(rèn)是否成功

3、db2 update db cfg for <db_name> using userexit on //啟用用戶出口

4、db2 update db cfg for <db_name> using logretain on //啟用歸檔日志

5、db2 update db cfg for <db_name> using trackmod on //啟用增量備份功能

6、db2stop force

7、db2start

8、db2 backup db <db_name> to /home/db2inst1/off_back //開始上面參數(shù)后,數(shù)據(jù)庫處于backup pending狀態(tài),要求做數(shù)據(jù)庫的離線備份,否則會提示SQL1116N錯誤。

二、備份在線數(shù)據(jù)庫

9、db2 backup db <db_name> online to /home/db2inst1/on_back/ //在線備份

10、db2 backup db <db_name> online incremental to /home/db2inst1/on_back/ //在線做增量備份

11、db2 list history backup all for <db_name> //查看備份記錄

12、db2 get db cfg for <db_name> //查看log所在位置,cp到一個安全目錄,供rollforward使用。

13、db2stop force;db2start;db2 drop db <db_name> //手工drop數(shù)據(jù)庫,模擬災(zāi)難恢復(fù)的情況

三、恢復(fù)在線數(shù)據(jù)庫

14、db2ckrst -d <db_name> -t 20070608032820 -r database //幫助工具提示恢復(fù)

15、db2 restore db <db_name> incremental from /home/db2inst1/on_back taken at 20070608032820 //恢復(fù)數(shù)據(jù)文件

先恢復(fù)完全備份,然后在恢復(fù)增量備份,不能自動尋找完全備份文件。

16、db2 rollforward database <db_name> to end of logs and complete overflow log path '(/home/db2inst1/log)' //前滾日志

以上的相關(guān)內(nèi)容就是對DB2 DB2備份恢復(fù)數(shù)據(jù)庫步驟的介紹,望你能有所收獲。

DB2 DB2備份恢復(fù)數(shù)據(jù)庫步驟

上述的相關(guān)內(nèi)容就是對DB2 DB2備份恢復(fù)數(shù)據(jù)庫步驟的描述,希望會給你帶來一些幫助在此方面。

【編輯推薦】

  1. SQL Server到DB2連接服務(wù)器的實現(xiàn)很簡單!
  2. 對DB2日志設(shè)置參數(shù)正確用法的描述
  3. DB2 9打開打開通往 XML 之門的鑰匙
  4. DB2 Cube View元數(shù)據(jù)橋的正確構(gòu)建方案
  5. DB2數(shù)據(jù)庫和PostgreSQL在開發(fā)的異同點有哪些?
責(zé)任編輯:佚名 來源: 清華大學(xué)出版社
相關(guān)推薦

2010-08-03 09:49:58

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

2010-08-12 10:27:21

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

2010-07-27 15:33:00

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

2010-08-17 13:19:39

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

2010-08-12 10:54:21

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

2010-08-18 15:14:08

DB2恢復(fù)命令

2010-08-02 14:24:55

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

2010-08-06 18:01:13

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

2010-08-13 17:54:14

DB2 dart恢復(fù)數(shù)

2010-08-02 16:31:42

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

2010-08-12 15:38:36

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

2010-08-19 17:32:33

DB2dart

2010-08-26 16:00:31

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

2010-08-12 09:49:51

優(yōu)化DB2數(shù)據(jù)庫備份

2010-08-17 15:06:50

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

2011-05-13 09:59:14

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

2010-08-12 11:38:21

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

2009-03-25 17:43:09

備份DB2IBM

2010-08-25 14:12:47

DB2備份恢復(fù)

2010-08-12 09:06:30

DB2數(shù)據(jù)庫自動備份
點贊
收藏

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