source: server/databases/db.xml@ a647555

12.0 12.1 kea ken/TL2024 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 a647555 was 15445ab, checked in by Douglas R. Reno <renodr@…>, 17 months ago

Lots of tags

  • Property mode set to 100644
File size: 14.1 KB
RevLine 
[08254fc]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[08254fc]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[0aeb696]6
[ef0d8f4]7 <!ENTITY db-download-http "&sources-anduin-http;/bdb/db-&db-version;.tar.gz">
[a9e1d249]8 <!ENTITY db-download-ftp " ">
[ef0d8f4]9 <!ENTITY db-md5sum "b99454564d5b4479750567031d66fe24">
10 <!ENTITY db-size "34 MB">
11 <!ENTITY db-buildsize "265 MB">
12 <!ENTITY db-time "0.6 SBU">
[08254fc]13]>
14
[317034a]15<sect1 id="db" xreflabel="Berkeley DB-&db-version;">
[b742c85]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
[1ea160c0]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>
[b742c85]32
[15445ab]33 &lfs113_checked;
[d8069d7]34
[b742c85]35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
[1ea160c0]38 <para>
39 Download (HTTP): <ulink url="&db-download-http;"/>
40 </para>
[b742c85]41 </listitem>
42 <listitem>
[1ea160c0]43 <para>
44 Download (FTP): <ulink url="&db-download-ftp;"/>
45 </para>
[b742c85]46 </listitem>
47 <listitem>
[1ea160c0]48 <para>
49 Download MD5 sum: &db-md5sum;
50 </para>
[b742c85]51 </listitem>
52 <listitem>
[1ea160c0]53 <para>
54 Download size: &db-size;
55 </para>
[b742c85]56 </listitem>
57 <listitem>
[1ea160c0]58 <para>
59 Estimated disk space required: &db-buildsize;
60 </para>
[b742c85]61 </listitem>
62 <listitem>
[1ea160c0]63 <para>
64 Estimated build time: &db-time;
65 </para>
[b742c85]66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Optional</bridgehead>
[d8069d7]72 <para role="optional">
[f4002c5]73 <!-- <xref linkend="tcl"/> and -->
[673c070]74 <xref linkend="libnsl"/> and
[ef0d8f4]75 <xref linkend="sharutils"/> (for the <command>uudecode</command> command)
76
[869e6892]77 <!--,
[233a4949]78 <xref linkend="openjdk"/> or <xref linkend="java"/>, and
[d335260]79- - This is currently broken, removed for now. - -
[ca8bcae9]80 <xref linkend="sharutils"/> (for the <command>uudecode</command> command
[d335260]81 - Java bindings are required) -->
[d8069d7]82 </para>
[b742c85]83
[1ea160c0]84 <para condition="html" role="usernotes">
85 User Notes: <ulink url="&blfs-wiki;/db"/>
86 </para>
[b742c85]87 </sect2>
88
[a9e1d249]89 <!-- <sect2 role="testing">
[ef0d8f4]90 <title>Testing Berkeley DB before the real install</title>
[ac3ee9f8]91
[1ea160c0]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;
[a9e1d249]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;
[2a038b2]113make</userinput></screen>
[ac3ee9f8]114
[1ea160c0]115 <para>
116 To test the results, start <command>tclsh</command>:
117 </para>
[bccbdaea]118
[8f9c757e]119<screen><userinput>tclsh</userinput></screen>
120
[1ea160c0]121 <para>
122 From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>), run:
123 </para>
[8f9c757e]124
[d8069d7]125<screen><userinput>source ../test/tcl/test.tcl
[8f9c757e]126run_parallel 5 run_std
127exit</userinput></screen>
[ac3ee9f8]128
[1ea160c0]129 <para>
130 Clean up the source tree with the following command:
131 </para>
[ac3ee9f8]132
[2c2f849]133<screen><userinput>make realclean &amp;&amp;
[8d288fe8]134cd ..</userinput></screen>
[2c2f849]135
[1ea160c0]136 <note><para>
137 Test127.f and Repmgr026.c are known to fail.
138 </para></note>
[d8069d7]139
[1ea160c0]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>
[a9e1d249]147 </sect2> -->
[2c2f849]148
[2a038b2]149 <sect2 role="installation" id="bdb-installation">
[2c2f849]150 <title>Installation of Berkeley DB</title>
151
[ef0d8f4]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
[1ea160c0]161 <para>
162 Install <application>Berkeley DB</application> by running the following
163 commands:
164 </para>
[2c2f849]165
[1ea160c0]166<screen><userinput>cd build_unix &amp;&amp;
167../dist/configure --prefix=/usr \
[2a038b2]168 --enable-compat185 \
[1ea160c0]169 --enable-dbm \
170 --disable-static \
[ef0d8f4]171 --enable-cxx &amp;&amp;
[2a038b2]172make</userinput></screen>
[2c2f849]173
[1ea160c0]174 <para>
175 Now, as the <systemitem class="username">root</systemitem> user:
176 </para>
[2c2f849]177
178<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
[aed3e6ec]179
[1ea160c0]180chown -v -R root:root \
181 /usr/bin/db_* \
182 /usr/include/db{,_185,_cxx}.h \
183 /usr/lib/libdb*.{so,la} \
[35a18d26]184 /usr/share/doc/db-&db-version;</userinput></screen>
[ac3ee9f8]185 </sect2>
186
[b742c85]187 <sect2 role="commands">
188 <title>Command Explanations</title>
189
[1ea160c0]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>
[b742c85]197
[1ea160c0]198 <para>
[b412c90f]199 <parameter>--enable-compat185</parameter>: This switch enables building
[1ea160c0]200 the DB-1.85 compatibility API.
201 </para>
[b742c85]202
[1ea160c0]203 <para>
[b412c90f]204 <parameter>--enable-cxx</parameter>: This switch enables building C++ API
[1ea160c0]205 libraries.
206 </para>
[b742c85]207
[1ea160c0]208 <para>
[b412c90f]209 <parameter>--enable-dbm</parameter>: Enables legacy interface support
[1ea160c0]210 needed by some older packages.
211 </para>
[b742c85]212
[1ea160c0]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>
[0635d22]218
[1ea160c0]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>
[a9e1d249]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>
[ca8bcae9]232 <option>--enable-java</option>: Enables <application>Java</application>
233 support in DB and creates the
[a9e1d249]234 <filename class="libraryfile">libdb_java</filename> libraries.
[ef0d8f4]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.
[a9e1d249]243 </para>
[b742c85]244 </sect2>
245
246 <sect2 role="content">
247 <title>Contents</title>
248
249 <segmentedlist>
[de7f20e]250 <segtitle>Installed Programs</segtitle>
[b742c85]251 <segtitle>Installed Libraries</segtitle>
252 <segtitle>Installed Directory</segtitle>
253
254 <seglistitem>
[1ea160c0]255 <seg>
[a9e1d249]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,
[f12d348]268 db_upgrade, and
[233a4949]269 db_verify
[1ea160c0]270 </seg>
271 <seg>
[491df213]272 libdb.so,
[ef0d8f4]273 libdb_cxx.so, and
274<!-- libdb_java.so, and -->
[491df213]275 libdb_tcl.so
[1ea160c0]276 </seg>
[b742c85]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>
[1ea160c0]289 <para>
[4c24eb0a]290 prints the pathnames of log files that are no longer in use
[1ea160c0]291 </para>
[b742c85]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>
[1ea160c0]301 <para>
[4c24eb0a]302 is a daemon process used to monitor and checkpoint database logs
[1ea160c0]303 </para>
[b742c85]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>
[1ea160c0]313 <para>
[4c24eb0a]314 is used to abort lock requests when deadlocks are detected
[1ea160c0]315 </para>
[b742c85]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>
[1ea160c0]325 <para>
326 converts database files to a flat file format readable by
[4c24eb0a]327 <command>db_load</command>
[1ea160c0]328 </para>
[b742c85]329 <indexterm zone="db db_dump">
330 <primary sortas="b-db_dump">db_dump</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
[1ea160c0]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
[4c24eb0a]340 databases
[1ea160c0]341 </para>
342 <indexterm zone="db db_hotbackup">
343 <primary sortas="b-db_hotbackup">db_hotbackup</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
[b742c85]348 <varlistentry id="db_load">
349 <term><command>db_load</command></term>
350 <listitem>
[1ea160c0]351 <para>
352 is used to create database files from flat files created with
[4c24eb0a]353 <command>db_dump</command>
[1ea160c0]354 </para>
[b742c85]355 <indexterm zone="db db_load">
356 <primary sortas="b-db_load">db_load</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
[1ea160c0]361 <varlistentry id="db_log_verify">
362 <term><command>db_log_verify</command></term>
363 <listitem>
[27b601a]364 <para>
[4c24eb0a]365 verifies the log files of a database
[27b601a]366 </para>
[1ea160c0]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
[b742c85]373 <varlistentry id="db_printlog">
374 <term><command>db_printlog</command></term>
375 <listitem>
[27b601a]376 <para>
[4c24eb0a]377 converts database log files to human readable text
[27b601a]378 </para>
[b742c85]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>
[1ea160c0]388 <para>
[4c24eb0a]389 is used to restore a database to a consistent state after a failure
[1ea160c0]390 </para>
[b742c85]391 <indexterm zone="db db_recover">
392 <primary sortas="b-db_recover">db_recover</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
[1ea160c0]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
[4c24eb0a]402 transactional environment
[1ea160c0]403 </para>
404 <indexterm zone="db db_replicate">
405 <primary sortas="b-db_replicate">db_replicate</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
[b742c85]410 <varlistentry id="db_stat">
411 <term><command>db_stat</command></term>
412 <listitem>
[27b601a]413 <para>
[4c24eb0a]414 displays database environment statistics
[27b601a]415 </para>
[b742c85]416 <indexterm zone="db db_stat">
417 <primary sortas="b-db_stat">db_stat</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
[1ea160c0]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
[4c24eb0a]427 is likely to deliver optimal operation
[1ea160c0]428 </para>
429 <indexterm zone="db db_tuner">
430 <primary sortas="b-db_tuner">db_tuner</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
[b742c85]435 <varlistentry id="db_upgrade">
436 <term><command>db_upgrade</command></term>
437 <listitem>
[1ea160c0]438 <para>
439 is used to upgrade database files to a newer version of
[4c24eb0a]440 <application>Berkeley DB</application>
[1ea160c0]441 </para>
[b742c85]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>
[27b601a]451 <para>
[4c24eb0a]452 is used to run consistency checks on database files
[27b601a]453 </para>
[b742c85]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>
[4c24eb0a]461
[f45b1953]462</sect1>
Note: See TracBrowser for help on using the repository browser.