DB2 Version 9.7 for Linux, UNIX, and Windows

Deleting database recovery objects using the PRUNE HISTORY command or the db2Prune API

You can use the AUTO_DEL_REC_OBJ database configuration parameter and the PRUNE HISTORY command or the db2Prune API to delete recovery objects.

About this task

When you invoke the PRUNE HISTORY command, or call the db2Prune API, the IBM® Data Server database manager does the following:

When you invoke the PRUNE HISTORY command with the AND DELETE parameter, or when you call the db2Prune API with the DB2PRUNE_OPTION_DELETE flag, the database manager does the following:

If you set the AUTO_DEL_REC_OBJ database configuration parameter to ON, then when you invoke the PRUNE HISTORY command with the AND DELETE parameter, or when you call the db2Prune API with the DB2PRUNE_OPTION_DELETE flag, the database manager does the following:

To delete unneeded recovery objects:

Procedure

  1. Set the AUTO_DEL_REC_OBJ database configuration parameter to ON.
  2. Invoke the PRUNE HISTORY command with the AND DELETE parameter, or call the db2Prune API with the DB2PRUNE_OPTION_DELETE flag.