source: server/databases/db.xml@ e93b753

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e93b753 was 2a5310e8, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Typo fix. Server.

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

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