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.
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:
You invoke the PRUNE HISTORY command with the AND DELETE parameter
You call the db2Prune API with the DB2PRUNE_OPTION_DELETE flag
The database manager automatically prunes the recovery history file, which happens after every successful table space or database full backup.
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