0I8Berkeley DB Reference Guide: Architecture[P2

Berkeley DB Reference Guide: Architecture



*

Supporting utilities



QThere are several stand-alone utilities that support the Berkeley DB environment.They are as follows:

~

db_archive
The db_archive utility supports database backup, archival andlog file administration.

db_recover
The db_recover utility runs after an unexpected Berkeley DB or system6failure to restore the database to a consistent state.

db_checkpoint
The db_checkpoint utility runs as a daemon process, monitoring6the database log and periodically issuing checkpoints.

db_deadlock
The db_deadlock utility runs as a daemon process, periodicallyFtraversing the database lock structures and aborting transactions whenit detects a deadlock.{

db_dump
The db_dump utility writes a copy of the database to a flat-textfile in a portable format.t

db_load
The db_load, utility reads the flat-text file produced bySdb_dump and loads it into a database file.}

db_stat
The db_stat utility displays statistics for databases and database environments.


FAll of the functionality described for these utilities is available asOpart of the Berkeley DB API as well. This means that threaded applications canFsimply create a thread to perform this functionality and call the sameLunderlying Berkeley DB functions as do the utilities. This often simplifiesBthe application environment by removing the necessity for multipleBprocesses to negotiate database and database environment creation.

MAM