source: server/databases/db.xml@ 51d044f

systemd-13485
Last change on this file since 51d044f was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16309 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY db-download-http
8 "http://download.oracle.com/berkeley-db/db-&db-version;.tar.gz">
9 <!ENTITY db-download-ftp " ">
10 <!ENTITY db-md5sum "9525aa57a282d49e5d1bf5e48ffa8a56">
11 <!ENTITY db-size "36 MB">
12 <!ENTITY db-buildsize "296 MB">
13 <!ENTITY db-time "0.8 SBU">
14]>
15
16<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
17 <?dbhtml filename="db.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Berkeley DB-&db-version;</title>
25
26 <indexterm zone="db">
27 <primary sortas="a-Berkeley-DB">Berkeley DB</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Berkeley DB</title>
32
33 <para>
34 The <application>Berkeley DB</application> package contains programs and
35 utilities used by many other applications for database related functions.
36 </para>
37
38 &lfs77_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&db-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&db-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &db-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &db-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &db-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &db-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="tcl"/>,
79 <xref linkend="openjdk"/> or <xref linkend="java"/>, and
80 <xref linkend="sharutils"/> (for the <command>uudecode</command> command)
81 </para>
82
83 <para condition="html" role="usernotes">
84 User Notes: <ulink url="&blfs-wiki;/db"/>
85 </para>
86 </sect2>
87
88 <!-- <sect2 role="testing">
89 <title>Testing Berkeley DB</title>
90
91 <para>
92 If you can't wait 12 hours or so you may want to skip ahead to
93 <xref linkend="bdb-installation"/>. The test suite can take a long time
94 and has a few bugs causing a report of <quote>Regression tests
95 failed</quote>. However, running the test suite is a very exhaustive test
96 of your hardware, perhaps pushing your machine harder (especially disk
97 I/O) than it will ever see during production use. Note that you must have
98 <application>Tcl</application> installed to run the test suite.
99 </para>
100
101 <para>
102 Build for the <application>Berkeley DB</application> test by running the
103 following commands:
104 </para>
105
106<screen><userinput>cd build_unix &amp;&amp;
107../dist/configure -&#45;prefix=/usr \
108 -&#45;enable-test \
109 -&#45;enable-tcl \
110 -&#45;enable-dbm \
111 -&#45;with-tcl=/usr/lib &amp;&amp;
112make</userinput></screen>
113
114 <para>
115 To test the results, start <command>tclsh</command>:
116 </para>
117
118<screen><userinput>tclsh</userinput></screen>
119
120 <para>
121 From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>), run:
122 </para>
123
124<screen><userinput>source ../test/tcl/test.tcl
125run_parallel 5 run_std
126exit</userinput></screen>
127
128 <para>
129 Clean up the source tree with the following command:
130 </para>
131
132<screen><userinput>make realclean &amp;&amp;
133cd ..</userinput></screen>
134
135 <note><para>
136 Test127.f and Repmgr026.c are known to fail.
137 </para></note>
138
139 <para>
140 There are additional testing suites in the
141 <filename class="directory">test/c</filename> and
142 <filename class="directory">test/cxx</filename> directories. See the
143 <filename>README</filename> in each directory for instructions on how to
144 run the tests.
145 </para>
146 </sect2> -->
147
148 <sect2 role="installation" id="bdb-installation">
149 <title>Installation of Berkeley DB</title>
150
151 <!-- <note>
152 <para>
153 If you plan on installing <application>Berkeley DB</application> with
154 Java support, you should check the system for certain versions of
155 <xref linkend="jdk"/> and <xref linkend="gmime"/>. Specifically,
156 if <application>JDK</application>-6 Update X and the
157 <command>uudecode</command> program from the
158 <application>GMime</application> program is on the system, the build
159 will fail (unless you run the modified <command>./configure</command>
160 command shown below). You can run two commands
161 (<command>javac -version</command> and
162 <command>uudecode -&#45;version</command>) to determine what versions are
163 installed. You can also download and run a shell script from
164 <ulink url="&files-anduin;/jdk-uudecode-check.sh"/> that will alert you
165 to a non-working condition. If the identified programs exist on the
166 system, you must modify the <command>./configure</command> command as
167 shown below.
168 </para>
169
170<screen><userinput>uudecode="no" ../dist/configure -&#45;(use the parameters shown below)</userinput></screen>
171 </note> -->
172
173 <para>
174 Install <application>Berkeley DB</application> by running the following
175 commands:
176 </para>
177
178<screen><userinput>cd build_unix &amp;&amp;
179../dist/configure --prefix=/usr \
180 --enable-compat185 \
181 --enable-dbm \
182 --disable-static \
183 --enable-cxx &amp;&amp;
184make</userinput></screen>
185
186 <para>
187 This package does not have a working testsuite.
188 </para>
189
190 <para>
191 Now, as the <systemitem class="username">root</systemitem> user:
192 </para>
193
194<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
195
196chown -v -R root:root \
197 /usr/bin/db_* \
198 /usr/include/db{,_185,_cxx}.h \
199 /usr/lib/libdb*.{so,la} \
200 /usr/share/doc/db-&db-version;</userinput></screen>
201 </sect2>
202
203 <sect2 role="commands">
204 <title>Command Explanations</title>
205
206 <para>
207 <command>cd build_unix &amp;&amp; ../dist/configure
208 --prefix=/usr...</command>: This replaces the normal
209 <command>./configure</command> command, as
210 <application>Berkeley DB</application> comes with various build
211 directories for different platforms.
212 </para>
213
214 <para>
215 <option>--enable-compat185</option>: This switch enables building
216 the DB-1.85 compatibility API.
217 </para>
218
219 <para>
220 <option>--enable-cxx</option>: This switch enables building C++ API
221 libraries.
222 </para>
223
224 <para>
225 <option>--enable-dbm</option>: Enables legacy interface support
226 needed by some older packages.
227 </para>
228
229 <para>
230 <command>make docdir=/usr/share/doc/db-&db-version; install</command>:
231 This installs the documentation in the standard location instead of
232 <filename class="directory">/usr/docs</filename>.
233 </para>
234
235 <para>
236 <command>chown -v -R root:root ...</command>:This command changes the
237 ownership of various installed files from the uid:gid of the builder to
238 root:root.
239 </para>
240
241 <para>
242 <option>--enable-tcl --with-tcl=/usr/lib</option>: Enables
243 <application>Tcl</application> support in DB and creates the
244 <filename class="libraryfile">libdb_tcl</filename> libraries.
245 </para>
246
247 <para>
248 <option>--enable-java</option>: Enables <application>Java</application>
249 support in DB and creates the
250 <filename class="libraryfile">libdb_java</filename> libraries.
251 </para>
252 </sect2>
253
254 <sect2 role="content">
255 <title>Contents</title>
256
257 <segmentedlist>
258 <segtitle>Installed Programs</segtitle>
259 <segtitle>Installed Libraries</segtitle>
260 <segtitle>Installed Directory</segtitle>
261
262 <seglistitem>
263 <seg>
264 db_archive,
265 db_checkpoint,
266 db_deadlock,
267 db_dump,
268 db_hotbackup,
269 db_load,
270 db_log_verify,
271 db_printlog,
272 db_recover,
273 db_replicate,
274 db_stat,
275 db_tuner,
276 db_upgrade, and
277 db_verify
278 </seg>
279 <seg>
280 libdb.so,
281 libdb_cxx.so,
282 libdb_java.so, and
283 libdb_tcl.so
284 </seg>
285 <seg>/usr/share/doc/db-&db-version;</seg>
286 </seglistitem>
287 </segmentedlist>
288
289 <variablelist>
290 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
291 <?dbfo list-presentation="list"?>
292 <?dbhtml list-presentation="table"?>
293
294 <varlistentry id="db_archive">
295 <term><command>db_archive</command></term>
296 <listitem>
297 <para>
298 prints the pathnames of log files that are no longer in use.
299 </para>
300 <indexterm zone="db db_archive">
301 <primary sortas="b-db_archive">db_archive</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="db_checkpoint">
307 <term><command>db_checkpoint</command></term>
308 <listitem>
309 <para>
310 is a daemon process used to monitor and checkpoint database logs.
311 </para>
312 <indexterm zone="db db_checkpoint">
313 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="db_deadlock">
319 <term><command>db_deadlock</command></term>
320 <listitem>
321 <para>
322 is used to abort lock requests when deadlocks are detected.
323 </para>
324 <indexterm zone="db db_deadlock">
325 <primary sortas="b-db_deadlock">db_deadlock</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="db_dump">
331 <term><command>db_dump</command></term>
332 <listitem>
333 <para>
334 converts database files to a flat file format readable by
335 <command>db_load</command>.
336 </para>
337 <indexterm zone="db db_dump">
338 <primary sortas="b-db_dump">db_dump</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="db_hotbackup">
344 <term><command>db_hotbackup</command></term>
345 <listitem>
346 <para>
347 creates "hot backup" or "hot failover" snapshots of Berkeley DB
348 databases.
349 </para>
350 <indexterm zone="db db_hotbackup">
351 <primary sortas="b-db_hotbackup">db_hotbackup</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="db_load">
357 <term><command>db_load</command></term>
358 <listitem>
359 <para>
360 is used to create database files from flat files created with
361 <command>db_dump</command>.
362 </para>
363 <indexterm zone="db db_load">
364 <primary sortas="b-db_load">db_load</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="db_log_verify">
370 <term><command>db_log_verify</command></term>
371 <listitem>
372 <para>verifies the log files of a database.</para>
373 <indexterm zone="db db_log_verify">
374 <primary sortas="b-db_log_verify">db_log_verify</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="db_printlog">
380 <term><command>db_printlog</command></term>
381 <listitem>
382 <para>converts database log files to human readable text.</para>
383 <indexterm zone="db db_printlog">
384 <primary sortas="b-db_printlog">db_printlog</primary>
385 </indexterm>
386 </listitem>
387 </varlistentry>
388
389 <varlistentry id="db_recover">
390 <term><command>db_recover</command></term>
391 <listitem>
392 <para>
393 is used to restore a database to a consistent state after a failure.
394 </para>
395 <indexterm zone="db db_recover">
396 <primary sortas="b-db_recover">db_recover</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="db_replicate">
402 <term><command>db_replicate</command></term>
403 <listitem>
404 <para>
405 is a daemon process that provides replication/HA services on a
406 transactional environment.
407 </para>
408 <indexterm zone="db db_replicate">
409 <primary sortas="b-db_replicate">db_replicate</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="db_stat">
415 <term><command>db_stat</command></term>
416 <listitem>
417 <para>displays database environment statistics.</para>
418 <indexterm zone="db db_stat">
419 <primary sortas="b-db_stat">db_stat</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="db_tuner">
425 <term><command>db_tuner</command></term>
426 <listitem>
427 <para>
428 analyzes the data in a btree database, and suggests a page size that
429 is likely to deliver optimal operation.
430 </para>
431 <indexterm zone="db db_tuner">
432 <primary sortas="b-db_tuner">db_tuner</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="db_upgrade">
438 <term><command>db_upgrade</command></term>
439 <listitem>
440 <para>
441 is used to upgrade database files to a newer version of
442 <application>Berkeley DB</application>.
443 </para>
444 <indexterm zone="db db_upgrade">
445 <primary sortas="b-db_upgrade">db_upgrade</primary>
446 </indexterm>
447 </listitem>
448 </varlistentry>
449
450 <varlistentry id="db_verify">
451 <term><command>db_verify</command></term>
452 <listitem>
453 <para>is used to run consistency checks on database files.</para>
454 <indexterm zone="db db_verify">
455 <primary sortas="b-db_verify">db_verify</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459 </variablelist>
460 </sect2>
461</sect1>
Note: See TracBrowser for help on using the repository browser.