2004-06-13 07:57:50 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2004-11-17 10:58:27 +08:00
|
|
|
<!ENTITY db-download-http "http://www.arte.unipi.it/Public/UNIX/db-&db-version;.tar.gz">
|
|
|
|
<!ENTITY db-download-ftp "ftp://sleepycat1.inetu.net/releases/db-&db-version;.tar.gz">
|
|
|
|
<!ENTITY db-size "5.7 MB">
|
|
|
|
<!ENTITY db-buildsize "71 MB">
|
2004-06-13 07:57:50 +08:00
|
|
|
<!ENTITY db-time "1.22 SBU">
|
|
|
|
]>
|
|
|
|
|
2003-09-29 21:41:12 +08:00
|
|
|
<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
|
2004-08-10 12:23:09 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-10 12:23:09 +08:00
|
|
|
</sect1info>
|
2004-05-07 10:32:10 +08:00
|
|
|
<?dbhtml filename="db.html"?>
|
2003-09-29 21:41:12 +08:00
|
|
|
<title>Berkeley DB-&db-version;</title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-06-13 07:57:50 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Introduction to <application>Berkeley DB</application></title>
|
|
|
|
|
|
|
|
<para>The <application>Berkeley DB</application> package contains programs and
|
|
|
|
utilities used by many other applications for database related
|
|
|
|
functions.</para>
|
|
|
|
|
|
|
|
<sect3><title>Package information</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem><para>Download (HTTP): <ulink
|
|
|
|
url="&db-download-http;"/></para></listitem>
|
|
|
|
<listitem><para>Download (FTP): <ulink
|
|
|
|
url="&db-download-ftp;"/></para></listitem>
|
|
|
|
<listitem><para>Download size: &db-size;</para></listitem>
|
2004-11-17 10:58:27 +08:00
|
|
|
<listitem><para>Estimated disk space required:
|
2004-06-13 07:57:50 +08:00
|
|
|
&db-buildsize;</para></listitem>
|
|
|
|
<listitem><para>Estimated build time:
|
|
|
|
&db-time;</para></listitem></itemizedlist>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title><application>Berkeley DB</application> dependencies</title>
|
|
|
|
<sect4><title>Optional</title>
|
|
|
|
<para><xref linkend="tcl"/> and <xref linkend="j2sdk"/>
|
|
|
|
</para></sect4>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>Berkeley DB</application></title>
|
|
|
|
|
2004-07-22 13:08:56 +08:00
|
|
|
<para>Install <application>Berkeley DB</application> by running the following
|
|
|
|
commands:</para>
|
2004-06-13 07:57:50 +08:00
|
|
|
|
2004-11-17 10:58:27 +08:00
|
|
|
<screen><userinput><command>cd build_unix &&
|
2004-06-13 07:57:50 +08:00
|
|
|
../dist/configure --prefix=/usr \
|
|
|
|
--enable-compat185 \
|
|
|
|
--enable-cxx &&
|
2004-07-12 04:57:30 +08:00
|
|
|
make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &&
|
2004-06-13 07:57:50 +08:00
|
|
|
make docdir=/usr/share/doc/db-&db-version; install</command></userinput></screen>
|
|
|
|
|
2004-09-15 02:45:45 +08:00
|
|
|
<para><emphasis>Note:</emphasis> If you build the package as an unprivileged
|
|
|
|
user, then switch to the root user to install the package,
|
2004-07-22 13:08:56 +08:00
|
|
|
<application>Berkeley DB</application> will install the files with ownerships
|
|
|
|
of the user building the package. This is undesireable. Change the ownership of
|
|
|
|
the installed files using the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>chown root:root /usr/bin/db_* \
|
|
|
|
/usr/lib/libdb* /usr/include/db* &&
|
2004-09-15 02:45:45 +08:00
|
|
|
chown -R root:root /usr/share/doc/db-4.2.52.2</command></userinput></screen>
|
2004-07-22 13:08:56 +08:00
|
|
|
|
2004-06-13 07:57:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2004-07-22 13:08:56 +08:00
|
|
|
<para><command>cd build_unix &&
|
|
|
|
../dist/configure --prefix=/usr...</command>:
|
2004-06-13 07:57:50 +08:00
|
|
|
This replaces the normal <command>./configure</command> command, as
|
|
|
|
<application>Berkeley DB</application> comes with various
|
|
|
|
build directories for different platforms.</para>
|
|
|
|
|
2004-11-17 10:58:27 +08:00
|
|
|
<para><parameter>--enable-compat185</parameter>: This switch enables
|
|
|
|
building DB 1.85 compatibility <acronym>API</acronym>.</para>
|
|
|
|
|
|
|
|
<para><parameter>--enable-cxx</parameter>: This switch enables building
|
|
|
|
C++ <acronym>API</acronym>.</para>
|
|
|
|
|
2004-07-12 04:57:30 +08:00
|
|
|
<para><command>make LIBSO_LIBS="-lpthread"
|
|
|
|
LIBXSO_LIBS="-lpthread"</command>: configure does not correctly handle
|
|
|
|
<acronym>NPTL</acronym>. These variables force it to properly link
|
|
|
|
against <acronym>NPTL</acronym>.</para>
|
|
|
|
|
2004-06-13 07:57:50 +08:00
|
|
|
<para><command>make docdir=/usr/share/doc/db-&db-version;
|
|
|
|
install</command>: This installs the documentation in
|
|
|
|
the correct place.</para>
|
|
|
|
|
2004-11-17 11:01:05 +08:00
|
|
|
<para><option>--enable-tcl --with-tcl=/usr/lib</option>:
|
2004-07-07 04:58:04 +08:00
|
|
|
enables <application>Tcl</application> support in DB and creates the
|
|
|
|
<filename class="libraryfile">libdb_tcl</filename> libraries.</para>
|
|
|
|
|
2004-07-06 13:02:59 +08:00
|
|
|
<para><option>--enable-java</option>: enables <application>Java</application>
|
|
|
|
support in DB and creates the
|
|
|
|
<filename class='libraryfile'>libdb_java</filename> libraries.</para>
|
|
|
|
|
2004-06-13 07:57:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<para>The <application>Berkeley DB</application> package contains
|
|
|
|
<command>db_archive</command>,
|
|
|
|
<command>db_checkpoint</command>,
|
|
|
|
<command>db_deadlock</command>,
|
|
|
|
<command>db_dump</command>,
|
|
|
|
<command>db_load</command>,
|
|
|
|
<command>db_printlog</command>,
|
|
|
|
<command>db_recover</command>,
|
|
|
|
<command>db_stat</command>,
|
2004-07-06 13:02:59 +08:00
|
|
|
<command>db_upgrade</command>,
|
|
|
|
<command>db_verify</command> and the
|
|
|
|
<filename class='libraryfile'>libdb</filename> libraries.
|
2004-06-13 07:57:50 +08:00
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
|
|
|
|
<sect3><title>db_archive</title>
|
|
|
|
<para><command>db_archive</command> prints the pathnames of log files that are
|
|
|
|
no longer in use.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_checkpoint</title>
|
|
|
|
<para><command>db_checkpoint</command> is a daemon process used to monitor and
|
|
|
|
checkpoint database logs.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_deadlock</title>
|
|
|
|
<para><command>db_deadlock</command> is used to abort lock requests when
|
|
|
|
deadlocks are detected.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_dump</title>
|
|
|
|
<para><command>db_dump</command> converts database files to a flat file format
|
|
|
|
readable by <command>db_load</command>.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_load</title>
|
|
|
|
<para><command>db_load</command> is used to create database files from flat
|
|
|
|
files created with <command>db_dump</command>.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_printlog</title>
|
|
|
|
<para><command>db_printlog</command> converts database log files to human
|
|
|
|
readable text.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_recover</title>
|
|
|
|
<para><command>db_recover</command> is used to restore a database to a
|
|
|
|
consistent state after a failure.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_stat</title>
|
|
|
|
<para><command>db_stat</command> displays database environment statistics.
|
|
|
|
</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_upgrade</title>
|
|
|
|
<para><command>db_upgrade</command> is used to upgrade database files to a
|
|
|
|
newer version of <application>Berkeley DB</application>.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>db_verify</title>
|
|
|
|
<para><command>db_verify</command> is used to run consistency checks on
|
|
|
|
database files.</para></sect3>
|
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|