Monday, May 5, 2014

How to collect Corruption of databases Automatically

When the Domino server detects that a database has corruption, it will automatically store the corrupted database as a separate file in a separate directory. The detection and collection of corrupted database is done at time of opening database. 

To enable and control the automatic collection of corrupt databases, set the following Domino configuration variables:

  • DATABASE_CAPTURE_ENABLED enables the automatic collection of a corrupted database as detected by the sever when the database is opened. Set the value to 1 for enabling.      

Note: Upon startup, the Domino server enables the collection of corrupt databases until the next restart. The corrupt database collection tool is not meant to be used continuously without administrator attention. For this reason, the Domino server automatically resets the value of the variable in the notes.ini file after collection, so that the function runs on subsequent server restarts only when there is administrator intervention.

DATABASE_CAPTURE_LIMIT is the maximum number of corrupt databases that will be collected by the server. If not set, the default value is 10. If set to 0, there will be no limit on the number of corrupt databases collected.

DATABASE_CAPTURE_SIZE_LIMIT is the limit, in megabytes (MB), of the total size of all collected databases. If not set, the default value is 100. If set to 0, there will be no limit on the total size of corrupt databases collected.

DATABASE_CAPTURE_DIRECTORY is the directory that will contain the collected databases. It is specified relative to the "data" directory. If not set, the default value is "IBM_TECHNICAL_SUPPORT\ACDC" which will place the corrupted database files into the "data\IBM_TECHNICAL_SUPPORT\ACDC" directory."

Collected databases have the same name as the source database file with a ".cor" extension. 

Corrupted Database Collection Tool

The dbcapture tool is provided as a standalone tool to collect a specific database manually at the discretion of the administrator or user. The tool respects the number and size limits when collecting a database. The tool ignores the DATABASE_CAPTURE_ENABLED configuration variable.  

To collect a database manually, enter the following command at the server console 

load dbcapture abc\red.nsf

where "red.nsf" is the name of the database file to be captured in the "abc" directory relative to the data directory. The dbcapture tool can also be run from an Operating System command prompt by entering the following command:

dbcapture abc\red.nsf