Impacts on Utility Programs

Secondary Databases

All Berkeley DB utility programs can be run on environments and databases managed by Berkeley DB servers. For example, you can use db_hotbackup to backup databases, or db_stat to get database statistics.

The following constraints apply when running utility programs on managed environments and databases that are accessed simultaneously by other processes:

Note

Constraints do not apply if the accessed environment or database has no client handles opened or if the server is offline.

Secondary Databases

To manage secondary keys created for secondary databases, an auxiliary database is maintained on the server for each secondary database. If the secondary database is file based, the auxiliary database is also file based. If the secondary database is in-memory, the auxiliary database is also in-memory.

For file-based auxiliary databases, its file name is constructed by appending "__aux.db" to the file name of its corresponding secondary database. For example, if the file name of a secondary database is "secondary", the file name of its corresponding auxiliary database is "secondary__aux.db".

Make sure that the auxiliary database is in sync with its corresponding secondary databases. Otherwise, operations on the secondary database may fail. For example, when backing up or restoring databases, the secondary databases and their corresponding auxiliary databases must be backed up or restored together. When restoring databases, the databases must be restored together.