source: server/databases/db.xml@ 627c062

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 627c062 was 33c9d33, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16390 af4574ff-66df-0310-9fd7-8a98e5e911e0

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