1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY db-download-http "http://downloads.sleepycat.com/db-&db-version;.tar.gz">
|
---|
8 | <!ENTITY db-download-ftp "ftp://ftp.sleepycat.com/releases/db-&db-version;.tar.gz">
|
---|
9 | <!ENTITY db-md5sum "13585a20ce32f113b8e8cdb57f52e3bb">
|
---|
10 | <!ENTITY db-size "5.9 MB">
|
---|
11 | <!ENTITY db-buildsize "74 MB (additional 140 MB to run parallel standard testsuite)">
|
---|
12 | <!ENTITY db-time "1.0 SBU (additional 80 SBU to run parallel standard testsuite)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="db" xreflabel="Berkeley DB-&db-version;">
|
---|
16 | <?dbhtml filename="db.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | <keywordset>
|
---|
22 | <keyword role="package">db-&db-version;.tar</keyword>
|
---|
23 | <keyword role="ftpdir">db</keyword>
|
---|
24 | </keywordset>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>Berkeley DB-&db-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="db">
|
---|
30 | <primary sortas="a-Berkeley-DB">Berkeley DB</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to Berkeley DB</title>
|
---|
35 |
|
---|
36 | <para>The <application>Berkeley DB</application> package contains programs
|
---|
37 | and utilities used by many other applications for database related
|
---|
38 | functions.</para>
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>Download (HTTP): <ulink url="&db-download-http;"/></para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para>Download (FTP): <ulink url="&db-download-ftp;"/></para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>Download MD5 sum: &db-md5sum;</para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download size: &db-size;</para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Estimated disk space required: &db-buildsize;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Estimated build time: &db-time;</para>
|
---|
59 | </listitem>
|
---|
60 | </itemizedlist>
|
---|
61 |
|
---|
62 | <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
|
---|
63 |
|
---|
64 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
65 | <para role="optional"><xref linkend="tcl"/>, <xref linkend="jdk"/> and
|
---|
66 | <ulink url="http://www.gnu.org/software/sharutils/">sharutils</ulink>
|
---|
67 | (for the <command>uudecode</command> command)</para>
|
---|
68 |
|
---|
69 | </sect2>
|
---|
70 |
|
---|
71 | <sect2 role="testing">
|
---|
72 | <title>Testing Berkeley DB</title>
|
---|
73 |
|
---|
74 | <para>It is recommended you skip ahead to Installation. The test-suite
|
---|
75 | takes more than 80 SBU and has a few bugs causing reports of 'Regression
|
---|
76 | Tests Failed'. You must have <application>Tcl</application> to test
|
---|
77 | <application>Berkeley DB</application>.</para>
|
---|
78 |
|
---|
79 | <para>Build for the <application>Berkeley DB</application> test by running
|
---|
80 | the following commands:</para>
|
---|
81 |
|
---|
82 | <screen><userinput>cd build_unix &&
|
---|
83 | ../dist/configure --prefix=/usr \
|
---|
84 | --enable-test --enable-tcl --with-tcl=/usr/lib &&
|
---|
85 | make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &&
|
---|
86 | chmod 644 ../test/sijointest.tcl &&
|
---|
87 | sed -i 's:puts "[s,S].*::' \
|
---|
88 | ../test/sijointest.tcl</userinput></screen>
|
---|
89 |
|
---|
90 | <para>To test the results, start <command>tclsh</command>:</para>
|
---|
91 |
|
---|
92 | <screen><userinput>tclsh</userinput></screen>
|
---|
93 |
|
---|
94 | <para>From the tclsh prompt (%), run:</para>
|
---|
95 |
|
---|
96 | <screen><userinput>source ../test/test.tcl
|
---|
97 | run_parallel 4 run_std
|
---|
98 | exit</userinput></screen>
|
---|
99 |
|
---|
100 | <para>Clean up with the following command:</para>
|
---|
101 |
|
---|
102 | <screen><userinput>make realclean &&
|
---|
103 | cd ..</userinput></screen>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="installation">
|
---|
108 | <title>Installation of Berkeley DB</title>
|
---|
109 |
|
---|
110 | <para>Install <application>Berkeley DB</application> by running the
|
---|
111 | following commands:</para>
|
---|
112 |
|
---|
113 | <screen><userinput>cd build_unix &&
|
---|
114 | ../dist/configure --prefix=/usr \
|
---|
115 | --enable-compat185 \
|
---|
116 | --enable-cxx &&
|
---|
117 | make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</userinput></screen>
|
---|
118 |
|
---|
119 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
120 |
|
---|
121 | <screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &&
|
---|
122 | chown root:root /usr/bin/db_* \
|
---|
123 | /usr/lib/libdb* /usr/include/db* &&
|
---|
124 | chown -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 role="commands">
|
---|
129 | <title>Command Explanations</title>
|
---|
130 |
|
---|
131 | <para><command>cd build_unix &&
|
---|
132 | ../dist/configure --prefix=/usr...</command>:
|
---|
133 | This replaces the normal <command>./configure</command> command, as
|
---|
134 | <application>Berkeley DB</application> comes with various
|
---|
135 | build directories for different platforms.</para>
|
---|
136 |
|
---|
137 | <para><parameter>--enable-compat185</parameter>: This switch enables
|
---|
138 | building DB 1.85 compatibility API.</para>
|
---|
139 |
|
---|
140 | <para><parameter>--enable-cxx</parameter>: This switch enables building
|
---|
141 | C++ API libraries.</para>
|
---|
142 |
|
---|
143 | <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
|
---|
144 | Enables <application>Tcl</application> support in DB and creates the
|
---|
145 | <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
|
---|
146 |
|
---|
147 | <para><parameter>--enable-java</parameter>: Enables
|
---|
148 | <application>Java</application> support in DB and creates the
|
---|
149 | <filename class='libraryfile'>libdb_java</filename> libraries.</para>
|
---|
150 |
|
---|
151 | <para><parameter>--enable-rpc</parameter>: Enables building the
|
---|
152 | <application>Berkeley DB</application> RPC server.</para>
|
---|
153 |
|
---|
154 | <para><command>make LIBSO_LIBS="-lpthread"
|
---|
155 | LIBXSO_LIBS="-lpthread"</command>: <command>configure</command>
|
---|
156 | does not correctly handle NPTL. These variables force it to
|
---|
157 | properly link against NPTL.</para>
|
---|
158 |
|
---|
159 | <para><command>make docdir=/usr/share/doc/db-&db-version;
|
---|
160 | install</command>: This installs the documentation in
|
---|
161 | the correct place.</para>
|
---|
162 |
|
---|
163 | <para><command>sed -i 's:puts "[s,S].*::' ../test/sijointest.tcl</command>:
|
---|
164 | This prevents logging two notes that are not recognized by
|
---|
165 | <command>run_std</command>.</para>
|
---|
166 |
|
---|
167 | </sect2>
|
---|
168 |
|
---|
169 | <sect2 role="content">
|
---|
170 | <title>Contents</title>
|
---|
171 |
|
---|
172 | <segmentedlist>
|
---|
173 | <segtitle>Installed Programs</segtitle>
|
---|
174 | <segtitle>Installed Libraries</segtitle>
|
---|
175 | <segtitle>Installed Directory</segtitle>
|
---|
176 |
|
---|
177 | <seglistitem>
|
---|
178 | <seg>db_archive, db_checkpoint, db_deadlock, db_dump, db_load,
|
---|
179 | db_printlog, db_recover, db_stat, db_upgrade, db_verify and
|
---|
180 | berkeley_db_svc if enabled</seg>
|
---|
181 | <seg>libdb.[so,a], libdb_cxx.[so,a], libdb_java.[so,a] and
|
---|
182 | libdb_tcl.[so,a]</seg>
|
---|
183 | <seg>/usr/share/doc/db-&db-version;</seg>
|
---|
184 | </seglistitem>
|
---|
185 | </segmentedlist>
|
---|
186 |
|
---|
187 | <variablelist>
|
---|
188 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
189 | <?dbfo list-presentation="list"?>
|
---|
190 | <?dbhtml list-presentation="table"?>
|
---|
191 |
|
---|
192 | <varlistentry id="berkeley_db_svc">
|
---|
193 | <term><command>berkeley_db_svc</command></term>
|
---|
194 | <listitem>
|
---|
195 | <para>is the <application>Berkeley DB</application>
|
---|
196 | RPC server.</para>
|
---|
197 | <indexterm zone="db berkeley_db_svc">
|
---|
198 | <primary sortas="b-berkeley_db_svc">berkeley_db_svc</primary>
|
---|
199 | </indexterm>
|
---|
200 | </listitem>
|
---|
201 | </varlistentry>
|
---|
202 |
|
---|
203 | <varlistentry id="db_archive">
|
---|
204 | <term><command>db_archive</command></term>
|
---|
205 | <listitem>
|
---|
206 | <para>prints the pathnames of log files that are no longer in
|
---|
207 | use.</para>
|
---|
208 | <indexterm zone="db db_archive">
|
---|
209 | <primary sortas="b-db_archive">db_archive</primary>
|
---|
210 | </indexterm>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry>
|
---|
213 |
|
---|
214 | <varlistentry id="db_checkpoint">
|
---|
215 | <term><command>db_checkpoint</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>is a daemon process used to monitor and checkpoint database
|
---|
218 | logs.</para>
|
---|
219 | <indexterm zone="db db_checkpoint">
|
---|
220 | <primary sortas="b-db_checkpoint">db_checkpoint</primary>
|
---|
221 | </indexterm>
|
---|
222 | </listitem>
|
---|
223 | </varlistentry>
|
---|
224 |
|
---|
225 | <varlistentry id="db_deadlock">
|
---|
226 | <term><command>db_deadlock</command></term>
|
---|
227 | <listitem>
|
---|
228 | <para>is used to abort lock requests when deadlocks are
|
---|
229 | detected.</para>
|
---|
230 | <indexterm zone="db db_deadlock">
|
---|
231 | <primary sortas="b-db_deadlock">db_deadlock</primary>
|
---|
232 | </indexterm>
|
---|
233 | </listitem>
|
---|
234 | </varlistentry>
|
---|
235 |
|
---|
236 | <varlistentry id="db_dump">
|
---|
237 | <term><command>db_dump</command></term>
|
---|
238 | <listitem>
|
---|
239 | <para>converts database files to a flat file format readable by
|
---|
240 | <command>db_load</command>.</para>
|
---|
241 | <indexterm zone="db db_dump">
|
---|
242 | <primary sortas="b-db_dump">db_dump</primary>
|
---|
243 | </indexterm>
|
---|
244 | </listitem>
|
---|
245 | </varlistentry>
|
---|
246 |
|
---|
247 | <varlistentry id="db_load">
|
---|
248 | <term><command>db_load</command></term>
|
---|
249 | <listitem>
|
---|
250 | <para>is used to create database files from flat files created with
|
---|
251 | <command>db_dump</command>.</para>
|
---|
252 | <indexterm zone="db db_load">
|
---|
253 | <primary sortas="b-db_load">db_load</primary>
|
---|
254 | </indexterm>
|
---|
255 | </listitem>
|
---|
256 | </varlistentry>
|
---|
257 |
|
---|
258 | <varlistentry id="db_printlog">
|
---|
259 | <term><command>db_printlog</command></term>
|
---|
260 | <listitem>
|
---|
261 | <para>converts database log files to human readable text.</para>
|
---|
262 | <indexterm zone="db db_printlog">
|
---|
263 | <primary sortas="b-db_printlog">db_printlog</primary>
|
---|
264 | </indexterm>
|
---|
265 | </listitem>
|
---|
266 | </varlistentry>
|
---|
267 |
|
---|
268 | <varlistentry id="db_recover">
|
---|
269 | <term><command>db_recover</command></term>
|
---|
270 | <listitem>
|
---|
271 | <para>is used to restore a database to a consistent state after a
|
---|
272 | failure.</para>
|
---|
273 | <indexterm zone="db db_recover">
|
---|
274 | <primary sortas="b-db_recover">db_recover</primary>
|
---|
275 | </indexterm>
|
---|
276 | </listitem>
|
---|
277 | </varlistentry>
|
---|
278 |
|
---|
279 | <varlistentry id="db_stat">
|
---|
280 | <term><command>db_stat</command></term>
|
---|
281 | <listitem>
|
---|
282 | <para>displays database environment statistics.</para>
|
---|
283 | <indexterm zone="db db_stat">
|
---|
284 | <primary sortas="b-db_stat">db_stat</primary>
|
---|
285 | </indexterm>
|
---|
286 | </listitem>
|
---|
287 | </varlistentry>
|
---|
288 |
|
---|
289 | <varlistentry id="db_upgrade">
|
---|
290 | <term><command>db_upgrade</command></term>
|
---|
291 | <listitem>
|
---|
292 | <para>is used to upgrade database files to a newer version of
|
---|
293 | <application>Berkeley DB</application>.</para>
|
---|
294 | <indexterm zone="db db_upgrade">
|
---|
295 | <primary sortas="b-db_upgrade">db_upgrade</primary>
|
---|
296 | </indexterm>
|
---|
297 | </listitem>
|
---|
298 | </varlistentry>
|
---|
299 |
|
---|
300 | <varlistentry id="db_verify">
|
---|
301 | <term><command>db_verify</command></term>
|
---|
302 | <listitem>
|
---|
303 | <para>is used to run consistency checks on database files.</para>
|
---|
304 | <indexterm zone="db db_verify">
|
---|
305 | <primary sortas="b-db_verify">db_verify</primary>
|
---|
306 | </indexterm>
|
---|
307 | </listitem>
|
---|
308 | </varlistentry>
|
---|
309 |
|
---|
310 | </variablelist>
|
---|
311 |
|
---|
312 | </sect2>
|
---|
313 |
|
---|
314 | </sect1>
|
---|