在DB2中檢查備份檔案的完整性

2021-05-28 17:10:41 字數 1780 閱讀 4464

在db2中檢查備份檔案的完整性

d:\programfiles\ibm\sqllib\bin>db2ckbkp-h d:\backup\mydb.0.db2.node0000.catn0000.20110925070304.001 

#檢查備份檔案的完整性

media header reached:

server database name           --mydb

server database alias          --mydb

client database alias          --mydb

timestamp                      --20110925070304

database partition number      --0

instance                       --db2

sequence number                --1

release id                     -- d00

database seed                  --4ecea702

db comment's codepage (volume) -- 0

db comment (volume)            --

db comment's codepage (system) -- 0

db comment (system)            --

authentication value           --255

backup mode                    --0

includes logs                  --0

compression                    --0

backup type                    --0

backup gran.                   --0

merged backup image            -- 0

status flags                   --35

system cats inc                --1

catalog partition number       --0

db codeset                     --utf-8

db territory                   --

logid                          --1316867388

logpath                        --d:\db2\node0000\sql00005\sqlogdir\

backup buffer size             --16781312

number of sessions             --1

platform                       -- 17

theproper image file name would be:

mydb.0.db2.node0000.catn0000.20110925070304.001

[1] buffers processed:  ###########

image verification complete - successful.

在DB2中利用離線備份恢復資料。

在db2中利用離線備份恢復資料。先模擬表中資料被破壞,刪除資料或清除表。db2 connect to mydb 資料庫連線資訊 資料庫伺服器 db2 nt64 9.7.4 sql 授權標識 db2admin 本地資料庫別名 mydb db2 select from testid 1 條記錄已選擇。d...

DB2中ixf檔案的匯入匯出

1.匯出資料 語法 export to 檔案路徑 檔名.ixf of ixf select from表名 2.匯入資料 語法 db2 import from 路徑 檔名 ixf of ixf modified by forcecreate commitcount 10000 replace crea...

在db2中,擷取欄位中的一些文字

查某個欄位中的特定位置中的內容,如班組中的存的一些xml文件。我選用了db2的locate函式,該函式返回在給定字串中 第一次出現特定子串的位置,通過locate函式我得到了特定字串的開始和結束位置,在用substr擷取,就ok了 下面是實現的兩種方法,方法一和方法二沒有質的區別 方法一 selec...