1<!--$Id: db_config.so,v 10.4 2007/09/26 15:11:31 bostic Exp $-->
2<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
3<!--See the file LICENSE for redistribution information.-->
4<html>
5<head>
6<title>Berkeley DB Reference Guide: DB_CONFIG configuration file</title>
7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
9</head>
10<body bgcolor=white>
11<a name="2"><!--meow--></a><a name="3"><!--meow--></a>
12<table width="100%"><tr valign=top>
13<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Environment</dl></b></td>
14<td align=right><a href="/env/error.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/env/naming.html"><img src="/images/next.gif" alt="Next"></a>
15</td></tr></table>
16<p align=center><b>DB_CONFIG configuration file</b></p>
17<a name="4"><!--meow--></a>
18<p>Almost all of the configuration information that can be specified to
19<a href="/api_c/env_class.html">DB_ENV</a> methods can also be specified using a configuration file.
20If a file named DB_CONFIG exists in the database home directory,
21it will be read for lines of the format <b>NAME VALUE</b>.</p>
22<p>One or more whitespace characters are used to delimit the two parts of
23the line, and trailing whitespace characters are discarded.  All empty
24lines or lines whose first character is a whitespace or hash
25(<b>#</b>) character will be ignored.  Each line must specify both
26the NAME and the VALUE of the pair.  The specific NAME VALUE pairs are
27documented in the manual for the corresponding methods (for example,
28the <a href="/api_c/env_set_data_dir.html">DB_ENV-&gt;set_data_dir</a> documentation includes NAME VALUE pair
29information Berkeley DB administrators can use to configure locations for
30database files).</p>
31<p>The DB_CONFIG configuration file is intended to allow database
32environment administrators to customize environments independent of
33applications using the environment.  For example, a database
34administrator can move the database log and data files to a different
35location without application recompilation.  In addition, because the
36DB_CONFIG file is read when the database environment is opened,
37it can be used to overrule application configuration done before that
38time.  For example a database administrator could override the
39compiled-in application cache size to a size more appropriate for a
40specific machine.</p>
41<table width="100%"><tr><td><br></td><td align=right><a href="/env/error.html"><img src="/images/prev.gif" alt="Prev"></a><a href="/toc.html"><img src="/images/ref.gif" alt="Ref"></a><a href="/env/naming.html"><img src="/images/next.gif" alt="Next"></a>
42</td></tr></table>
43<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
44</body>
45</html>
46