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

DB2數(shù)據(jù)庫備份與恢復(fù)命令的總結(jié)描述

數(shù)據(jù)庫
以下的文章主要描述的是DB2數(shù)據(jù)庫備份與恢復(fù)命令的總結(jié),我前兩天在相關(guān)網(wǎng)站看見的資料,覺得挺好拿出來供大家分享。

以下的文章主要是介紹DB2數(shù)據(jù)庫備份與恢復(fù)命令的總結(jié),假如你對DB2數(shù)據(jù)庫備份與恢復(fù)命令的總結(jié)心存好奇的話,此文章將會揭開它的神秘面紗。以下就是文章的詳細(xì)內(nèi)容介紹,望大家借鑒。

數(shù)據(jù)庫, 命令數(shù)據(jù)庫, 命令

 

1、運(yùn)行-->db2cmd

 

2、命令行中輸入db2cmd

 

輸入命令 db2 create db 數(shù)據(jù)庫名稱 on d:

 

在 d盤建立數(shù)據(jù)庫。假設(shè)在d盤生成目錄:D:\DB2\NODE0000\SQL00006

 

3、cd\

 

4、保證D:\db_bak\目錄下存在要恢復(fù)的數(shù)據(jù)庫文件。確保目錄結(jié)構(gòu)為db2系統(tǒng)備份目錄

 

如 目錄結(jié)構(gòu):D:\db_bak\GXDB.0\DB2\NODE0000\CATN0000\

 

執(zhí)行下面命令,

 

db2 restore db [ DB2數(shù)據(jù)庫備份數(shù)據(jù)庫名稱] from D:\db_bak\ taken at 20070302160117 into [上面創(chuàng)建數(shù)據(jù)庫名稱] redirect

 

執(zhí)行后,系統(tǒng)提示:

 

--------------------------------------------------------

 

SQL1277N 復(fù)原已檢測到一個(gè)或多個(gè)表空間容器是不可訪問的,或者已將它們的狀態(tài)設(shè)置為

 

“必須定義存儲器”。

 

DB20000I RESTORE DATABASE 命令成功完成。

 

--------------------------------------------------------

 

5、根據(jù)步驟2中數(shù)據(jù)庫生成的目錄結(jié)構(gòu)

 

  1. db2 set tablespace containers for 0 using (path "D:\DB2\NODE0000\SQLxxxx\SQLT0000.0") 

修改為:

 

  1. db2 set tablespace containers for 0 using (path "D:\DB2\NODE0000\SQL00006\SQLT0000.0") 

下面2條修改方式相同

 

  1. db2 set tablespace containers for 1 using (path "D:\DB2\NODE0000\SQL00005\SQLT0001.0")  
  2. db2 set tablespace containers for 2 using (path "D:\DB2\NODE0000\SQL00005\SQLT0002.0") 

下面的語句中把 mam311修改為創(chuàng)建數(shù)據(jù)庫名稱.dbf

 

  1. db2 set tablespace containers for 3 using (file "D:\tbs\mam311.DBF" 12500) 

下面的語句中把mam311修改為創(chuàng)建數(shù)據(jù)庫名稱_Temp.dbf

 

  1. db2 set tablespace containers for 4 using (file "D:\tbs\mam311_Temp.DBF" 12500) 

6、

 

db2 restore db  DB2數(shù)據(jù)庫備份數(shù)據(jù)庫名稱 continue

 

對于廣西的數(shù)據(jù)庫為:

 

  1. db2 restore db gxdb continue 

7、把日至文件拷貝到D:\DB2\NODE0000\SQL00006\SQLOGDIR目錄下執(zhí)行下面語句

 

db2 rollforward db 創(chuàng)建數(shù)據(jù)庫名稱 to end of logs and complete

 

以下是一個(gè)相關(guān)的例子:

  1. db2 create db JMAMGX31 on d: 

cd\

  1. db2 restore db gxdb from D:\db_bak\ taken at 20070718115305 into JMAMGX redirect  
  2. db2 set tablespace containers for 0 using (path "D:\DB2\NODE0000\SQL00005\SQLT0000.0")  
  3. db2 set tablespace containers for 1 using (path "D:\DB2\NODE0000\SQL00005\SQLT0001.0")  
  4. db2 set tablespace containers for 2 using (path "D:\DB2\NODE0000\SQL00005\SQLT0002.0")  
  5. db2 set tablespace containers for 3 using (file "D:\tbs\JMAMGX.DBF" 12500)  
  6. db2 set tablespace containers for 4 using (file "D:\tbs\JMAMGX_Temp.DBF" 12500)  
  7. db2 restore db GXDB continue  
  8. db2 rollforward db JMAMGX to end of logs and complete   

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

【編輯推薦】

  1. 初學(xué)者必看的DB2數(shù)據(jù)庫的一些經(jīng)驗(yàn)總結(jié)
  2. 對DB2日志設(shè)置參數(shù)正確用法的描述
  3. DB2 9打開打開通往 XML 之門的鑰匙
  4. DB2 Cube View元數(shù)據(jù)橋的正確構(gòu)建方案
  5. DB2數(shù)據(jù)庫和PostgreSQL在開發(fā)的異同點(diǎn)有哪些?
責(zé)任編輯:佚名 來源: 網(wǎng)絡(luò)
相關(guān)推薦

2010-08-17 13:19:39

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

2010-08-12 11:26:03

2010-08-17 10:38:28

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

2009-03-25 17:43:09

備份DB2IBM

2010-08-18 15:14:08

DB2恢復(fù)命令

2010-08-27 13:27:50

DB2備份恢復(fù)

2010-08-12 11:38:21

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

2010-08-25 14:12:47

DB2備份恢復(fù)

2010-07-30 10:24:18

2010-08-03 11:19:32

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

2010-08-11 14:27:57

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

2010-08-06 09:39:27

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

2010-08-12 09:18:48

DB2用戶密碼修改

2010-08-17 16:24:32

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

2011-08-18 19:10:27

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

2010-07-29 10:58:43

驗(yàn)證DB2數(shù)據(jù)庫

2010-08-25 10:16:48

DB2備份Linux

2009-06-25 11:47:59

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

2015-10-23 16:37:13

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

2010-08-17 09:48:40

DB2 分區(qū)數(shù)據(jù)庫
點(diǎn)贊
收藏

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