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