source: server/databases/db.xml@ 88fdf09

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 88fdf09 was 88fdf09, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

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 <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
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>
35
36 &lfs110a_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&db-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&db-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &db-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &db-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &db-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &db-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Berkeley DB Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional">
76 <!-- <xref linkend="tcl"/> and -->
77 <xref linkend="sharutils"/> (for the <command>uudecode</command> command)
78
79 <!--,
80 <xref linkend="openjdk"/> or <xref linkend="java"/>, and
81- - This is currently broken, removed for now. - -
82 <xref linkend="sharutils"/> (for the <command>uudecode</command> command
83 - Java bindings are required) -->
84 </para>
85
86 <para condition="html" role="usernotes">
87 User Notes: <ulink url="&blfs-wiki;/db"/>
88 </para>
89 </sect2>
90
91 <!-- <sect2 role="testing">
92 <title>Testing Berkeley DB before the real install</title>
93
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;
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;
115make</userinput></screen>
116
117 <para>
118 To test the results, start <command>tclsh</command>:
119 </para>
120
121<screen><userinput>tclsh</userinput></screen>
122
123 <para>
124 From the <command>tclsh</command> prompt (<prompt>%&nbsp;</prompt>), run:
125 </para>
126
127<screen><userinput>source ../test/tcl/test.tcl
128run_parallel 5 run_std
129exit</userinput></screen>
130
131 <para>
132 Clean up the source tree with the following command:
133 </para>
134
135<screen><userinput>make realclean &amp;&amp;
136cd ..</userinput></screen>
137
138 <note><para>
139 Test127.f and Repmgr026.c are known to fail.
140 </para></note>
141
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>
149 </sect2> -->
150
151 <sect2 role="installation" id="bdb-installation">
152 <title>Installation of Berkeley DB</title>
153
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
163 <para>
164 Install <application>Berkeley DB</application> by running the following
165 commands:
166 </para>
167
168<screen><userinput>cd build_unix &amp;&amp;
169../dist/configure --prefix=/usr \
170 --enable-compat185 \
171 --enable-dbm \
172 --disable-static \
173 --enable-cxx &amp;&amp;
174make</userinput></screen>
175
176 <para>
177 Now, as the <systemitem class="username">root</systemitem> user:
178 </para>
179
180<screen role="root"><userinput>make docdir=/usr/share/doc/db-&db-version; install &amp;&amp;
181
182chown -v -R root:root \
183 /usr/bin/db_* \
184 /usr/include/db{,_185,_cxx}.h \
185 /usr/lib/libdb*.{so,la} \
186 /usr/share/doc/db-&db-version;</userinput></screen>
187 </sect2>
188
189 <sect2 role="commands">
190 <title>Command Explanations</title>
191
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>
199
200 <para>
201 <parameter>--enable-compat185</parameter>: This switch enables building
202 the DB-1.85 compatibility API.
203 </para>
204
205 <para>
206 <parameter>--enable-cxx</parameter>: This switch enables building C++ API
207 libraries.
208 </para>
209
210 <para>
211 <parameter>--enable-dbm</parameter>: Enables legacy interface support
212 needed by some older packages.
213 </para>
214
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>
220
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>
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>
234 <option>--enable-java</option>: Enables <application>Java</application>
235 support in DB and creates the
236 <filename class="libraryfile">libdb_java</filename> libraries.
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.
245 </para>
246 </sect2>
247
248 <sect2 role="content">
249 <title>Contents</title>
250
251 <segmentedlist>
252 <segtitle>Installed Programs</segtitle>
253 <segtitle>Installed Libraries</segtitle>
254 <segtitle>Installed Directory</segtitle>
255
256 <seglistitem>
257 <seg>
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,
270 db_upgrade, and
271 db_verify
272 </seg>
273 <seg>
274 libdb.so,
275 libdb_cxx.so, and
276<!-- libdb_java.so, and -->
277 libdb_tcl.so
278 </seg>
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>
291 <para>
292 prints the pathnames of log files that are no longer in use
293 </para>
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>
303 <para>
304 is a daemon process used to monitor and checkpoint database logs
305 </para>
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>
315 <para>
316 is used to abort lock requests when deadlocks are detected
317 </para>
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>
327 <para>
328 converts database files to a flat file format readable by
329 <command>db_load</command>
330 </para>
331 <indexterm zone="db db_dump">
332 <primary sortas="b-db_dump">db_dump</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
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
342 databases
343 </para>
344 <indexterm zone="db db_hotbackup">
345 <primary sortas="b-db_hotbackup">db_hotbackup</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="db_load">
351 <term><command>db_load</command></term>
352 <listitem>
353 <para>
354 is used to create database files from flat files created with
355 <command>db_dump</command>
356 </para>
357 <indexterm zone="db db_load">
358 <primary sortas="b-db_load">db_load</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 <varlistentry id="db_log_verify">
364 <term><command>db_log_verify</command></term>
365 <listitem>
366 <para>
367 verifies the log files of a database
368 </para>
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
375 <varlistentry id="db_printlog">
376 <term><command>db_printlog</command></term>
377 <listitem>
378 <para>
379 converts database log files to human readable text
380 </para>
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>
390 <para>
391 is used to restore a database to a consistent state after a failure
392 </para>
393 <indexterm zone="db db_recover">
394 <primary sortas="b-db_recover">db_recover</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
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
404 transactional environment
405 </para>
406 <indexterm zone="db db_replicate">
407 <primary sortas="b-db_replicate">db_replicate</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="db_stat">
413 <term><command>db_stat</command></term>
414 <listitem>
415 <para>
416 displays database environment statistics
417 </para>
418 <indexterm zone="db db_stat">
419 <primary sortas="b-db_stat">db_stat</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
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
429 is likely to deliver optimal operation
430 </para>
431 <indexterm zone="db db_tuner">
432 <primary sortas="b-db_tuner">db_tuner</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="db_upgrade">
438 <term><command>db_upgrade</command></term>
439 <listitem>
440 <para>
441 is used to upgrade database files to a newer version of
442 <application>Berkeley DB</application>
443 </para>
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>
453 <para>
454 is used to run consistency checks on database files
455 </para>
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>
463
464</sect1>
Note: See TracBrowser for help on using the repository browser.