1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY db-3.3-download-http "http://fresh.t-systems-sfr.com/unix/src/misc/db-&db-3.3-version;.tar.gz">
|
---|
8 | <!ENTITY db-3.3-download-ftp "ftp://sleepycat1.inetu.net/releases/db-&db-3.3-version;.tar.gz">
|
---|
9 | <!ENTITY db-3.3-size "2.3 MB">
|
---|
10 | <!ENTITY db-3.3-buildsize "27.5 MB">
|
---|
11 | <!ENTITY db-3.3-time "0.63 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="db-3.3" xreflabel="Berkeley DB-&db-3.3-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="db-3.3.html"?>
|
---|
20 | <title>Berkeley DB-&db-3.3-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to
|
---|
24 | <application>Berkeley DB</application>-&db-3.3-version;</title>
|
---|
25 |
|
---|
26 | <para>The <application>Berkeley DB</application> package contains version
|
---|
27 | &db-3.3-version; of the Berkeley Database.</para>
|
---|
28 |
|
---|
29 | <sect3><title>Package information</title>
|
---|
30 | <itemizedlist spacing='compact'>
|
---|
31 | <listitem><para>Download (HTTP): <ulink
|
---|
32 | url="&db-3.3-download-http;"/></para></listitem>
|
---|
33 | <listitem><para>Download (FTP): <ulink
|
---|
34 | url="&db-3.3-download-ftp;"/></para></listitem>
|
---|
35 | <listitem><para>Download size: &db-3.3-size;</para></listitem>
|
---|
36 | <listitem><para>Estimated disk space required:
|
---|
37 | &db-3.3-buildsize;</para></listitem>
|
---|
38 | <listitem><para>Estimated build time:
|
---|
39 | &db-3.3-time;</para></listitem></itemizedlist>
|
---|
40 | </sect3>
|
---|
41 |
|
---|
42 | <sect3><title>Additional downloads</title>
|
---|
43 | <itemizedlist spacing='compact'>
|
---|
44 | <listitem><para>Required Patch: <ulink
|
---|
45 | url="http://www.sleepycat.com/update/&db-3.3-version;/patch.&db-3.3-version;.1"/>
|
---|
46 | </para></listitem>
|
---|
47 | <listitem><para>Recommended Patch: <ulink
|
---|
48 | url="http://www.sleepycat.com/update/&db-3.3-version;/patch.&db-3.3-version;.2"/>
|
---|
49 | </para></listitem>
|
---|
50 | </itemizedlist>
|
---|
51 | </sect3>
|
---|
52 |
|
---|
53 | </sect2>
|
---|
54 |
|
---|
55 | <sect2>
|
---|
56 | <title>Installation of <application>Berkeley DB</application></title>
|
---|
57 |
|
---|
58 | <para>Install <application>Berkeley DB</application> by running the following
|
---|
59 | commands:</para>
|
---|
60 |
|
---|
61 | <screen><userinput><command>patch -Np0 -i ../patch.&db-3.3-version;.1 &&
|
---|
62 | patch -Np0 -i ../patch.&db-3.3-version;.2 &&
|
---|
63 | cd build_unix &&
|
---|
64 | ../dist/configure --prefix=/opt/db-3.3 --enable-compat185 &&
|
---|
65 | make LIBSO_LIBS="-lpthread" LIBXSO_LIBS="-lpthread" &&
|
---|
66 | make docdir=/opt/db-3.3/doc/Berkeley-DB install &&
|
---|
67 | cd /opt/db-3.3/lib/ &&
|
---|
68 | mv libdb.so .. &&
|
---|
69 | for i in $(ls); do mv $i /usr/lib; ln -sf /usr/lib/$i; done &&
|
---|
70 | mv ../libdb.so . &&
|
---|
71 | cd /opt/db-3.3/include/ &&
|
---|
72 | sed -i 's/^DB185/DB/' db_185.h &&
|
---|
73 | ln -nsf /opt/db-3.3/include /usr/include/db3 &&
|
---|
74 | chmod 755 /usr/lib/libdb-3.3.so &&
|
---|
75 | chown -R root:root /opt/db-3.3/{bin,include,doc}</command></userinput></screen>
|
---|
76 |
|
---|
77 | </sect2>
|
---|
78 |
|
---|
79 | <sect2>
|
---|
80 | <title>Command explanations</title>
|
---|
81 |
|
---|
82 | <para><parameter>docdir=/opt/db-3.3/doc/Berkeley-DB</parameter>: Installs the
|
---|
83 | documentation in the <filename class="directory">/opt/db-3.3</filename>
|
---|
84 | hierarchy.</para>
|
---|
85 |
|
---|
86 | <para><command>mv libdb.so ..</command> and <command>mv ../libdb.so
|
---|
87 | .</command>: Avoids moving <filename>libdb.so</filename> to
|
---|
88 | <filename class="directory">/usr/lib</filename>.</para>
|
---|
89 |
|
---|
90 | <para><command>for i in ...; do ...; ln ...; done</command>: Moves the DB
|
---|
91 | libraries to <filename class="directory">/usr/lib</filename> and creates
|
---|
92 | symlinks to these libraries in
|
---|
93 | <filename class="directory">/opt/db-3.3/lib</filename>.</para>
|
---|
94 |
|
---|
95 | <para><command>sed -i 's/^DB185/DB/' db_185.h</command>: Change the DB185
|
---|
96 | database pointer to DB.</para>
|
---|
97 |
|
---|
98 | <para><command>chown -R root:root /opt/db-3.3/{bin,include,doc}</command>:
|
---|
99 | This command corrects the improper ownership of installed files.</para>
|
---|
100 |
|
---|
101 | </sect2>
|
---|
102 |
|
---|
103 | <sect2>
|
---|
104 | <title>Contents</title>
|
---|
105 |
|
---|
106 | <para>The <application>Berkeley DB</application> package contains
|
---|
107 | <command>db_archive</command>,
|
---|
108 | <command>db_checkpoint</command>,
|
---|
109 | <command>db_deadlock</command>,
|
---|
110 | <command>db_dump</command>,
|
---|
111 | <command>db_load</command>,
|
---|
112 | <command>db_printlog</command>,
|
---|
113 | <command>db_recover</command>,
|
---|
114 | <command>db_stat</command>,
|
---|
115 | <command>db_upgrade</command>,
|
---|
116 | <command>db_verify</command> and the
|
---|
117 | <filename class="libraryfile">libdb-3</filename> libraries.
|
---|
118 |
|
---|
119 | </para>
|
---|
120 |
|
---|
121 | </sect2>
|
---|
122 |
|
---|
123 | <sect2><title>Description</title>
|
---|
124 |
|
---|
125 | <sect3><title>db_archive</title>
|
---|
126 | <para><command>db_archive</command> prints the pathnames of log files that are
|
---|
127 | no longer in use.</para></sect3>
|
---|
128 |
|
---|
129 | <sect3><title>db_checkpoint</title>
|
---|
130 | <para><command>db_checkpoint</command> is a daemon process used to monitor and
|
---|
131 | checkpoint database logs.</para></sect3>
|
---|
132 |
|
---|
133 | <sect3><title>db_deadlock</title>
|
---|
134 | <para><command>db_deadlock</command> is used to abort lock requests when
|
---|
135 | deadlocks are detected.</para></sect3>
|
---|
136 |
|
---|
137 | <sect3><title>db_dump</title>
|
---|
138 | <para><command>db_dump</command> converts database files to a flat file format
|
---|
139 | readable by <command>db_load</command>.</para></sect3>
|
---|
140 |
|
---|
141 | <sect3><title>db_load</title>
|
---|
142 | <para><command>db_load</command> is used to create database files from flat
|
---|
143 | files created with <command>db_dump</command>.</para></sect3>
|
---|
144 |
|
---|
145 | <sect3><title>db_printlog</title>
|
---|
146 | <para><command>db_printlog</command> converts database log files to human
|
---|
147 | readable text.</para></sect3>
|
---|
148 |
|
---|
149 | <sect3><title>db_recover</title>
|
---|
150 | <para><command>db_recover</command> is used to restore a database to a
|
---|
151 | consistent state after a failure.</para></sect3>
|
---|
152 |
|
---|
153 | <sect3><title>db_stat</title>
|
---|
154 | <para><command>db_stat</command> displays database environment statistics.
|
---|
155 | </para></sect3>
|
---|
156 |
|
---|
157 | <sect3><title>db_upgrade</title>
|
---|
158 | <para><command>db_upgrade</command> is used to upgrade database files to a
|
---|
159 | newer version of <application>Berkeley DB</application>.</para></sect3>
|
---|
160 |
|
---|
161 | <sect3><title>db_verify</title>
|
---|
162 | <para><command>db_verify</command> is used to run consistency checks on
|
---|
163 | database files.</para></sect3>
|
---|
164 |
|
---|
165 | </sect2>
|
---|
166 |
|
---|
167 | </sect1>
|
---|