One of the most important tasks of the database environment is
to structure file naming within Berkeley DB. Cooperating
applications (or multiple invocations of the same application)
must agree on the location of the database environment, log
files and other files used by the Berkeley DB subsystems, and,
of course, the database files. Although it is possible to
specify full pathnames to all Berkeley DB functions, this is
cumbersome and requires that applications be recompiled when
database files are moved. Applications are normally expected to
specify a single directory home for the database environment.
This can be done easily in the call to DB_ENV->open by
specifying a value for the db_home argument. There are more
complex configurations in which it may be desirable to override
db_home or provide supplementary path information. The following
list describes the possible ways in which file naming
information may be specified to the Berkeley DB library. The
specific circumstances and order in which these ways