[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 |
|
---|
[c90376c1] | 7 | <!ENTITY db-3.3-download-http "http://fresh.t-systems-sfr.com/unix/src/misc/db-&db-3.3-version;.tar.gz">
|
---|
| 8 | <!ENTITY db-3.3-download-ftp "ftp://sleepycat1.inetu.net/releases/db-&db-3.3-version;.tar.gz">
|
---|
[08254fc] | 9 | <!ENTITY db-3.3-size "2.3 MB">
|
---|
[c90376c1] | 10 | <!ENTITY db-3.3-buildsize "27.5 MB">
|
---|
[08254fc] | 11 | <!ENTITY db-3.3-time "0.80 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[317034a] | 14 | <sect1 id="db-3.3" xreflabel="Berkeley DB-&db-3.3-version;">
|
---|
[00bb024c] | 15 | <?dbhtml filename="db-3.3.html"?>
|
---|
[317034a] | 16 | <title>Berkeley DB-&db-3.3-version;</title>
|
---|
[e056b92] | 17 |
|
---|
[08254fc] | 18 | <sect2>
|
---|
| 19 | <title>Introduction to <application>Berkeley DB</application>-&db-3.3-version;</title>
|
---|
| 20 |
|
---|
| 21 | <para>The <application>Berkeley DB</application> package contains version
|
---|
| 22 | &db-3.3-version; of the Berkeley Database.</para>
|
---|
| 23 |
|
---|
| 24 | <sect3><title>Package information</title>
|
---|
| 25 | <itemizedlist spacing='compact'>
|
---|
| 26 | <listitem><para>Download (HTTP): <ulink
|
---|
| 27 | url="&db-3.3-download-http;"/></para></listitem>
|
---|
| 28 | <listitem><para>Download (FTP): <ulink
|
---|
| 29 | url="&db-3.3-download-ftp;"/></para></listitem>
|
---|
| 30 | <listitem><para>Download size: &db-3.3-size;</para></listitem>
|
---|
| 31 | <listitem><para>Estimated Disk space required:
|
---|
| 32 | &db-3.3-buildsize;</para></listitem>
|
---|
| 33 | <listitem><para>Estimated build time:
|
---|
| 34 | &db-3.3-time;</para></listitem></itemizedlist>
|
---|
| 35 | </sect3>
|
---|
| 36 |
|
---|
| 37 | <sect3><title>Additional downloads</title>
|
---|
| 38 | <itemizedlist spacing='compact'>
|
---|
| 39 | <listitem><para>Required Patch: <ulink
|
---|
[c90376c1] | 40 | url="http://www.sleepycat.com/update/&db-3.3-version;/patch.&db-3.3-version;.1"/></para></listitem>
|
---|
[08254fc] | 41 | <listitem><para>Recommended Patch: <ulink
|
---|
[c90376c1] | 42 | url="http://www.sleepycat.com/update/&db-3.3-version;/patch.&db-3.3-version;.2"/></para></listitem>
|
---|
[08254fc] | 43 | </itemizedlist></sect3>
|
---|
| 44 |
|
---|
| 45 | </sect2>
|
---|
| 46 |
|
---|
| 47 | <sect2>
|
---|
| 48 | <title>Installation of <application>Berkeley DB</application></title>
|
---|
| 49 |
|
---|
| 50 | <para>Install <application>Berkeley DB</application> by running the following commands:
|
---|
| 51 | </para>
|
---|
| 52 |
|
---|
[c90376c1] | 53 | <screen><userinput><command>patch -Np0 -i ../patch.&db-3.3-version;.1 &&
|
---|
| 54 | patch -Np0 -i ../patch.&db-3.3-version;.2 &&
|
---|
| 55 | cd build_unix &&
|
---|
[08254fc] | 56 | ../dist/configure --prefix=/opt/db-3.3 --enable-compat185 &&
|
---|
| 57 | make &&
|
---|
| 58 | make docdir=/opt/db-3.3/doc/Berkeley-DB install &&
|
---|
| 59 | cd /opt/db-3.3/lib/ &&
|
---|
[c90376c1] | 60 | mv libdb.so .. &&
|
---|
[08254fc] | 61 | for i in $(ls); do mv $i /usr/lib; ln -sf /usr/lib/$i; done &&
|
---|
[c90376c1] | 62 | mv ../libdb.so . &&
|
---|
[08254fc] | 63 | cd /opt/db-3.3/include/ &&
|
---|
| 64 | sed -i 's/^DB185/DB/' db_185.h &&
|
---|
| 65 | ln -nsf /opt/db-3.3/include /usr/include/db3</command></userinput></screen>
|
---|
| 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2>
|
---|
| 70 | <title>Command explanations</title>
|
---|
| 71 |
|
---|
[c90376c1] | 72 | <para><parameter>docdir=/opt/db-3.3/doc/Berkeley-DB</parameter>: Installs the
|
---|
| 73 | documentation in the <filename class="directory">/opt/db-3.3</filename>
|
---|
| 74 | hierarchy.</para>
|
---|
| 75 |
|
---|
| 76 | <para><command>mv libdb.so ..</command> and <command>mv ../libdb.so
|
---|
| 77 | .</command>: Avoids moving <filename>libdb.so</filename> to
|
---|
| 78 | <filename class="directory">/usr/lib</filename>.</para>
|
---|
| 79 |
|
---|
| 80 | <para><command>for i in ...; do ...; ln ...; done</command>: Moves the DB
|
---|
| 81 | libraries to <filename class="directory">/usr/lib</filename> and creates
|
---|
| 82 | symlinks to these libraries in
|
---|
| 83 | <filename class="directory">/opt/db-3.3/lib</filename>.</para>
|
---|
| 84 |
|
---|
| 85 | <para><command>sed -i 's/^DB185/DB/' db_185.h</command>: Change the DB185
|
---|
| 86 | database pointer to DB.</para>
|
---|
[08254fc] | 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2>
|
---|
| 91 | <title>Contents</title>
|
---|
| 92 |
|
---|
| 93 | <para>The <application>Berkeley DB</application> package contains
|
---|
| 94 | <command>db_archive</command>,
|
---|
| 95 | <command>db_checkpoint</command>,
|
---|
| 96 | <command>db_deadlock</command>,
|
---|
| 97 | <command>db_dump</command>,
|
---|
| 98 | <command>db_load</command>,
|
---|
| 99 | <command>db_printlog</command>,
|
---|
| 100 | <command>db_recover</command>,
|
---|
| 101 | <command>db_stat</command>,
|
---|
[c90376c1] | 102 | <command>db_upgrade</command>,
|
---|
| 103 | <command>db_verify</command> and the
|
---|
| 104 | <filename class="library">libdb-3</filename> libraries.
|
---|
[08254fc] | 105 |
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2><title>Description</title>
|
---|
| 111 |
|
---|
| 112 | <sect3><title>db_archive</title>
|
---|
| 113 | <para><command>db_archive</command> prints the pathnames of log files that are
|
---|
| 114 | no longer in use.</para></sect3>
|
---|
| 115 |
|
---|
| 116 | <sect3><title>db_checkpoint</title>
|
---|
| 117 | <para><command>db_checkpoint</command> is a daemon process used to monitor and
|
---|
| 118 | checkpoint database logs.</para></sect3>
|
---|
| 119 |
|
---|
| 120 | <sect3><title>db_deadlock</title>
|
---|
| 121 | <para><command>db_deadlock</command> is used to abort lock requests when
|
---|
| 122 | deadlocks are detected.</para></sect3>
|
---|
| 123 |
|
---|
| 124 | <sect3><title>db_dump</title>
|
---|
| 125 | <para><command>db_dump</command> converts database files to a flat file format
|
---|
| 126 | readable by <command>db_load</command>.</para></sect3>
|
---|
| 127 |
|
---|
| 128 | <sect3><title>db_load</title>
|
---|
| 129 | <para><command>db_load</command> is used to create database files from flat
|
---|
| 130 | files created with <command>db_dump</command>.</para></sect3>
|
---|
| 131 |
|
---|
| 132 | <sect3><title>db_printlog</title>
|
---|
| 133 | <para><command>db_printlog</command> converts database log files to human
|
---|
| 134 | readable text.</para></sect3>
|
---|
| 135 |
|
---|
| 136 | <sect3><title>db_recover</title>
|
---|
| 137 | <para><command>db_recover</command> is used to restore a database to a
|
---|
| 138 | consistent state after a failure.</para></sect3>
|
---|
| 139 |
|
---|
| 140 | <sect3><title>db_stat</title>
|
---|
| 141 | <para><command>db_stat</command> displays database environment statistics.
|
---|
| 142 | </para></sect3>
|
---|
| 143 |
|
---|
| 144 | <sect3><title>db_upgrade</title>
|
---|
| 145 | <para><command>db_upgrade</command> is used to upgrade database files to a
|
---|
| 146 | newer version of <application>Berkeley DB</application>.</para></sect3>
|
---|
| 147 |
|
---|
| 148 | <sect3><title>db_verify</title>
|
---|
| 149 | <para><command>db_verify</command> is used to run consistency checks on
|
---|
| 150 | database files.</para></sect3>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
[e056b92] | 153 |
|
---|
| 154 | </sect1>
|
---|