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

DB2數(shù)據(jù)庫(kù)在線備份恢復(fù)實(shí)戰(zhàn)演示

數(shù)據(jù)庫(kù)
我們今天主要描述的是DB2數(shù)據(jù)庫(kù)在線備份恢復(fù)的實(shí)際操作,此文是我?guī)滋煸谙嚓P(guān)網(wǎng)站看見(jiàn)的資料,覺(jué)得挺好,今天拿出來(lái)供大家分享。

以下的文章主要向大家描述的是DB2數(shù)據(jù)庫(kù)在線備份恢復(fù)實(shí)踐,如果你對(duì)DB2數(shù)據(jù)庫(kù)在線備份恢復(fù)實(shí)踐,心存好奇的話,此文將會(huì)為你揭開(kāi)它的神秘面紗,以下就是文章的詳細(xì)內(nèi)容介紹,望大家借鑒。

數(shù)據(jù)庫(kù), 實(shí)踐, 在線

 

啟用在線備份

 

啟用日志歸檔模式

 

  1. db2 update db cfg for test using LOGRETAIN ON 

設(shè)置日志歸檔目錄

  1. db2 update db cfg for test using LOGARCHMETH1 DISK:/db2/data/logs 

做一次離線備份,否則DB2數(shù)據(jù)庫(kù)會(huì)登錄不了

  1. db2 backup db test to /db2/data/backup 

在線備份

在線備份----備份日志(***活動(dòng)日志到當(dāng)前日志會(huì)一同備份到備份文件里)

 

  1. db2 backup db test online to /db2/data/backup/ include logs 

在線備份----不備份日志

  1. db2 backup db test online to /db2/data/backup/ 

從包含日志的備份集恢復(fù)

恢復(fù)

 

  1. db2 RESTORE db test  
  2. FROM /db2/data/backup taken at 20100514001917 LOGTARGET /db2/data/logs/ 

前滾

  1. db2 "rollforward db test to end of logs and stop overflow log path(/db2/data/logs/)" 

注意(由于從備份成功到DB2數(shù)據(jù)庫(kù)崩潰的時(shí)間間隔會(huì)產(chǎn)生其他的歸檔日志,可以將這些日志拷貝到/db2/data/logs/中,或者直接從歸檔日志目錄進(jìn)行前滾,同"從不包含日志的備份集恢復(fù)"中的"前滾")

從不包含日志的備份集恢復(fù)

恢復(fù)

 

  1. db2 RESTORE db test  
  2. FROM /db2/data/backup taken at 20100514001917  

前滾

 

db2 "rollforward db test to end of logs and stop overflow log path(/歸檔日志目錄/)"

 

【編輯推薦】

  1. DB2 Cube View元數(shù)據(jù)橋的正確構(gòu)建方案
  2. DB2編程的正確應(yīng)用程序
  3. DB2 9打開(kāi)打開(kāi)通往 XML 之門的鑰匙
  4. 如何看待IBM DB2 9數(shù)據(jù)服務(wù)器的發(fā)展?
  5. 對(duì)DB2日志設(shè)置參數(shù)正確用法的描述

     

     
責(zé)任編輯:佚名 來(lái)源: IT168
相關(guān)推薦

2010-08-05 13:19:48

連接DB2數(shù)據(jù)庫(kù)

2010-08-12 09:18:48

DB2用戶密碼修改

2010-08-05 13:54:26

連接DB2數(shù)據(jù)庫(kù)

2010-08-17 11:35:00

2010-08-25 10:16:48

DB2備份Linux

2010-08-25 14:12:47

DB2備份恢復(fù)

2009-03-25 17:43:09

備份DB2IBM

2010-07-29 09:14:57

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

2011-03-03 14:52:40

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

2010-08-31 13:06:49

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

2010-08-31 13:35:53

DB2備份恢復(fù)

2010-08-17 15:06:50

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

2010-08-27 13:27:50

DB2備份恢復(fù)

2010-09-06 16:02:00

DB2

2015-10-29 15:06:36

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

2010-08-09 13:30:27

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

2010-08-12 15:43:24

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

2010-08-17 13:12:18

備份恢復(fù)DB2

2010-08-17 09:48:40

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

2010-08-12 13:32:08

DB2數(shù)據(jù)庫(kù)備份
點(diǎn)贊
收藏

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