Berkeley DB Reference Guide: Programmer Notes

Berkeley DB Reference Guide: Programmer Notes

Environmental variables

The Berkeley DB library uses the following environment variables:

DB_HOME
If the environment variable DB_HOME is set, it is used as part of File Naming. Note, either the DB_USE_ENVIRON or DB_USE_ENVIRON_ROOT flags must be specified to db_appinit for the DB_HOME variable to take effect.

TMPDIR, TEMP, TMP, TempFolder
The TMPDIR, TEMP, TMP and TempFolder environmental variables are all checked as locations in which to create temporary files. See DB_TMP_DIR in File Naming for more information.