Allows users to query, extract, verify, and delete backups, logs, and load copy images saved using Tivoli Storage Manager (formerly ADSM).
On UNIX based systems, this utility is located in the INSTHOME/sqllib/misc directory and on OS/2 and Windows operating systems it is located in the \sqllib\misc directory.
For more information about this command, see the Administration Guide.
Authorization
None
Required Connection
None
Command Syntax
>>-db2adutl-----------------------------------------------------> >-----+-QUERY--+-------------------------------------+-----------------------------+> | +-+------------+---+---------------+--+ | | | +-TABLESPACE-+ '-SHOW INACTIVE-' | | | | +-FULL-------+ | | | | '-LOADCOPY---' | | | '-LOGS--+---------------------+-------' | | '-BETWEEN sn1 AND sn2-' | +-EXTRACT--+--------------------------------------------------------------+--+ | +-+------------+--+---------------+----+---------------------+-+ | | | +-TABLESPACE-+ '-SHOW INACTIVE-' '-TAKEN AT-timestamp--' | | | | +-FULL-------+ | | | | '-LOADCOPY---' | | | '-LOGS--+----------------------+-------------------------------' | | '-BETWEEN sn1 AND sn2--' | +-DELETE--+-------------------------------------------------------+----------+ | +-+------------+---+----------------------------------+-+ | | | +-TABLESPACE-+ +-KEEP--n--------------------------+ | | | | +-FULL-------+ +-OLDER--+-------+---+-timestamp-+-+ | | | | '-LOADCOPY---' | '-THAN--' '-n--days---' | | | | | '-TAKEN AT--timestamp--------------' | | | '-LOGS--+-------------------------+---------------------' | | '-BETWEEN--sn1--AND--sn2--' | '-VERIFY--+----------------------------------------------------------------+-' +-+------------+---+----------------+---+----------------------+-+ | +-TABLESPACE-+ '-SHOW INACTIVE--' '-TAKEN AT--timestamp--' | | '-FULL-------' | '-LOGS--+----------------------+---------------------------------' '-BETWEEN sn1 AND sn2--' >-----+--------------------------------+------------------------> '--+-DATABASE-+--database_name---' '-DB-------' >-----+--------------------+---+---------------------+----------> '-NODE--node_number--' '-PASSWORD--password--' >-----+----------------------+---+--------------------+---------> '-NODENAME--node_name--' '-WITHOUT PROMPTING--' >-----+---------------+---------------------------------------->< '-OWNER--owner--'
Command Parameters
Note: | This parameter causes the entire backup image to be transferred over the network. |
Examples
The following is sample output from:db2 backup database rawsampl use tsm
Backup successful. The timestamp for this backup is : 19970929130942 db2adutl query Query for database RAWSAMPL Retrieving full database backup information. full database backup image: 1, Time: 19970929130942, Oldest log: S0000053.LOG, Sessions used: 1 full database backup image: 2, Time: 19970929142241, Oldest log: S0000054.LOG, Sessions used: 1 Retrieving table space backup information. table space backup image: 1, Time: 19970929094003, Oldest log: S0000051.LOG, Sessions used: 1 table space backup image: 2, Time: 19970929093043, Oldest log: S0000050.LOG, Sessions used: 1 table space backup image: 3, Time: 19970929105905, Oldest log: S0000052.LOG, Sessions used: 1 Retrieving log archive information. Log file: S0000050.LOG Log file: S0000051.LOG Log file: S0000052.LOG Log file: S0000053.LOG Log file: S0000054.LOG Log file: S0000055.LOG
The following is sample output from:db2adutl delete full taken at 19950929130942 db rawsampl
Query for database RAWSAMPL Retrieving full database backup information. Please wait. full database backup image: RAWSAMPL.0.db26000.0.19970929130942.001 Do you want to deactivate this backup image (Y/N)? y Are you sure (Y/N)? y db2adutl query Query for database RAWSAMPL Retrieving full database backup information. full database backup image: 2, Time: 19950929142241, Oldest log: S0000054.LOG, Sessions used: 1 Retrieving table space backup information. table space backup image: 1, Time: 19950929094003, Oldest log: S0000051.LOG, Sessions used: 1 table space backup image: 2, Time: 19950929093043, Oldest log: S0000050.LOG, Sessions used: 1 table space backup image: 3, Time: 19950929105905, Oldest log: S0000052.LOG, Sessions used: 1 Retrieving log archive information. Log file: S0000050.LOG Log file: S0000051.LOG Log file: S0000052.LOG Log file: S0000053.LOG Log file: S0000054.LOG Log file: S0000055.LOG