Debian Codegraph @

docs/programmer_reference/env_db_config.html

raw symbols SCIP
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 xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DB_CONFIG configuration file</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="env_error.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 9. 
26 The Berkeley DB Environment
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="env_naming.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="env_db_config"></a>DB_CONFIG configuration file</h2>
38 </div>
39 </div>
40 </div>
41 <p>
42 Almost all of the configuration information that can be specified to
43 <a href="../api_reference/C/env.html" class="olink">DB_ENV class</a> methods can also be specified using a configuration file.
44 If a file named DB_CONFIG exists in the database home directory, it
45 will be read for lines of the format
46 <span class="bold"><strong>NAME VALUE</strong></span>.
47 </p>
48 <p>
49 One or more whitespace characters are used to delimit the two parts of
50 the line, and trailing whitespace characters are discarded. All empty
51 lines or lines whose first character is a whitespace or hash
52 (<span class="bold"><strong>#</strong></span>) character will be ignored. Each
53 line must specify both the NAME and the VALUE of the pair. The
54 specific NAME VALUE pairs are documented in the manual for the
55 corresponding methods (for example, the <a href="../api_reference/C/envset_data_dir.html" class="olink">DB_ENV-&gt;set_data_dir()</a> documentation
56 includes NAME VALUE pair information Berkeley DB administrators can use
57 to configure locations for database files).
58 </p>
59 <p><a id="env_db_config.DB_CONFIG"></a>
60 The DB_CONFIG configuration file is intended to allow database
61 environment administrators to customize environments independent of
62 applications using the environment. For example, a database
63 administrator can move the database log and data files to a different
64 location without application recompilation. In addition, because the
65 DB_CONFIG file is read when the database environment is opened, it can
66 be used to overrule application configuration done before that time.
67 For example a database administrator could override the compiled-in
68 application cache size to a size more appropriate for a specific
69 machine.
70 </p>
71 </div>
72 <div class="navfooter">
73 <hr />
74 <table width="100%" summary="Navigation footer">
75 <tr>
76 <td width="40%" align="left"><a accesskey="p" href="env_error.html">Prev</a> </td>
77 <td width="20%" align="center">
78 <a accesskey="u" href="env.html">Up</a>
79 </td>
80 <td width="40%" align="right"> <a accesskey="n" href="env_naming.html">Next</a></td>
81 </tr>
82 <tr>
83 <td width="40%" align="left" valign="top">Error support </td>
84 <td width="20%" align="center">
85 <a accesskey="h" href="index.html">Home</a>
86 </td>
87 <td width="40%" align="right" valign="top"> File naming</td>
88 </tr>
89 </table>
90 </div>
91 </body>
92 </html>