[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 " ">
|
---|
| 9 | <!ENTITY db-size "4 MB">
|
---|
| 10 | <!ENTITY db-buildsize "43 MB">
|
---|
| 11 | <!ENTITY db-time "1.22 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[317034a] | 14 | <sect1 id="db" xreflabel="Berkeley DB-&db-version;">
|
---|
[00bb024c] | 15 | <?dbhtml filename="db.html"?>
|
---|
[317034a] | 16 | <title>Berkeley DB-&db-version;</title>
|
---|
[f45b1953] | 17 |
|
---|
[08254fc] | 18 | <sect2>
|
---|
| 19 | <title>Introduction to <application>Berkeley DB</application></title>
|
---|
| 20 |
|
---|
| 21 | <para>The <application>Berkeley DB</application> package contains programs and
|
---|
| 22 | utilities used by many other applications for database related
|
---|
| 23 | functions.</para>
|
---|
| 24 |
|
---|
| 25 | <sect3><title>Package information</title>
|
---|
| 26 | <itemizedlist spacing='compact'>
|
---|
| 27 | <listitem><para>Download (HTTP): <ulink
|
---|
| 28 | url="&db-download-http;"/></para></listitem>
|
---|
| 29 | <listitem><para>Download (FTP): <ulink
|
---|
| 30 | url="&db-download-ftp;"/></para></listitem>
|
---|
| 31 | <listitem><para>Download size: &db-size;</para></listitem>
|
---|
| 32 | <listitem><para>Estimated Disk space required:
|
---|
| 33 | &db-buildsize;</para></listitem>
|
---|
| 34 | <listitem><para>Estimated build time:
|
---|
| 35 | &db-time;</para></listitem></itemizedlist>
|
---|
| 36 | </sect3>
|
---|
| 37 |
|
---|
| 38 | <sect3><title>Additional downloads</title>
|
---|
| 39 | <itemizedlist spacing='compact'>
|
---|
| 40 | <listitem><para>Required Patch: <ulink
|
---|
| 41 | url="http://www.sleepycat.com/update/4.2.52/patch.4.2.52.1"/></para></listitem>
|
---|
| 42 | <listitem><para>Required Patch: <ulink
|
---|
| 43 | url="http://www.sleepycat.com/update/4.2.52/patch.&db-version;"/></para></listitem>
|
---|
| 44 | </itemizedlist></sect3>
|
---|
| 45 |
|
---|
| 46 | <sect3><title><application>Berkeley DB</application> dependencies</title>
|
---|
| 47 | <sect4><title>Optional</title>
|
---|
| 48 | <para><xref linkend="tcl"/> and <xref linkend="j2sdk"/>
|
---|
| 49 | </para></sect4>
|
---|
| 50 | </sect3>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
| 53 |
|
---|
| 54 | <sect2>
|
---|
| 55 | <title>Installation of <application>Berkeley DB</application></title>
|
---|
| 56 |
|
---|
| 57 | <para>Install <application>Berkeley DB</application> by running the following commands:</para>
|
---|
| 58 |
|
---|
| 59 | <screen><userinput><command>patch -Np0 -i ../patch.4.2.52.1 &&
|
---|
| 60 | patch -Np0 -i ../patch.&db-version; &&
|
---|
| 61 | cd build_unix &&
|
---|
| 62 | ../dist/configure --prefix=/usr \
|
---|
| 63 | --enable-compat185 \
|
---|
| 64 | --enable-cxx &&
|
---|
| 65 | make &&
|
---|
| 66 | make docdir=/usr/share/doc/db-&db-version; install</command></userinput></screen>
|
---|
| 67 |
|
---|
| 68 | <note><para>If you wish to enable <application>Java</application>
|
---|
| 69 | support in <application>Berkeley DB</application>-&db-version;, add
|
---|
| 70 | <parameter>--enable-java</parameter> to the configure options. This requires a
|
---|
| 71 | Java compiler.
|
---|
| 72 | <application>Java</application> support is needed
|
---|
| 73 | if you plan to use system installed <application>Berkeley DB</application> when
|
---|
| 74 | compiling <xref linkend="openoffice"/>.</para></note>
|
---|
| 75 |
|
---|
| 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2>
|
---|
| 79 | <title>Command explanations</title>
|
---|
| 80 |
|
---|
| 81 | <para><command>cd build_unix && ../dist/configure --prefix=/usr
|
---|
| 82 | --enable-compat185</command>:
|
---|
| 83 | This replaces the normal <command>./configure</command> command, as
|
---|
| 84 | <application>Berkeley DB</application> comes with various
|
---|
| 85 | build directories for different platforms.</para>
|
---|
| 86 |
|
---|
| 87 | <para><command>make docdir=/usr/share/doc/db-&db-version;
|
---|
| 88 | install</command>: This installs the documentation in
|
---|
| 89 | the correct place.</para>
|
---|
| 90 |
|
---|
| 91 | </sect2>
|
---|
| 92 |
|
---|
| 93 | <sect2>
|
---|
| 94 | <title>Contents</title>
|
---|
| 95 |
|
---|
| 96 | <para>The <application>Berkeley DB</application> package contains
|
---|
| 97 | <command>db_archive</command>,
|
---|
| 98 | <command>db_checkpoint</command>,
|
---|
| 99 | <command>db_deadlock</command>,
|
---|
| 100 | <command>db_dump</command>,
|
---|
| 101 | <command>db_load</command>,
|
---|
| 102 | <command>db_printlog</command>,
|
---|
| 103 | <command>db_recover</command>,
|
---|
| 104 | <command>db_stat</command>,
|
---|
| 105 | <command>db_upgrade</command> and
|
---|
| 106 | <command>db_verify</command>.
|
---|
| 107 |
|
---|
| 108 | </para>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2><title>Description</title>
|
---|
| 113 |
|
---|
| 114 | <sect3><title>db_archive</title>
|
---|
| 115 | <para><command>db_archive</command> prints the pathnames of log files that are
|
---|
| 116 | no longer in use.</para></sect3>
|
---|
| 117 |
|
---|
| 118 |
|
---|
| 119 | <sect3><title>db_checkpoint</title>
|
---|
| 120 | <para><command>db_checkpoint</command> is a daemon process used to monitor and
|
---|
| 121 | checkpoint database logs.</para></sect3>
|
---|
| 122 |
|
---|
| 123 | <sect3><title>db_deadlock</title>
|
---|
| 124 | <para><command>db_deadlock</command> is used to abort lock requests when
|
---|
| 125 | deadlocks are detected.</para></sect3>
|
---|
| 126 |
|
---|
| 127 | <sect3><title>db_dump</title>
|
---|
| 128 | <para><command>db_dump</command> converts database files to a flat file format
|
---|
| 129 | readable by <command>db_load</command>.</para></sect3>
|
---|
| 130 |
|
---|
| 131 | <sect3><title>db_load</title>
|
---|
| 132 | <para><command>db_load</command> is used to create database files from flat
|
---|
| 133 | files created with <command>db_dump</command>.</para></sect3>
|
---|
| 134 |
|
---|
| 135 | <sect3><title>db_printlog</title>
|
---|
| 136 | <para><command>db_printlog</command> converts database log files to human
|
---|
| 137 | readable text.</para></sect3>
|
---|
| 138 |
|
---|
| 139 |
|
---|
| 140 | <sect3><title>db_recover</title>
|
---|
| 141 | <para><command>db_recover</command> is used to restore a database to a
|
---|
| 142 | consistent state after a failure.</para></sect3>
|
---|
| 143 |
|
---|
| 144 | <sect3><title>db_stat</title>
|
---|
| 145 | <para><command>db_stat</command> displays database environment statistics.
|
---|
| 146 | </para></sect3>
|
---|
| 147 |
|
---|
| 148 | <sect3><title>db_upgrade</title>
|
---|
| 149 | <para><command>db_upgrade</command> is used to upgrade database files to a
|
---|
| 150 | newer version of <application>Berkeley DB</application>.</para></sect3>
|
---|
| 151 |
|
---|
| 152 | <sect3><title>db_verify</title>
|
---|
| 153 | <para><command>db_verify</command> is used to run consistency checks on
|
---|
| 154 | database files.</para></sect3>
|
---|
| 155 |
|
---|
| 156 | </sect2>
|
---|
[f45b1953] | 157 |
|
---|
| 158 | </sect1>
|
---|