This utility can be used to test the integrity of a backup image and to determine whether or not the image can be restored. It can also be used to display the metadata stored in the backup header.
Anyone can access the utility, but users must have read permissions on image backups in order to execute this utility against them.
None
>>-db2ckbkp--+---------------------------------+----------------> | .-,---------------------------. | | V | | +---+-------------------------+-+-+ | +- -a---------------------+ | | +- -c---------------------+ | | +- -d---------------------+ | | +- -e---------------------+ | | +- -h---------------------+ | | +- -l---------------------+ | | +- -n---------------------+ | | +- -o---------------------+ | | +- -p---------------------+ | | +- -s---------------------+ | | +- -t---------------------+ | | +- -v---------------------+ | | +- -cl--decompressionLib--+ | | '- -co--decompressionOpts-' | +- -H-----------------------------+ +- -S-----------------------------+ '- -T-----------------------------' .-,--------. V | >----filename-+------------------------------------------------><
S <tbspID> <objID> <objType> <startPage> <numPages>
D <tbspID> <objType> <startPage> <numPages>
L <log num> <startPos> <numPages>
For other data (for example, initial data): O <objType> <startPos> <numBytes>
The default output file is extractPage.out. You can override the default output file name by setting the DB2EXTRACTFILE environment variable to a full path.
db2ckbkp SAMPLE.0.krodger.DBPART000.19990817150714.001 SAMPLE.0.krodger.DBPART000.19990817150714.002
SAMPLE.0.krodger.DBPART000.19990817150714.003
[1] Buffers processed: ##
[2] Buffers processed: ##
[3] Buffers processed: ##
Image Verification Complete - successful.
db2ckbkp -h SAMPLE2.0.krodger.NODE0000.CATN0000.19990818122909.001
=====================
MEDIA HEADER REACHED:
=====================
Server Database Name -- SAMPLE2
Server Database Alias -- SAMPLE2
Client Database Alias -- SAMPLE2
Timestamp -- 19990818122909
Database Partition Number -- 0
Instance -- krodger
Sequence Number -- 1
Release ID -- 900
Database Seed -- 65E0B395
DB Comment's Codepage (Volume) -- 0
DB Comment (Volume) --
DB Comment's Codepage (System) -- 0
DB Comment (System) --
Authentication Value -- 255
Backup Mode -- 0
Include Logs -- 0
Compression -- 0
Backup Type -- 0
Backup Gran. -- 0
Status Flags -- 11
System Cats inc -- 1
Catalog Database Partition No. -- 0
DB Codeset -- ISO8859-1
DB Territory --
LogID -- 1074717952
LogPath -- /home/krodger/krodger/NODE0000/
SQL00001/LOGSTREAM0000
Backup Buffer Size -- 4194304
Number of Sessions -- 1
Platform -- 0
The proper image file name would be:
SAMPLE2.0.krodger.NODE0000.CATN0000.19990818122909.001
[1] Buffers processed: ####
Image Verification Complete - successful.
BufAddr MemberNum PoolID Token Type Offset FileSize ObjectSize OrigSize Object Name
-------- --------- ------ ----- ---- ------ -------- ---------- -------- -----------
00000000: 0 0 0 19 0 268 268 0 "BACKUP.START.RECORD.MARKER"
numTbspsInDB : 3
numTbspsInImg : 3
Total members : 3
Member numbers: 0,1,2
db2ckbkp -h /dev/rmt0
and
on Windows: db2ckbkp -d \\.\tape1
Please mount the source media on device /dev/rmt0.
Continue(c), terminate only this device(d), or abort this tool(t)?
(c/d/t)
The user will be prompted for each device
specified, and when the device reaches the end of tape.