• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/programmer_reference/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>DB_CONFIG configuration file</title>
7    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
10    <link rel="up" href="env.html" title="Chapter��9.�� The Berkeley DB Environment" />
11    <link rel="prev" href="env_error.html" title="Error support" />
12    <link rel="next" href="env_naming.html" title="File naming" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">DB_CONFIG configuration file</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="env_error.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��9.��
23		The Berkeley DB Environment
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="env_naming.html">Next</a></td>
26        </tr>
27      </table>
28      <hr />
29    </div>
30    <div class="sect1" lang="en" xml:lang="en">
31      <div class="titlepage">
32        <div>
33          <div>
34            <h2 class="title" style="clear: both"><a id="env_db_config"></a>DB_CONFIG configuration file</h2>
35          </div>
36        </div>
37      </div>
38      <p>Almost all of the configuration information that can be specified to
39<a href="../api_reference/C/env.html" class="olink">DB_ENV class</a> methods can also be specified using a configuration file.
40If a file named DB_CONFIG exists in the database home directory,
41it will be read for lines of the format <span class="bold"><strong>NAME VALUE</strong></span>.</p>
42      <p>One or more whitespace characters are used to delimit the two parts of
43the line, and trailing whitespace characters are discarded.  All empty
44lines or lines whose first character is a whitespace or hash
45(<span class="bold"><strong>#</strong></span>) character will be ignored.  Each line must specify both
46the NAME and the VALUE of the pair.  The specific NAME VALUE pairs are
47documented in the manual for the corresponding methods (for example,
48the <a href="../api_reference/C/envset_data_dir.html" class="olink">DB_ENV-&gt;set_data_dir()</a> documentation includes NAME VALUE pair
49information Berkeley DB administrators can use to configure locations for
50database files).</p>
51      <p><a id="env_db_config.DB_CONFIG"></a>The DB_CONFIG configuration file is intended to allow database environment administrators to customize environments independent of applications using the environment.  For example, a database administrator can move the database log and data files to a different location without application recompilation.  In addition, because the DB_CONFIG file is read when the database environment is opened, it can be used to overrule application configuration done before that time.  For example a database administrator could override the compiled-in application cache size to a size more appropriate for a specific machine.</p>
52    </div>
53    <div class="navfooter">
54      <hr />
55      <table width="100%" summary="Navigation footer">
56        <tr>
57          <td width="40%" align="left"><a accesskey="p" href="env_error.html">Prev</a>��</td>
58          <td width="20%" align="center">
59            <a accesskey="u" href="env.html">Up</a>
60          </td>
61          <td width="40%" align="right">��<a accesskey="n" href="env_naming.html">Next</a></td>
62        </tr>
63        <tr>
64          <td width="40%" align="left" valign="top">Error support��</td>
65          <td width="20%" align="center">
66            <a accesskey="h" href="index.html">Home</a>
67          </td>
68          <td width="40%" align="right" valign="top">��File naming</td>
69        </tr>
70      </table>
71    </div>
72  </body>
73</html>
74