DB2 Version 9.7 for Linux, UNIX, and Windows

Protecting recovery objects from being deleted

Automated recovery object management saves administration time and storage space. However, you might want to prevent certain recovery objects from being automatically deleted. You can prevent key recovery objects from being deleted by setting the status of the associated recovery history files entries to do_not_delete.

About this task

If you set the AUTO_DEL_REC_OBJ database configuration parameter to ON, then recovery objects get deleted when their associated recovery history file entries get pruned. Recovery history file entries get pruned when one of the following happens:

Whether you invoke the PRUNE HISTORY command, call the db2Prune API, or configure the database manager to automatically prune the entries in the recovery history file, entries that are marked do_not_delete will not be pruned, and the associated recovery objects will not be deleted.

Restrictions

Restrictions:
  • You can set the status of only backup images, load copy images, and log files to do_not_delete.
  • The status of a backup entry is not propagated to log files, load copy images, or non-incremental backups related to that backup operation. If you want to save a particular database backup entry and its related log file entries, you must set the status for the database backup entry and the entry for each related log file.

Procedure

Use the UPDATE HISTORY command to set the status for associated recovery file entries to do_no_delete.