Berkeley DB Reference Guide: Architecture
Google

ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">

Berkeley DB Reference Guide: Architecture

Supporting utilities

There 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 and log file administration.

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

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

db_deadlock
The db_deadlock utility runs as a daemon process, periodically traversing the database lock structures and aborting transactions when it detects a deadlock.

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

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

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

All of the functionality described for these utilities is available as part of the Berkeley DB API as well. This means that threaded applications can simply create a thread to perform this functionality and call the same underlying Berkeley DB functions as do the utilities. This often simplifies the application environment by removing the necessity for multiple processes to negotiate database and database environment creation.