source: server/databases/db.xml@ ac0d66d

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since ac0d66d was 15445ab, checked in by Douglas R. Reno <renodr@…>, 15 months ago

Lots of tags

  • Property mode set to 100644
File size: 14.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY db-download-http "&sources-anduin-http;/bdb/db-&db-version;.tar.gz">
8 <!ENTITY db-download-ftp " ">
9 <!ENTITY db-md5sum "b99454564d5b4479750567031d66fe24">
10 <!ENTITY db-size "34 MB">
11 <!ENTITY db-buildsize "265 MB">
12 <!ENTITY db-time "0.6 SBU">
13]>
14
15<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
16 <?dbhtml filename="db.html"?>
17
18
19 <title>Berkeley DB-&db-version;</title>
20
21 <indexterm zone="db">
22 <primary sortas="a-Berkeley-DB">Berkeley DB</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Berkeley DB</title>
27
28 <para>
29 The <application>Berkeley DB</application> package contains programs and
30 utilities used by many other applications for database related functions.
31 </para>
32
33 &lfs113_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&db-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&db-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &db-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &db-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &db-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &db-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Optional</bridgehead>
72 <para role="optional">
73 <!-- <xref linkend="tcl"/> and -->
74 <xref linkend="libnsl"/> and
75 <xref linkend="sharutils"/> (for the <command>uudecode</command> command)
76
77 <!--,
78 <xref linkend="openjdk"/> or <xref linkend="java"/>, and
79- - This is currently broken, removed for now. - -
80 <xref linkend="sharutils"/> (for the <command>uudecode</command> command
81 - Java bindings are required) -->
82 </para>
83
84 <para condition="html" role="usernotes">
85 User Notes: <ulink url="&blfs-wiki;/db"/>
86 </para>
87 </sect2>
88
89 <!-- <sect2 role="testing">
90 <title>Testing Berkeley DB before the real install</title>
91
92 <para>
93 If you can't wait 12 hours or so you may want to skip ahead to
94 <xref linkend="bdb-installation"/>. The test suite can take a long time
95 and has a few bugs causing a report of <quote>Regression tests
96 failed</quote>. However, running the test suite is a very exhaustive test
97 of your hardware, perhaps pushing your machine harder (especially disk
98 I/O) than it will ever see during production use. Note that you must have
99 <application>Tcl</application> installed to run the test suite.
100 </para>
101
102 <para>
103 Build for the <application>Berkeley DB</application> test by running the
104 following commands:
105 </para>
106
107<screen><userinput>cd build_unix &amp;&amp;
108../dist/configure -&#45;prefix=/usr \
109 -&#45;enable-test \
110 -&#45;enable-tcl \
111 -&#45;enable-dbm \
112 -&#45;with-tcl=/usr/lib &amp;&amp;
113make</userinput></screen>
114
115 <para>
116 To test the results, start <command>tclsh</command>:
117 </para>
118
119<screen><userinput>tclsh</userinput></screen>
120
121 <para>
122 From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>), run:
123 </para>
124
125<screen><userinput>source ../test/tcl/test.tcl
126run_parallel 5 run_std
127exit</userinput></screen>
128
129 <para>
130 Clean up the source tree with the following command:
131 </para>
132
133<screen><userinput>make realclean &amp;&amp;
134cd ..</userinput></screen>
135
136 <note><para>
137 Test127.f and Repmgr026.c are known to fail.
138 </para></note>
139
140 <para>
141 There are additional testing suites in the
142 <filename class="directory">test/c</filename> and
143 <filename class="directory">test/cxx</filename> directories. See the
144 <filename>README</filename> in each directory for instructions on how to
145 run the tests.
146 </para>
147 </sect2> -->
148
149 <sect2 role="installation" id="bdb-installation">
150 <title>Installation of Berkeley DB</title>
151
152 <para>
153 First apply a fix so that this will compile with current versions of
154 <command>g++</command>:
155 </para>
156
157<screen><userinput>sed -i 's/\(__atomic_compare_exchange\)/\1_db/' src/dbinc/atomic.h</userinput></screen>
158
159 <!-- move parts of hte testing to here, possibly as sect3 -->
160
161 <para>
162 Install <application>Berkeley DB</application> by running the following
163 commands:
164 </para>
165
166<screen><userinput>cd build_unix &amp;&amp;
167../dist/configure --prefix=/usr \
168 --enable-compat185 \
169 --enable-dbm \
170 --disable-static \
171 --enable-cxx &amp;&amp;
172make</userinput></screen>
173
174 <para>
175 Now, as the <systemitem class="username">root</systemitem> user:
176 </para>
177
178<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
179
180chown -v -R root:root \
181 /usr/bin/db_* \
182 /usr/include/db{,_185,_cxx}.h \
183 /usr/lib/libdb*.{so,la} \
184 /usr/share/doc/db-&db-version;</userinput></screen>
185 </sect2>
186
187 <sect2 role="commands">
188 <title>Command Explanations</title>
189
190 <para>
191 <command>cd build_unix &amp;&amp; ../dist/configure
192 --prefix=/usr...</command>: This replaces the normal
193 <command>./configure</command> command, as
194 <application>Berkeley DB</application> comes with various build
195 directories for different platforms.
196 </para>
197
198 <para>
199 <parameter>--enable-compat185</parameter>: This switch enables building
200 the DB-1.85 compatibility API.
201 </para>
202
203 <para>
204 <parameter>--enable-cxx</parameter>: This switch enables building C++ API
205 libraries.
206 </para>
207
208 <para>
209 <parameter>--enable-dbm</parameter>: Enables legacy interface support
210 needed by some older packages.
211 </para>
212
213 <para>
214 <command>make docdir=/usr/share/doc/db-&db-version; install</command>:
215 This installs the documentation in the standard location instead of
216 <filename class="directory">/usr/docs</filename>.
217 </para>
218
219 <para>
220 <command>chown -v -R root:root ...</command>:This command changes the
221 ownership of various installed files from the uid:gid of the builder to
222 root:root.
223 </para>
224
225 <para>
226 <option>--enable-tcl --with-tcl=/usr/lib</option>: Enables
227 <application>Tcl</application> support in DB and creates the
228 <filename class="libraryfile">libdb_tcl</filename> libraries.
229 </para>
230
231 <para>
232 <option>--enable-java</option>: Enables <application>Java</application>
233 support in DB and creates the
234 <filename class="libraryfile">libdb_java</filename> libraries.
235<!--
236checking if java works... yes
237checking for javac... /opt/jdk/bin/javac
238checking absolute path of javac... /opt/jdk/bin/javac
239checking java version... 10.0.1
240configure: error: Java version 1.3 or higher required, got 10.0.1
241-->
242 Support is currently broken with Java-&openjdk-build;.x.
243 </para>
244 </sect2>
245
246 <sect2 role="content">
247 <title>Contents</title>
248
249 <segmentedlist>
250 <segtitle>Installed Programs</segtitle>
251 <segtitle>Installed Libraries</segtitle>
252 <segtitle>Installed Directory</segtitle>
253
254 <seglistitem>
255 <seg>
256 db_archive,
257 db_checkpoint,
258 db_deadlock,
259 db_dump,
260 db_hotbackup,
261 db_load,
262 db_log_verify,
263 db_printlog,
264 db_recover,
265 db_replicate,
266 db_stat,
267 db_tuner,
268 db_upgrade, and
269 db_verify
270 </seg>
271 <seg>
272 libdb.so,
273 libdb_cxx.so, and
274<!-- libdb_java.so, and -->
275 libdb_tcl.so
276 </seg>
277 <seg>/usr/share/doc/db-&db-version;</seg>
278 </seglistitem>
279 </segmentedlist>
280
281 <variablelist>
282 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
283 <?dbfo list-presentation="list"?>
284 <?dbhtml list-presentation="table"?>
285
286 <varlistentry id="db_archive">
287 <term><command>db_archive</command></term>
288 <listitem>
289 <para>
290 prints the pathnames of log files that are no longer in use
291 </para>
292 <indexterm zone="db db_archive">
293 <primary sortas="b-db_archive">db_archive</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="db_checkpoint">
299 <term><command>db_checkpoint</command></term>
300 <listitem>
301 <para>
302 is a daemon process used to monitor and checkpoint database logs
303 </para>
304 <indexterm zone="db db_checkpoint">
305 <primary sortas="b-db_checkpoint">db_checkpoint</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="db_deadlock">
311 <term><command>db_deadlock</command></term>
312 <listitem>
313 <para>
314 is used to abort lock requests when deadlocks are detected
315 </para>
316 <indexterm zone="db db_deadlock">
317 <primary sortas="b-db_deadlock">db_deadlock</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="db_dump">
323 <term><command>db_dump</command></term>
324 <listitem>
325 <para>
326 converts database files to a flat file format readable by
327 <command>db_load</command>
328 </para>
329 <indexterm zone="db db_dump">
330 <primary sortas="b-db_dump">db_dump</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="db_hotbackup">
336 <term><command>db_hotbackup</command></term>
337 <listitem>
338 <para>
339 creates "hot backup" or "hot failover" snapshots of Berkeley DB
340 databases
341 </para>
342 <indexterm zone="db db_hotbackup">
343 <primary sortas="b-db_hotbackup">db_hotbackup</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 <varlistentry id="db_load">
349 <term><command>db_load</command></term>
350 <listitem>
351 <para>
352 is used to create database files from flat files created with
353 <command>db_dump</command>
354 </para>
355 <indexterm zone="db db_load">
356 <primary sortas="b-db_load">db_load</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="db_log_verify">
362 <term><command>db_log_verify</command></term>
363 <listitem>
364 <para>
365 verifies the log files of a database
366 </para>
367 <indexterm zone="db db_log_verify">
368 <primary sortas="b-db_log_verify">db_log_verify</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="db_printlog">
374 <term><command>db_printlog</command></term>
375 <listitem>
376 <para>
377 converts database log files to human readable text
378 </para>
379 <indexterm zone="db db_printlog">
380 <primary sortas="b-db_printlog">db_printlog</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="db_recover">
386 <term><command>db_recover</command></term>
387 <listitem>
388 <para>
389 is used to restore a database to a consistent state after a failure
390 </para>
391 <indexterm zone="db db_recover">
392 <primary sortas="b-db_recover">db_recover</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="db_replicate">
398 <term><command>db_replicate</command></term>
399 <listitem>
400 <para>
401 is a daemon process that provides replication/HA services on a
402 transactional environment
403 </para>
404 <indexterm zone="db db_replicate">
405 <primary sortas="b-db_replicate">db_replicate</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="db_stat">
411 <term><command>db_stat</command></term>
412 <listitem>
413 <para>
414 displays database environment statistics
415 </para>
416 <indexterm zone="db db_stat">
417 <primary sortas="b-db_stat">db_stat</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="db_tuner">
423 <term><command>db_tuner</command></term>
424 <listitem>
425 <para>
426 analyzes the data in a btree database, and suggests a page size that
427 is likely to deliver optimal operation
428 </para>
429 <indexterm zone="db db_tuner">
430 <primary sortas="b-db_tuner">db_tuner</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
435 <varlistentry id="db_upgrade">
436 <term><command>db_upgrade</command></term>
437 <listitem>
438 <para>
439 is used to upgrade database files to a newer version of
440 <application>Berkeley DB</application>
441 </para>
442 <indexterm zone="db db_upgrade">
443 <primary sortas="b-db_upgrade">db_upgrade</primary>
444 </indexterm>
445 </listitem>
446 </varlistentry>
447
448 <varlistentry id="db_verify">
449 <term><command>db_verify</command></term>
450 <listitem>
451 <para>
452 is used to run consistency checks on database files
453 </para>
454 <indexterm zone="db db_verify">
455 <primary sortas="b-db_verify">db_verify</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459 </variablelist>
460 </sect2>
461
462</sect1>
Note: See TracBrowser for help on using the repository browser.