Berkeley DB Reference Guide:
Access Methods
PrevRefNext

Database close

The DB->close method closes the DB database handle. By default, DB->close also flushes all modified records from the database cache to disk.

There is one flag that you can set to customize DB->close:


DB_NOSYNC
It is important to understand that flushing cached information to disk only minimizes the window of opportunity for corrupted data, it does not eliminate the possibility.

While unlikely, it is possible for database corruption to happen if a system or application crash occurs while writing data to the database. To ensure that database corruption never occurs, applications must either:


PrevRefNext

Copyright (c) 1996,2008 Oracle. All rights reserved.