[08254fc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[75d962dc] | 7 | <!ENTITY db-download-http " ">
|
---|
[93c1bf51] | 8 | <!ENTITY db-download-ftp "ftp://sleepycat1.inetu.net/releases/db-&db-version;.tar.gz">
|
---|
[f62b122b] | 9 | <!ENTITY db-md5sum "fcc481d52c3b80e20a328f8c0cb042bd">
|
---|
[93c1bf51] | 10 | <!ENTITY db-size "5.7 MB">
|
---|
[75d962dc] | 11 | <!ENTITY db-buildsize "68 MB">
|
---|
[93c1bf51] | 12 | <!ENTITY db-time "1.23 SBU">
|
---|
[08254fc] | 13 | ]>
|
---|
| 14 |
|
---|
[317034a] | 15 | <sect1 id="db" xreflabel="Berkeley DB-&db-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[00bb024c] | 20 | <?dbhtml filename="db.html"?>
|
---|
[317034a] | 21 | <title>Berkeley DB-&db-version;</title>
|
---|
[f45b1953] | 22 |
|
---|
[08254fc] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application>Berkeley DB</application></title>
|
---|
| 25 |
|
---|
| 26 | <para>The <application>Berkeley DB</application> package contains programs and
|
---|
| 27 | utilities used by many other applications for database related
|
---|
| 28 | functions.</para>
|
---|
| 29 |
|
---|
| 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
| 32 | <listitem><para>Download (HTTP): <ulink
|
---|
| 33 | url="&db-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP): <ulink
|
---|
| 35 | url="&db-download-ftp;"/></para></listitem>
|
---|
[f62b122b] | 36 | <listitem><para>Download MD5 sum: &db-md5sum;</para></listitem>
|
---|
[08254fc] | 37 | <listitem><para>Download size: &db-size;</para></listitem>
|
---|
[7d9150d] | 38 | <listitem><para>Estimated disk space required:
|
---|
[08254fc] | 39 | &db-buildsize;</para></listitem>
|
---|
| 40 | <listitem><para>Estimated build time:
|
---|
| 41 | &db-time;</para></listitem></itemizedlist>
|
---|
| 42 | </sect3>
|
---|
| 43 |
|
---|
| 44 | <sect3><title><application>Berkeley DB</application> dependencies</title>
|
---|
| 45 | <sect4><title>Optional</title>
|
---|
[f62b122b] | 46 | <para><xref linkend="tcl"/> and <xref linkend="j2sdk"/></para>
|
---|
| 47 | </sect4>
|
---|
[08254fc] | 48 | </sect3>
|
---|
| 49 |
|
---|
| 50 | </sect2>
|
---|
| 51 |
|
---|
| 52 | <sect2>
|
---|
| 53 | <title>Installation of <application>Berkeley DB</application></title>
|
---|
| 54 |
|
---|
[5fef0f97] | 55 | <para>Install <application>Berkeley DB</application> by running the following
|
---|
| 56 | commands:</para>
|
---|
[08254fc] | 57 |
|
---|
[93c1bf51] | 58 | <screen><userinput><command>cd build_unix &&
|
---|
[08254fc] | 59 | ../dist/configure --prefix=/usr \
|
---|
| 60 | --enable-compat185 \
|
---|
| 61 | --enable-cxx &&
|
---|
[a136ea0] | 62 | make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &&
|
---|
[08254fc] | 63 | make docdir=/usr/share/doc/db-&db-version; install</command></userinput></screen>
|
---|
| 64 |
|
---|
[7771f84] | 65 | <para><emphasis>Note:</emphasis> If you build the package as an unprivileged
|
---|
| 66 | user, then switch to the root user to install the package,
|
---|
[5fef0f97] | 67 | <application>Berkeley DB</application> will install the files with ownerships
|
---|
| 68 | of the user building the package. This is undesireable. Change the ownership of
|
---|
| 69 | the installed files using the following commands:</para>
|
---|
| 70 |
|
---|
| 71 | <screen><userinput><command>chown root:root /usr/bin/db_* \
|
---|
| 72 | /usr/lib/libdb* /usr/include/db* &&
|
---|
[93c1bf51] | 73 | chown -R root:root /usr/share/doc/db-&db-version;</command></userinput></screen>
|
---|
[5fef0f97] | 74 |
|
---|
[08254fc] | 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2>
|
---|
| 78 | <title>Command explanations</title>
|
---|
| 79 |
|
---|
[5fef0f97] | 80 | <para><command>cd build_unix &&
|
---|
| 81 | ../dist/configure --prefix=/usr...</command>:
|
---|
[08254fc] | 82 | This replaces the normal <command>./configure</command> command, as
|
---|
| 83 | <application>Berkeley DB</application> comes with various
|
---|
| 84 | build directories for different platforms.</para>
|
---|
| 85 |
|
---|
[7d9150d] | 86 | <para><parameter>--enable-compat185</parameter>: This switch enables
|
---|
| 87 | building DB 1.85 compatibility <acronym>API</acronym>.</para>
|
---|
| 88 |
|
---|
| 89 | <para><parameter>--enable-cxx</parameter>: This switch enables building
|
---|
| 90 | C++ <acronym>API</acronym>.</para>
|
---|
| 91 |
|
---|
[a136ea0] | 92 | <para><command>make LIBSO_LIBS="-lpthread"
|
---|
| 93 | LIBXSO_LIBS="-lpthread"</command>: configure does not correctly handle
|
---|
| 94 | <acronym>NPTL</acronym>. These variables force it to properly link
|
---|
| 95 | against <acronym>NPTL</acronym>.</para>
|
---|
| 96 |
|
---|
[08254fc] | 97 | <para><command>make docdir=/usr/share/doc/db-&db-version;
|
---|
| 98 | install</command>: This installs the documentation in
|
---|
| 99 | the correct place.</para>
|
---|
| 100 |
|
---|
[83f40b6] | 101 | <para><option>--enable-tcl --with-tcl=/usr/lib</option>:
|
---|
[82f09cd1] | 102 | enables <application>Tcl</application> support in DB and creates the
|
---|
| 103 | <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
|
---|
| 104 |
|
---|
[e578536] | 105 | <para><option>--enable-java</option>: enables <application>Java</application>
|
---|
| 106 | support in DB and creates the
|
---|
| 107 | <filename class='libraryfile'>libdb_java</filename> libraries.</para>
|
---|
| 108 |
|
---|
[08254fc] | 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2>
|
---|
| 112 | <title>Contents</title>
|
---|
| 113 |
|
---|
| 114 | <para>The <application>Berkeley DB</application> package contains
|
---|
| 115 | <command>db_archive</command>,
|
---|
| 116 | <command>db_checkpoint</command>,
|
---|
| 117 | <command>db_deadlock</command>,
|
---|
| 118 | <command>db_dump</command>,
|
---|
| 119 | <command>db_load</command>,
|
---|
| 120 | <command>db_printlog</command>,
|
---|
| 121 | <command>db_recover</command>,
|
---|
| 122 | <command>db_stat</command>,
|
---|
[e578536] | 123 | <command>db_upgrade</command>,
|
---|
| 124 | <command>db_verify</command> and the
|
---|
| 125 | <filename class='libraryfile'>libdb</filename> libraries.
|
---|
[08254fc] | 126 |
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2><title>Description</title>
|
---|
| 132 |
|
---|
| 133 | <sect3><title>db_archive</title>
|
---|
| 134 | <para><command>db_archive</command> prints the pathnames of log files that are
|
---|
| 135 | no longer in use.</para></sect3>
|
---|
| 136 |
|
---|
| 137 | <sect3><title>db_checkpoint</title>
|
---|
| 138 | <para><command>db_checkpoint</command> is a daemon process used to monitor and
|
---|
| 139 | checkpoint database logs.</para></sect3>
|
---|
| 140 |
|
---|
| 141 | <sect3><title>db_deadlock</title>
|
---|
| 142 | <para><command>db_deadlock</command> is used to abort lock requests when
|
---|
| 143 | deadlocks are detected.</para></sect3>
|
---|
| 144 |
|
---|
| 145 | <sect3><title>db_dump</title>
|
---|
| 146 | <para><command>db_dump</command> converts database files to a flat file format
|
---|
| 147 | readable by <command>db_load</command>.</para></sect3>
|
---|
| 148 |
|
---|
| 149 | <sect3><title>db_load</title>
|
---|
| 150 | <para><command>db_load</command> is used to create database files from flat
|
---|
| 151 | files created with <command>db_dump</command>.</para></sect3>
|
---|
| 152 |
|
---|
| 153 | <sect3><title>db_printlog</title>
|
---|
| 154 | <para><command>db_printlog</command> converts database log files to human
|
---|
| 155 | readable text.</para></sect3>
|
---|
| 156 |
|
---|
| 157 | <sect3><title>db_recover</title>
|
---|
| 158 | <para><command>db_recover</command> is used to restore a database to a
|
---|
| 159 | consistent state after a failure.</para></sect3>
|
---|
| 160 |
|
---|
| 161 | <sect3><title>db_stat</title>
|
---|
| 162 | <para><command>db_stat</command> displays database environment statistics.
|
---|
| 163 | </para></sect3>
|
---|
| 164 |
|
---|
| 165 | <sect3><title>db_upgrade</title>
|
---|
| 166 | <para><command>db_upgrade</command> is used to upgrade database files to a
|
---|
| 167 | newer version of <application>Berkeley DB</application>.</para></sect3>
|
---|
| 168 |
|
---|
| 169 | <sect3><title>db_verify</title>
|
---|
| 170 | <para><command>db_verify</command> is used to run consistency checks on
|
---|
| 171 | database files.</para></sect3>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
[f45b1953] | 174 |
|
---|
| 175 | </sect1>
|
---|