[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-3.3-download-http " ">
|
---|
| 8 | <!ENTITY db-3.3-download-ftp "ftp://ftp.pu.edu.tw/Unix/Database/BerkeleyDB/db-&db-3.3-version;.tar.gz">
|
---|
| 9 | <!ENTITY db-3.3-size "2.3 MB">
|
---|
| 10 | <!ENTITY db-3.3-buildsize "20.3 MB">
|
---|
| 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
|
---|
| 40 | url="http://www.sleepycat.com/webforms/patchdl.php?src=patch.3.3.11.1"/></para></listitem>
|
---|
| 41 | <listitem><para>Recommended Patch: <ulink
|
---|
| 42 | url="http://www.sleepycat.com/webforms/patchdl.php?src=patch.3.3.11.2"/></para></listitem>
|
---|
| 43 | </itemizedlist></sect3>
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 | </sect2>
|
---|
| 47 |
|
---|
| 48 | <sect2>
|
---|
| 49 | <title>Installation of <application>Berkeley DB</application></title>
|
---|
| 50 |
|
---|
| 51 | <para>See: <ulink url="http://www.sleepycat.com/download/patching.shtml"/>
|
---|
| 52 | for instructions on installing the patches.
|
---|
| 53 | </para>
|
---|
| 54 |
|
---|
| 55 | <para>Install <application>Berkeley DB</application> by running the following commands:
|
---|
| 56 | </para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput><command>cd build_unix &&
|
---|
| 59 | ../dist/configure --prefix=/opt/db-3.3 --enable-compat185 &&
|
---|
| 60 | make &&
|
---|
| 61 | make docdir=/opt/db-3.3/doc/Berkeley-DB install &&
|
---|
| 62 | cd /opt/db-3.3/lib/ &&
|
---|
| 63 | rm -f libdb.so &&
|
---|
| 64 | for i in $(ls); do mv $i /usr/lib; ln -sf /usr/lib/$i; done &&
|
---|
| 65 | cd /opt/db-3.3/include/ &&
|
---|
| 66 | sed -i 's/^DB185/DB/' db_185.h &&
|
---|
| 67 | ln -nsf /opt/db-3.3/include /usr/include/db3</command></userinput></screen>
|
---|
| 68 |
|
---|
| 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2>
|
---|
| 72 | <title>Command explanations</title>
|
---|
| 73 |
|
---|
| 74 | <para><command>sed 's/^DB185/DB/' /usr/include/db_185.h > /usr/include/db_185.h.new</command>: Change the DB185 database pointer to DB.</para>
|
---|
| 75 |
|
---|
| 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2>
|
---|
| 79 | <title>Contents</title>
|
---|
| 80 |
|
---|
| 81 | <para>The <application>Berkeley DB</application> package contains
|
---|
| 82 | <command>db_archive</command>,
|
---|
| 83 | <command>db_checkpoint</command>,
|
---|
| 84 | <command>db_deadlock</command>,
|
---|
| 85 | <command>db_dump</command>,
|
---|
| 86 | <command>db_load</command>,
|
---|
| 87 | <command>db_printlog</command>,
|
---|
| 88 | <command>db_recover</command>,
|
---|
| 89 | <command>db_stat</command>,
|
---|
| 90 | <command>db_upgrade</command> and
|
---|
| 91 | <command>db_verify</command>.
|
---|
| 92 |
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2><title>Description</title>
|
---|
| 98 |
|
---|
| 99 | <sect3><title>db_archive</title>
|
---|
| 100 | <para><command>db_archive</command> prints the pathnames of log files that are
|
---|
| 101 | no longer in use.</para></sect3>
|
---|
| 102 |
|
---|
| 103 |
|
---|
| 104 | <sect3><title>db_checkpoint</title>
|
---|
| 105 | <para><command>db_checkpoint</command> is a daemon process used to monitor and
|
---|
| 106 | checkpoint database logs.</para></sect3>
|
---|
| 107 |
|
---|
| 108 | <sect3><title>db_deadlock</title>
|
---|
| 109 | <para><command>db_deadlock</command> is used to abort lock requests when
|
---|
| 110 | deadlocks are detected.</para></sect3>
|
---|
| 111 |
|
---|
| 112 | <sect3><title>db_dump</title>
|
---|
| 113 | <para><command>db_dump</command> converts database files to a flat file format
|
---|
| 114 | readable by <command>db_load</command>.</para></sect3>
|
---|
| 115 |
|
---|
| 116 | <sect3><title>db_load</title>
|
---|
| 117 | <para><command>db_load</command> is used to create database files from flat
|
---|
| 118 | files created with <command>db_dump</command>.</para></sect3>
|
---|
| 119 |
|
---|
| 120 | <sect3><title>db_printlog</title>
|
---|
| 121 | <para><command>db_printlog</command> converts database log files to human
|
---|
| 122 | readable text.</para></sect3>
|
---|
| 123 |
|
---|
| 124 |
|
---|
| 125 | <sect3><title>db_recover</title>
|
---|
| 126 | <para><command>db_recover</command> is used to restore a database to a
|
---|
| 127 | consistent state after a failure.</para></sect3>
|
---|
| 128 |
|
---|
| 129 | <sect3><title>db_stat</title>
|
---|
| 130 | <para><command>db_stat</command> displays database environment statistics.
|
---|
| 131 | </para></sect3>
|
---|
| 132 |
|
---|
| 133 | <sect3><title>db_upgrade</title>
|
---|
| 134 | <para><command>db_upgrade</command> is used to upgrade database files to a
|
---|
| 135 | newer version of <application>Berkeley DB</application>.</para></sect3>
|
---|
| 136 |
|
---|
| 137 | <sect3><title>db_verify</title>
|
---|
| 138 | <para><command>db_verify</command> is used to run consistency checks on
|
---|
| 139 | database files.</para></sect3>
|
---|
| 140 |
|
---|
| 141 | </sect2>
|
---|
[e056b92] | 142 |
|
---|
| 143 | </sect1>
|
---|