source: server/databases/db.xml@ 0635d22

10.0 10.1 11.0 11.1 11.2 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since 0635d22 was 0635d22, checked in by David Jensen <djensen@…>, 18 years ago

Updated to Berkeley DB-4.3.28

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4671 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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-&db-version;.tar.gz">
9 <!ENTITY db-md5sum "e27759537db6054b31d8cb3e99ba6fbb">
10 <!ENTITY db-size "5.8 MB">
11 <!ENTITY db-buildsize "74 MB (additional 140 MB to run parallel standard testsuite)">
12 <!ENTITY db-time "1.0 SBU (additional 80 SBU to run parallel standard testsuite)">
13]>
14
15<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
16 <?dbhtml filename="db.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Berkeley DB-&db-version;</title>
24
25 <indexterm zone="db">
26 <primary sortas="a-Berkeley-DB">Berkeley DB</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Berkeley DB</title>
31
32 <para>The <application>Berkeley DB</application> package contains programs
33 and utilities used by many other applications for database related
34 functions.</para>
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>Download (HTTP): <ulink url="&db-download-http;"/></para>
40 </listitem>
41 <listitem>
42 <para>Download (FTP): <ulink url="&db-download-ftp;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download MD5 sum: &db-md5sum;</para>
46 </listitem>
47 <listitem>
48 <para>Download size: &db-size;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated disk space required: &db-buildsize;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated build time: &db-time;</para>
55 </listitem>
56 </itemizedlist>
57
58 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
59
60 <bridgehead renderas="sect4">Optional</bridgehead>
61 <para><xref linkend="tcl"/> and <xref linkend="jdk"/></para>
62
63 </sect2>
64
65 <sect2 role="installation">
66 <title>Installation of Berkeley DB</title>
67
68 <para>If you wish to test <application>Berkeley DB</application> before
69 installing, skip ahead to testing, then return here.</para>
70
71 <para>Install <application>Berkeley DB</application> by running the
72 following commands:</para>
73
74<screen><userinput>cd build_unix &amp;&amp;
75../dist/configure --prefix=/usr \
76 --enable-compat185 \
77 --enable-cxx &amp;&amp;
78make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread"</userinput></screen>
79
80 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
81
82<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
83chown root:root /usr/bin/db_* \
84/usr/lib/libdb* /usr/include/db* &amp;&amp;
85chown -R root:root /usr/share/doc/db-&db-version;</userinput></screen>
86
87 </sect2>
88
89 <sect2 role="testing">
90 <title>Testing Berkeley DB</title>
91
92 <para>If you have already built <application>Berkeley DB</application>,
93 clean up with the following command:</para>
94
95<screen><userinput>make realclean &amp;&amp;
96cd ..</userinput></screen>
97
98 <para>Build for the <application>Berkeley DB</application> test by running
99 the following commands:</para>
100
101<screen><userinput>cd build_unix &amp;&amp;
102../dist/configure --prefix=/usr \
103 --enable-test --enable-tcl --with-tcl=/usr/lib &amp;&amp;
104make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &amp;&amp;
105chmod 644 ../test/sijointest.tcl &amp;&amp;
106sed -i 's:puts "[s,S].*::' \
107 ../test/sijointest.tcl</userinput></screen>
108
109 <para>To test the results, start <command>tclsh</command> and issue the
110 following, replacing the 4 with a desired number of parallel processes:</para>
111
112<screen><userinput>source ../test/test.tcl
113run_parallel 4 run_std</userinput></screen>
114
115 <para>Clean up with the following command:</para>
116
117<screen><userinput>make realclean</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <para><command>cd build_unix &amp;&amp;
125 ../dist/configure --prefix=/usr...</command>:
126 This replaces the normal <command>./configure</command> command, as
127 <application>Berkeley DB</application> comes with various
128 build directories for different platforms.</para>
129
130 <para><parameter>--enable-compat185</parameter>: This switch enables
131 building DB 1.85 compatibility API.</para>
132
133 <para><parameter>--enable-cxx</parameter>: This switch enables building
134 C++ API libraries.</para>
135
136 <para><parameter>--enable-test</parameter>: Enables building the test suite
137 (requires the two Tcl switches below).</para>
138
139 <para><parameter>--enable-tcl --with-tcl=/usr/lib</parameter>:
140 Enables <application>Tcl</application> support in DB and creates the
141 <filename class="libraryfile">libdb_tcl</filename> libraries.</para>
142
143 <para><parameter>--enable-java</parameter>: Enables
144 <application>Java</application> support in DB and creates the
145 <filename class='libraryfile'>libdb_java</filename> libraries.</para>
146
147 <para><parameter>--enable-rpc</parameter>: Enables building the
148 <application>Berkeley DB</application> RPC server.</para>
149
150 <para><command>make LIBSO_LIBS="-lpthread"
151 LIBXSO_LIBS="-lpthread"</command>: <command>configure</command>
152 does not correctly handle NPTL. These variables force it to
153 properly link against NPTL.</para>
154
155 <para><command>make docdir=/usr/share/doc/db-&db-version;
156 install</command>: This installs the documentation in
157 the correct place.</para>
158
159 <para><command>sed -i 's:puts "[s,S].*::' ../test/sijointest.tcl</command>:
160 This prevents logging two notes that are not recognized by
161 <command>run_std</command>.</para>
162
163 </sect2>
164
165 <sect2 role="content">
166 <title>Contents</title>
167
168 <segmentedlist>
169 <segtitle>Installed Programs</segtitle>
170 <segtitle>Installed Libraries</segtitle>
171 <segtitle>Installed Directory</segtitle>
172
173 <seglistitem>
174 <seg>db_archive, db_checkpoint, db_deadlock, db_dump, db_load,
175 db_printlog, db_recover, db_stat, db_upgrade, db_verify and
176 berkeley_db_svc if enabled</seg>
177 <seg>libdb.[so,a], libdb_cxx.[so,a], libdb_java.[so,a] and
178 libdb_tcl.[so,a]</seg>
179 <seg>/usr/share/doc/db-&db-version;</seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="berkeley_db_svc">
189 <term><command>berkeley_db_svc</command></term>
190 <listitem>
191 <para>is the <application>Berkeley DB</application>
192 RPC server.</para>
193 <indexterm zone="db berkeley_db_svc">
194 <primary sortas="b-berkeley_db_svc">berkeley_db_svc</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="db_archive">
200 <term><command>db_archive</command></term>
201 <listitem>
202 <para>prints the pathnames of log files that are no longer in
203 use.</para>
204 <indexterm zone="db db_archive">
205 <primary sortas="b-db_archive">db_archive</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="db_checkpoint">
211 <term><command>db_checkpoint</command></term>
212 <listitem>
213 <para>is a daemon process used to monitor and checkpoint database
214 logs.</para>
215 <indexterm zone="db db_checkpoint">
216 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="db_deadlock">
222 <term><command>db_deadlock</command></term>
223 <listitem>
224 <para>is used to abort lock requests when deadlocks are
225 detected.</para>
226 <indexterm zone="db db_deadlock">
227 <primary sortas="b-db_deadlock">db_deadlock</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="db_dump">
233 <term><command>db_dump</command></term>
234 <listitem>
235 <para>converts database files to a flat file format readable by
236 <command>db_load</command>.</para>
237 <indexterm zone="db db_dump">
238 <primary sortas="b-db_dump">db_dump</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="db_load">
244 <term><command>db_load</command></term>
245 <listitem>
246 <para>is used to create database files from flat files created with
247 <command>db_dump</command>.</para>
248 <indexterm zone="db db_load">
249 <primary sortas="b-db_load">db_load</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="db_printlog">
255 <term><command>db_printlog</command></term>
256 <listitem>
257 <para>converts database log files to human readable text.</para>
258 <indexterm zone="db db_printlog">
259 <primary sortas="b-db_printlog">db_printlog</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="db_recover">
265 <term><command>db_recover</command></term>
266 <listitem>
267 <para>is used to restore a database to a consistent state after a
268 failure.</para>
269 <indexterm zone="db db_recover">
270 <primary sortas="b-db_recover">db_recover</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="db_stat">
276 <term><command>db_stat</command></term>
277 <listitem>
278 <para>displays database environment statistics.</para>
279 <indexterm zone="db db_stat">
280 <primary sortas="b-db_stat">db_stat</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry id="db_upgrade">
286 <term><command>db_upgrade</command></term>
287 <listitem>
288 <para>is used to upgrade database files to a newer version of
289 <application>Berkeley DB</application>.</para>
290 <indexterm zone="db db_upgrade">
291 <primary sortas="b-db_upgrade">db_upgrade</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="db_verify">
297 <term><command>db_verify</command></term>
298 <listitem>
299 <para>is used to run consistency checks on database files.</para>
300 <indexterm zone="db db_verify">
301 <primary sortas="b-db_verify">db_verify</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 </variablelist>
307
308 </sect2>
309
310</sect1>
Note: See TracBrowser for help on using the repository browser.