Lists, deletes, and monitors DB2® snapshot backup objects.
>>-db2acsutil---------------------------------------------------> >--+------------------------------------------------------+-----> '-+-load--libraryName--+--+--------------------------+-' '-script--scriptName-' '-options--"optionsString"-' >--+-query--+--------+-+--+----------+--------------------------> | '-status-' | '-snapshot-' '-delete------------' >--+---------------------------------+--------------------------> '-+-taken at---+--+-timestamp---+-' +-older than-+ '-N--days ago-' '-since------' >--+--------------------+--+----------------------+-------------> '-+-----+--newest--X-' '-+-database-+--dbName-' '-not-' '-db-------' >--+------------------------+-----------------------------------> '-instance--instanceName-' >--+-------------------------------------+----------------------> '-dbpartitionnum--db-partition-number-' >--+----------------+--+--------------+-------------------------> '-host--hostname-' '-show details-' >--+-------------------+--------------------------------------->< '-without prompting-'
db2acsutil query status db f01 instance db2inst1 dbpartitionnum 0
Instance Database Part Image Time Status
========== ========== ==== ============== =======================================
keon14 F01 0 20070719120848 Remotely mountable + Background_monitor
pending (16 / 1024 MB)
db2acsutil query status db f01 instance db2inst1 dbpartitionnum 0 show details
Instance : keon14
Database : F01
Partition : 0
Image timestamp : 20070719120848
Host : machine1
Owner :
DB2 Version : 9.5.0
Creation time : Thu Jul 19 12:08:50 2007
First active log (chain:file) : 0:0
Metadata bytes : 6196
Progress state : Successful
Usability state : Remotely mountable + Repetitively restorable + Swap restorable
+ Physical protection + Full copy
Bytes completed : 0
Bytes total : 0
Using db2acsutil is the only way to delete DB2 snapshot backups created using the BACKUP command, the db2Backup API, or the ADMIN_CMD stored procedure with the BACKUP DATABASE parameter. You cannot use automated recovery object deletion or the PRUNE HISTORY command with the AND DELETE parameter to delete DB2 snapshot backups. You also cannot delete backups manually though the filer/storage system.
Usability state | Description |
---|---|
LOCALLY_MOUNTABLE | You can mount the backed up data from the local machine. |
REMOTELY_MOUNTABLE | You can mount the backed up data from a remote machine. |
REPETITIVELY_RESTORABLE | You can use the DB2 snapshot backup image multiple times to restore your backed up data. |
DESTRUCTIVELY_RESTORABLE | You can use the DB2 snapshot backup image to restore your backed up data once; after the backed up data is restored, this DB2 snapshot image, and potentially others, are destroyed. |
SWAP_RESTORABLE | You can access the volumes directly, but a RESTORE DB command cannot be executed and the backed up data cannot be copied back onto the source volumes. |
PHYSICAL_PROTECTION | The snapshot is protected against physical failures in the source volumes. |
FULL_COPY | A full copy of the data has been created. You can use the DB2 snapshot backup image to restore the backed up data. |
DELETED | Indicates that a backup has been marked for deletion. The snapshot storage associated with a DELETED backup will be withdrawn via a maintenance process running in the background. Once this has completed, the backup will be removed from the DB2 ACS repository. |
FORCED_MOUNT | Awaiting verification of filesystem consistency by mounting an AIX® JFS filesystem. |
BACKGROUND_MONITOR_PENDING | Status is being monitored by the DB2 ACS background progress monitor. |
TAPE_BACKUP_PENDING | Awaiting an offloaded tape backup. |
TAPE_BACKUP_IN_PROGRESS | An offloaded tape backup is currently in progress. |
TAPE_BACKUP_COMPLETE | Offloaded tape backup has completed. |