This utility allows the user to test the integrity of a backup image and determine whether or not it can be restored. It can also be used to display the meta-data stored in the backup header in order to determine information about a particular backup image. One or more parts of an image can be checked.
Authorization
Anyone can access the utility, but users must have read permissions on image backups in order to execute this utility against them.
Required Connection
None
Command Syntax
.-,--------. .-,-----------.
V | V |
>>-db2ckbkp-------+----+--+------filename---+------------------><
+--a-+
+--c-+
+--d-+
+--h-+
+--H-+
+--l-+
'--o-'
Command Parameters
Notes:
Notes:
Examples
db2ckbkp SAMPLE.0.krodger.NODE0000.CATN0000.19990817150714.*
[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
Node -- 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
Backup Type -- 0
Backup Gran. -- 0
Status Flags -- 11
System Cats inc -- 1
Catalog Node Number -- 0
DB Codeset -- ISO8859-1
DB Territory --
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.
Usage Notes
If a backup was created using multiple sessions, db2ckbkp can examine all of the files at the same time. Users are responsible for ensuring that the session with sequence number 001 is the first file specified.
This utility can also verify backup images on tape. This is done by preparing the tape as for a restore operation and running the utility specifying the tape device name. For example, on UNIX based systems:
db2ckbkp -h /dev/rmt0
and on Windows NT:
db2ckbkp -d \\.\tape1
If the backup resides on TSM, refer to db2adutl - Work with TSM Archived Images.