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