[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 |
|
---|
| 7 | <!ENTITY db-download-http "http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz">
|
---|
| 8 | <!ENTITY db-download-ftp " ">
|
---|
[5fef0f97] | 9 | <!ENTITY db-size "4.1 MB">
|
---|
| 10 | <!ENTITY db-buildsize "68 MB">
|
---|
[08254fc] | 11 | <!ENTITY db-time "1.22 SBU">
|
---|
| 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>
|
---|
| 36 | <listitem><para>Estimated Disk space required:
|
---|
| 37 | &db-buildsize;</para></listitem>
|
---|
| 38 | <listitem><para>Estimated build time:
|
---|
| 39 | &db-time;</para></listitem></itemizedlist>
|
---|
| 40 | </sect3>
|
---|
| 41 |
|
---|
| 42 | <sect3><title>Additional downloads</title>
|
---|
| 43 | <itemizedlist spacing='compact'>
|
---|
| 44 | <listitem><para>Required Patch: <ulink
|
---|
| 45 | url="http://www.sleepycat.com/update/4.2.52/patch.4.2.52.1"/></para></listitem>
|
---|
| 46 | <listitem><para>Required Patch: <ulink
|
---|
| 47 | url="http://www.sleepycat.com/update/4.2.52/patch.&db-version;"/></para></listitem>
|
---|
| 48 | </itemizedlist></sect3>
|
---|
| 49 |
|
---|
| 50 | <sect3><title><application>Berkeley DB</application> dependencies</title>
|
---|
| 51 | <sect4><title>Optional</title>
|
---|
| 52 | <para><xref linkend="tcl"/> and <xref linkend="j2sdk"/>
|
---|
| 53 | </para></sect4>
|
---|
| 54 | </sect3>
|
---|
| 55 |
|
---|
| 56 | </sect2>
|
---|
| 57 |
|
---|
| 58 | <sect2>
|
---|
| 59 | <title>Installation of <application>Berkeley DB</application></title>
|
---|
| 60 |
|
---|
[5fef0f97] | 61 | <para>Install <application>Berkeley DB</application> by running the following
|
---|
| 62 | commands:</para>
|
---|
[08254fc] | 63 |
|
---|
| 64 | <screen><userinput><command>patch -Np0 -i ../patch.4.2.52.1 &&
|
---|
| 65 | patch -Np0 -i ../patch.&db-version; &&
|
---|
| 66 | cd build_unix &&
|
---|
| 67 | ../dist/configure --prefix=/usr \
|
---|
| 68 | --enable-compat185 \
|
---|
| 69 | --enable-cxx &&
|
---|
[a136ea0] | 70 | make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &&
|
---|
[08254fc] | 71 | make docdir=/usr/share/doc/db-&db-version; install</command></userinput></screen>
|
---|
| 72 |
|
---|
[5fef0f97] | 73 | <para><emphasis>Note:</emphasis> If you build the package with one user, then
|
---|
| 74 | switch to the root user to install the package,
|
---|
| 75 | <application>Berkeley DB</application> will install the files with ownerships
|
---|
| 76 | of the user building the package. This is undesireable. Change the ownership of
|
---|
| 77 | the installed files using the following commands:</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput><command>chown root:root /usr/bin/db_* \
|
---|
| 80 | /usr/lib/libdb* /usr/include/db* &&
|
---|
| 81 | find /usr/share/doc/db-4.2.52.2 -exec chown -R root:root {} \;</command></userinput></screen>
|
---|
| 82 |
|
---|
[e578536] | 83 | <!-- <note><para>If you wish to enable <application>Java</application>
|
---|
[08254fc] | 84 | support in <application>Berkeley DB</application>-&db-version;, add
|
---|
[e578536] | 85 | <parameter>-enable-java</parameter> to the configure options. This requires a
|
---|
[08254fc] | 86 | Java compiler.
|
---|
| 87 | <application>Java</application> support is needed
|
---|
| 88 | if you plan to use system installed <application>Berkeley DB</application> when
|
---|
[e578536] | 89 | compiling <xref linkend="openoffice"/>.</para></note> -->
|
---|
[08254fc] | 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2>
|
---|
| 94 | <title>Command explanations</title>
|
---|
| 95 |
|
---|
[5fef0f97] | 96 | <para><command>cd build_unix &&
|
---|
| 97 | ../dist/configure --prefix=/usr...</command>:
|
---|
[08254fc] | 98 | This replaces the normal <command>./configure</command> command, as
|
---|
| 99 | <application>Berkeley DB</application> comes with various
|
---|
| 100 | build directories for different platforms.</para>
|
---|
| 101 |
|
---|
[a136ea0] | 102 | <para><command>make LIBSO_LIBS="-lpthread"
|
---|
| 103 | LIBXSO_LIBS="-lpthread"</command>: configure does not correctly handle
|
---|
| 104 | <acronym>NPTL</acronym>. These variables force it to properly link
|
---|
| 105 | against <acronym>NPTL</acronym>.</para>
|
---|
| 106 |
|
---|
[08254fc] | 107 | <para><command>make docdir=/usr/share/doc/db-&db-version;
|
---|
| 108 | install</command>: This installs the documentation in
|
---|
| 109 | the correct place.</para>
|
---|
| 110 |
|
---|
[82f09cd1] | 111 | <para><option>--enable-tcl</option> <parameter>--with-tcl=/usr/lib</parameter>:
|
---|
| 112 | enables <application>Tcl</application> support in DB and creates the
|
---|
| 113 | <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
|
---|
| 114 |
|
---|
[e578536] | 115 | <para><option>--enable-java</option>: enables <application>Java</application>
|
---|
| 116 | support in DB and creates the
|
---|
| 117 | <filename class='libraryfile'>libdb_java</filename> libraries.</para>
|
---|
| 118 |
|
---|
[08254fc] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2>
|
---|
| 122 | <title>Contents</title>
|
---|
| 123 |
|
---|
| 124 | <para>The <application>Berkeley DB</application> package contains
|
---|
| 125 | <command>db_archive</command>,
|
---|
| 126 | <command>db_checkpoint</command>,
|
---|
| 127 | <command>db_deadlock</command>,
|
---|
| 128 | <command>db_dump</command>,
|
---|
| 129 | <command>db_load</command>,
|
---|
| 130 | <command>db_printlog</command>,
|
---|
| 131 | <command>db_recover</command>,
|
---|
| 132 | <command>db_stat</command>,
|
---|
[e578536] | 133 | <command>db_upgrade</command>,
|
---|
| 134 | <command>db_verify</command> and the
|
---|
| 135 | <filename class='libraryfile'>libdb</filename> libraries.
|
---|
[08254fc] | 136 |
|
---|
| 137 | </para>
|
---|
| 138 |
|
---|
| 139 | </sect2>
|
---|
| 140 |
|
---|
| 141 | <sect2><title>Description</title>
|
---|
| 142 |
|
---|
| 143 | <sect3><title>db_archive</title>
|
---|
| 144 | <para><command>db_archive</command> prints the pathnames of log files that are
|
---|
| 145 | no longer in use.</para></sect3>
|
---|
| 146 |
|
---|
| 147 |
|
---|
| 148 | <sect3><title>db_checkpoint</title>
|
---|
| 149 | <para><command>db_checkpoint</command> is a daemon process used to monitor and
|
---|
| 150 | checkpoint database logs.</para></sect3>
|
---|
| 151 |
|
---|
| 152 | <sect3><title>db_deadlock</title>
|
---|
| 153 | <para><command>db_deadlock</command> is used to abort lock requests when
|
---|
| 154 | deadlocks are detected.</para></sect3>
|
---|
| 155 |
|
---|
| 156 | <sect3><title>db_dump</title>
|
---|
| 157 | <para><command>db_dump</command> converts database files to a flat file format
|
---|
| 158 | readable by <command>db_load</command>.</para></sect3>
|
---|
| 159 |
|
---|
| 160 | <sect3><title>db_load</title>
|
---|
| 161 | <para><command>db_load</command> is used to create database files from flat
|
---|
| 162 | files created with <command>db_dump</command>.</para></sect3>
|
---|
| 163 |
|
---|
| 164 | <sect3><title>db_printlog</title>
|
---|
| 165 | <para><command>db_printlog</command> converts database log files to human
|
---|
| 166 | readable text.</para></sect3>
|
---|
| 167 |
|
---|
| 168 | <sect3><title>db_recover</title>
|
---|
| 169 | <para><command>db_recover</command> is used to restore a database to a
|
---|
| 170 | consistent state after a failure.</para></sect3>
|
---|
| 171 |
|
---|
| 172 | <sect3><title>db_stat</title>
|
---|
| 173 | <para><command>db_stat</command> displays database environment statistics.
|
---|
| 174 | </para></sect3>
|
---|
| 175 |
|
---|
| 176 | <sect3><title>db_upgrade</title>
|
---|
| 177 | <para><command>db_upgrade</command> is used to upgrade database files to a
|
---|
| 178 | newer version of <application>Berkeley DB</application>.</para></sect3>
|
---|
| 179 |
|
---|
| 180 | <sect3><title>db_verify</title>
|
---|
| 181 | <para><command>db_verify</command> is used to run consistency checks on
|
---|
| 182 | database files.</para></sect3>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
[f45b1953] | 185 |
|
---|
| 186 | </sect1>
|
---|