aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/db.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/db.xml')
-rw-r--r--chapter06/db.xml218
1 files changed, 218 insertions, 0 deletions
diff --git a/chapter06/db.xml b/chapter06/db.xml
new file mode 100644
index 000000000..ae49f34c3
--- /dev/null
+++ b/chapter06/db.xml
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+ %general-entities;
+]>
+<sect1 id="ch-system-db" role="wrap">
+<title>DB-&db-version;</title>
+<?dbhtml filename="db.html"?>
+
+<indexterm zone="ch-system-db"><primary sortas="a-DB">Berkeley DB</primary></indexterm>
+
+<sect2 role="package"><title/>
+<para>The DB package contains programs and utilities used by many other
+applications for database related functions.</para>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>1.0 SBU</seg><seg>74 MB</seg></seglistitem>
+</segmentedlist>
+
+<segmentedlist>
+<segtitle>&dependencies;</segtitle>
+<seglistitem><seg>Bash, Binutils, Coreutils,
+Diffutils, GCC, Glibc, Make and Sed.</seg></seglistitem>
+</segmentedlist>
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of DB</title>
+
+<para>Prepare DB for compilation:</para>
+
+<screen><userinput>cd build_unix &amp;&amp;
+../dist/configure --prefix=/usr --enable-compat185 --enable-cxx</userinput></screen>
+
+<para>The meaning of the configure options:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>--enable-compat185</parameter></term>
+<listitem><para>This option enables building DB 1.85 compatibility API.</para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term><parameter>--enable-cxx</parameter></term>
+<listitem><para>This option enables building C++ API libraries.</para></listitem>
+</varlistentry>
+</variablelist>
+
+<para>Compile the package:</para>
+
+<screen><userinput>make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</userinput></screen>
+
+<para>The meaning of the make option:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</parameter></term>
+<listitem><para>These variables work around a bug in the <command>configure</command>
+script that causes the DB libraries not to link against NPTL libraries</para></listitem>
+</varlistentry>
+</variablelist>
+
+<para>It is not possible to test the package meaningfully, because that
+would involve building TCL bindings. TCL bindings cannot be built properly
+now because TCL is linked against Glibc in <filename class="directory">/tools</filename>,
+not against Glibc in <filename class="directory">/usr</filename>.</para>
+
+<para>Install the package:</para>
+
+<screen><userinput>make docdir=/usr/share/doc/db-&db-version; install</userinput></screen>
+
+<para>The meaning of the make option:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>docdir=...</parameter></term>
+<listitem><para>This variable specifies the correct place for the documentation.</para></listitem>
+</varlistentry>
+</variablelist>
+
+<para>Fix the permissions on the installed documentation files:</para>
+
+<screen><userinput>chown root:root /usr/bin/db_* \
+ /usr/lib/libdb* /usr/include/db* &amp;&amp;
+chown -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
+
+</sect2>
+
+
+<sect2 id="contents-db" role="content"><title>Contents of DB</title>
+<segmentedlist>
+<segtitle>Installed programs</segtitle>
+<seglistitem><seg>db_archive, db_checkpoint, db_deadlock, db_dump,
+db_hotbackup, db_load, db_printlog, db_recover, db_stat, db_upgrade and
+db_verify
+</seg></seglistitem>
+</segmentedlist>
+
+<segmentedlist>
+<segtitle>Installed libraries</segtitle>
+<seglistitem><seg>libdb.[so,a] and libdb_cxx.[so,a]</seg></seglistitem>
+</segmentedlist>
+
+<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
+<?dbfo list-presentation="list"?>
+<?dbhtml list-presentation="table"?>
+
+<varlistentry id="db_archive">
+<term><command>db_archive</command></term>
+<listitem>
+<para>Prints the pathnames of log files that are no longer in use</para>
+<indexterm zone="ch-system-db db_archive"><primary sortas="b-db_archive">db_archive</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_checkpoint">
+<term><command>db_checkpoint</command></term>
+<listitem>
+<para>A daemon used to monitor and checkpoint database logs</para>
+<indexterm zone="ch-system-db db_checkpoint"><primary sortas="b-db_checkpoint">db_checkpoint</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_deadlock">
+<term><command>db_deadlock</command></term>
+<listitem>
+<para>A daemon used to abort lock requests when deadlocks are detected</para>
+<indexterm zone="ch-system-db db_deadlock"><primary sortas="b-db_deadlock">db_deadlock</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_dump">
+<term><command>db_dump</command></term>
+<listitem>
+<para>Converts database files to a plain-text file format readable by <command>db_load</command></para>
+<indexterm zone="ch-system-db db_dump"><primary sortas="b-db_dump">db_dump</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_hotbackup">
+<term><command>db_hotbackup</command></term>
+<listitem>
+<para>Creates <quote>hot backup</quote> or <quote>hot failover</quote> snapshots of Berkeley DB databases</para>
+<indexterm zone="ch-system-db db_hotbackup"><primary sortas="b-db_hotbackup">db_hotbackup</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_load">
+<term><command>db_load</command></term>
+<listitem>
+<para>Is used to create database files from plain-text files</para>
+<indexterm zone="ch-system-db db_load"><primary sortas="b-db_load">db_load</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_printlog">
+<term><command>db_printlog</command></term>
+<listitem>
+<para>Converts database log files to human readable text</para>
+<indexterm zone="ch-system-db db_printlog"><primary sortas="b-db_printlog">db_printlog</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_recover">
+<term><command>db_recover</command></term>
+<listitem>
+<para>Is used to restore a database to a consistent state after a failure</para>
+<indexterm zone="ch-system-db db_recover"><primary sortas="b-db_recover">db_recover</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_stat">
+<term><command>db_stat</command></term>
+<listitem>
+<para>Displays statistics for Berkeley databases</para>
+<indexterm zone="ch-system-db db_stat"><primary sortas="b-db_stat">db_stat</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_upgrade">
+<term><command>db_upgrade</command></term>
+<listitem>
+<para>Is used to upgrade database files to a newer version of Berkeley DB</para>
+<indexterm zone="ch-system-db db_upgrade"><primary sortas="b-db_upgrade">db_upgrade</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="db_verify">
+<term><command>db_verify</command></term>
+<listitem>
+<para>Is used to run consistency checks on database files</para>
+<indexterm zone="ch-system-db db_verify"><primary sortas="b-db_verify">db_verify</primary></indexterm>
+</listitem>
+</varlistentry>
+
+
+<varlistentry id="libdb">
+<term><filename class="libraryfile">libdb.[so,a]</filename></term>
+<listitem>
+<para>Contains functions to manipulate database files from C programs</para>
+<indexterm zone="ch-system-db libdb"><primary sortas="c-libdb">libdb</primary></indexterm>
+</listitem>
+</varlistentry>
+
+<varlistentry id="libdb_cxx">
+<term><filename class="libraryfile">libdb_cxx.[so,a]</filename></term>
+<listitem>
+<para>Contains functions to manipulate database files from C++ programs</para>
+<indexterm zone="ch-system-db libdb_cxx"><primary sortas="c-libdb_cxx">libdb_cxx</primary></indexterm>
+</listitem>
+</varlistentry>
+</variablelist>
+
+</sect2>
+
+</sect1>