1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-db" role="wrap">
|
---|
7 | <title>Berkeley DB-&db-version;</title>
|
---|
8 | <?dbhtml filename="db.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-db"><primary sortas="a-Berkeley-DB">Berkeley DB</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 | <para>The Berkeley DB package contains programs and utilities used by many other
|
---|
14 | applications for database related functions.</para>
|
---|
15 |
|
---|
16 | <segmentedlist>
|
---|
17 | <segtitle>&buildtime;</segtitle>
|
---|
18 | <segtitle>&diskspace;</segtitle>
|
---|
19 | <seglistitem><seg>1.2 SBU</seg><seg>78 MB</seg></seglistitem>
|
---|
20 | </segmentedlist>
|
---|
21 |
|
---|
22 | <segmentedlist>
|
---|
23 | <segtitle>&dependencies;</segtitle>
|
---|
24 | <seglistitem><seg>Bash, Binutils, Coreutils,
|
---|
25 | Diffutils, GCC, Glibc, Make and Sed.</seg></seglistitem>
|
---|
26 | </segmentedlist>
|
---|
27 |
|
---|
28 | <tip>
|
---|
29 | <title>Extra functionality for Berkeley DB in BLFS</title>
|
---|
30 | <para>There are instructions to build this package in the BLFS book if you need to build the RPC server or additional language bindings. The
|
---|
31 | additional language bindings will require additional packages to be
|
---|
32 | installed. The BLFS instructions are located at
|
---|
33 | <ulink url="&blfs-root;view/svn/server/databases.html#db"/>
|
---|
34 | for suggested installation instructions.</para>
|
---|
35 | </tip>
|
---|
36 |
|
---|
37 | </sect2>
|
---|
38 |
|
---|
39 | <sect2 role="installation">
|
---|
40 | <title>Installation of Berkeley DB</title>
|
---|
41 |
|
---|
42 | <para>Prepare Berkeley DB for compilation:</para>
|
---|
43 |
|
---|
44 | <screen><userinput>cd build_unix &&
|
---|
45 | ../dist/configure --prefix=/usr --enable-compat185 --enable-cxx</userinput></screen>
|
---|
46 |
|
---|
47 | <para>The meaning of the configure options:</para>
|
---|
48 |
|
---|
49 | <variablelist>
|
---|
50 | <varlistentry>
|
---|
51 | <term><parameter>--enable-compat185</parameter></term>
|
---|
52 | <listitem><para>This option enables building Berkeley DB 1.85 compatibility API.</para></listitem>
|
---|
53 | </varlistentry>
|
---|
54 |
|
---|
55 | <varlistentry>
|
---|
56 | <term><parameter>--enable-cxx</parameter></term>
|
---|
57 | <listitem><para>This option enables building C++ API libraries.</para></listitem>
|
---|
58 | </varlistentry>
|
---|
59 | </variablelist>
|
---|
60 |
|
---|
61 | <para>Compile the package:</para>
|
---|
62 |
|
---|
63 | <screen><userinput>make</userinput></screen>
|
---|
64 |
|
---|
65 | <para>It is not possible to test the package meaningfully, because that
|
---|
66 | would involve building TCL bindings. TCL bindings cannot be built properly
|
---|
67 | now because TCL is linked against Glibc in <filename class="directory">/tools</filename>,
|
---|
68 | not against Glibc in <filename class="directory">/usr</filename>.</para>
|
---|
69 |
|
---|
70 | <para>Install the package:</para>
|
---|
71 |
|
---|
72 | <screen><userinput>make docdir=/usr/share/doc/db-&db-version; install</userinput></screen>
|
---|
73 |
|
---|
74 | <para>The meaning of the make option:</para>
|
---|
75 |
|
---|
76 | <variablelist>
|
---|
77 | <varlistentry>
|
---|
78 | <term><parameter>docdir=...</parameter></term>
|
---|
79 | <listitem><para>This variable specifies the correct place for the documentation.</para></listitem>
|
---|
80 | </varlistentry>
|
---|
81 | </variablelist>
|
---|
82 |
|
---|
83 | <para>Fix the ownerships of the installed files:</para>
|
---|
84 |
|
---|
85 | <screen><userinput>chown root:root /usr/bin/db_* \
|
---|
86 | /usr/lib/libdb* /usr/include/db* &&
|
---|
87 | chown -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 |
|
---|
92 | <sect2 id="contents-db" role="content"><title>Contents of Berkeley DB</title>
|
---|
93 | <segmentedlist>
|
---|
94 | <segtitle>Installed programs</segtitle>
|
---|
95 | <seglistitem><seg>db_archive, db_checkpoint, db_deadlock, db_dump,
|
---|
96 | db_hotbackup, db_load, db_printlog, db_recover, db_stat, db_upgrade and
|
---|
97 | db_verify
|
---|
98 | </seg></seglistitem>
|
---|
99 | </segmentedlist>
|
---|
100 |
|
---|
101 | <segmentedlist>
|
---|
102 | <segtitle>Installed libraries</segtitle>
|
---|
103 | <seglistitem><seg>libdb.[so,a] and libdb_cxx.[so,a]</seg></seglistitem>
|
---|
104 | </segmentedlist>
|
---|
105 |
|
---|
106 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
107 | <?dbfo list-presentation="list"?>
|
---|
108 | <?dbhtml list-presentation="table"?>
|
---|
109 |
|
---|
110 | <varlistentry id="db_archive">
|
---|
111 | <term><command>db_archive</command></term>
|
---|
112 | <listitem>
|
---|
113 | <para>Prints the pathnames of log files that are no longer in use</para>
|
---|
114 | <indexterm zone="ch-system-db db_archive"><primary sortas="b-db_archive">db_archive</primary></indexterm>
|
---|
115 | </listitem>
|
---|
116 | </varlistentry>
|
---|
117 |
|
---|
118 | <varlistentry id="db_checkpoint">
|
---|
119 | <term><command>db_checkpoint</command></term>
|
---|
120 | <listitem>
|
---|
121 | <para>A daemon used to monitor and checkpoint database logs</para>
|
---|
122 | <indexterm zone="ch-system-db db_checkpoint"><primary sortas="b-db_checkpoint">db_checkpoint</primary></indexterm>
|
---|
123 | </listitem>
|
---|
124 | </varlistentry>
|
---|
125 |
|
---|
126 | <varlistentry id="db_deadlock">
|
---|
127 | <term><command>db_deadlock</command></term>
|
---|
128 | <listitem>
|
---|
129 | <para>A daemon used to abort lock requests when deadlocks are detected</para>
|
---|
130 | <indexterm zone="ch-system-db db_deadlock"><primary sortas="b-db_deadlock">db_deadlock</primary></indexterm>
|
---|
131 | </listitem>
|
---|
132 | </varlistentry>
|
---|
133 |
|
---|
134 | <varlistentry id="db_dump">
|
---|
135 | <term><command>db_dump</command></term>
|
---|
136 | <listitem>
|
---|
137 | <para>Converts database files to a plain-text file format readable by <command>db_load</command></para>
|
---|
138 | <indexterm zone="ch-system-db db_dump"><primary sortas="b-db_dump">db_dump</primary></indexterm>
|
---|
139 | </listitem>
|
---|
140 | </varlistentry>
|
---|
141 |
|
---|
142 | <varlistentry id="db_hotbackup">
|
---|
143 | <term><command>db_hotbackup</command></term>
|
---|
144 | <listitem>
|
---|
145 | <para>Creates <quote>hot backup</quote> or <quote>hot failover</quote> snapshots of Berkeley DB databases</para>
|
---|
146 | <indexterm zone="ch-system-db db_hotbackup"><primary sortas="b-db_hotbackup">db_hotbackup</primary></indexterm>
|
---|
147 | </listitem>
|
---|
148 | </varlistentry>
|
---|
149 |
|
---|
150 | <varlistentry id="db_load">
|
---|
151 | <term><command>db_load</command></term>
|
---|
152 | <listitem>
|
---|
153 | <para>Is used to create database files from plain-text files</para>
|
---|
154 | <indexterm zone="ch-system-db db_load"><primary sortas="b-db_load">db_load</primary></indexterm>
|
---|
155 | </listitem>
|
---|
156 | </varlistentry>
|
---|
157 |
|
---|
158 | <varlistentry id="db_printlog">
|
---|
159 | <term><command>db_printlog</command></term>
|
---|
160 | <listitem>
|
---|
161 | <para>Converts database log files to human readable text</para>
|
---|
162 | <indexterm zone="ch-system-db db_printlog"><primary sortas="b-db_printlog">db_printlog</primary></indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | <varlistentry id="db_recover">
|
---|
167 | <term><command>db_recover</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>Is used to restore a database to a consistent state after a failure</para>
|
---|
170 | <indexterm zone="ch-system-db db_recover"><primary sortas="b-db_recover">db_recover</primary></indexterm>
|
---|
171 | </listitem>
|
---|
172 | </varlistentry>
|
---|
173 |
|
---|
174 | <varlistentry id="db_stat">
|
---|
175 | <term><command>db_stat</command></term>
|
---|
176 | <listitem>
|
---|
177 | <para>Displays statistics for Berkeley databases</para>
|
---|
178 | <indexterm zone="ch-system-db db_stat"><primary sortas="b-db_stat">db_stat</primary></indexterm>
|
---|
179 | </listitem>
|
---|
180 | </varlistentry>
|
---|
181 |
|
---|
182 | <varlistentry id="db_upgrade">
|
---|
183 | <term><command>db_upgrade</command></term>
|
---|
184 | <listitem>
|
---|
185 | <para>Is used to upgrade database files to a newer version of Berkeley DB</para>
|
---|
186 | <indexterm zone="ch-system-db db_upgrade"><primary sortas="b-db_upgrade">db_upgrade</primary></indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 |
|
---|
190 | <varlistentry id="db_verify">
|
---|
191 | <term><command>db_verify</command></term>
|
---|
192 | <listitem>
|
---|
193 | <para>Is used to run consistency checks on database files</para>
|
---|
194 | <indexterm zone="ch-system-db db_verify"><primary sortas="b-db_verify">db_verify</primary></indexterm>
|
---|
195 | </listitem>
|
---|
196 | </varlistentry>
|
---|
197 |
|
---|
198 |
|
---|
199 | <varlistentry id="libdb">
|
---|
200 | <term><filename class="libraryfile">libdb.[so,a]</filename></term>
|
---|
201 | <listitem>
|
---|
202 | <para>Contains functions to manipulate database files from C programs</para>
|
---|
203 | <indexterm zone="ch-system-db libdb"><primary sortas="c-libdb">libdb</primary></indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | <varlistentry id="libdb_cxx">
|
---|
208 | <term><filename class="libraryfile">libdb_cxx.[so,a]</filename></term>
|
---|
209 | <listitem>
|
---|
210 | <para>Contains functions to manipulate database files from C++ programs</para>
|
---|
211 | <indexterm zone="ch-system-db libdb_cxx"><primary sortas="c-libdb_cxx">libdb_cxx</primary></indexterm>
|
---|
212 | </listitem>
|
---|
213 | </varlistentry>
|
---|
214 | </variablelist>
|
---|
215 |
|
---|
216 | </sect2>
|
---|
217 |
|
---|
218 | </sect1>
|
---|