source: server/databases/db.xml@ 8a00ffb8

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8a00ffb8 was 8a00ffb8, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

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