CARIS Bathy DataBASE Server : CARIS Bathy DataBASE Server : Database Procedures : Purging Database Objects
 

Purging Database Objects

When objects in a database are no longer needed, they can be deleted. To delete a database object, it first must be marked for deletion in BASE Editor. The next time the purge process is run, any items marked for deletion will be completely removed from the database.

The purge process automatically scans the selected database at regular intervals, looking for items marked for deletion. When items are found, they are officially deleted from the database.

The purge interval is controlled by the Purge setting in the BathyServerConfig.xml support file. The default interval is every 1 hour. You can adjust the purge interval using the Database Configuration Utility command.

WARNING: Purged objects cannot be recovered. Be certain you wish to delete the objects before marking them for deletion.

Before making changes to the support files for a database, that database should be stopped. See Stop a Database for instructions.

To change the purge rate:

1. Open a command prompt window.

2. Change directories to the Bin folder for BDB Server.

You are now ready to enter the command. To change the purge interval, you need to define the /pi (purge interval) and /pit (purge interval type) parameters.

The purge interval is the value that determines the length of time between purges. This can be any numeric value.

The purge interval type is the unit of measure for the length of time. This can be MINUTE, HOUR, or DAY.

3. Enter the following command:

bathysrvconfigutil /db="database location\database name" /pi="value" /pit="unit of measure"

4. Press <Enter>.

The purge interval for the database is updated. See Database Configuration Utility for more information on the Bathy Server Configuration Utility command.

You can now restart the database. See Start a Database for information.