db-4.1.25

Introduction to db

Download location (HTTP):       http://www.sleepycat.com/update/snapshot/db-4.1.25.tar.gz
Download location (FTP):        
Version used:                   4.1.25
Package size:                   3 MB
Estimated Disk space required:  27 MB

The db package contains db_archive, db_checkpoint, db_deadlock, db_dump, db_load, db_printlog, db_recover, db_stat, db_upgrade, db_verify and the db libraries. These are used by many other programs for db related functions.

Installation of db

Install db by running the following commands:

cd build_unix &&
../dist/configure --prefix=/usr \
    --enable-compat185 \
    --enable-cxx &&
make &&
make docdir=/usr/share/doc/db-4.1.25 install

Note: If you wish to enable Java support in db-4.1.25, add --enable-java to the configure options. Java support is needed if you plan to use system installed db when compiling OpenOffice.

Command explanations

cd build_unix && ../dist/configure --prefix=/usr --enable-compat185 : This replaces the normal ./configure command as db comes with the various build directories for different platforms.

make docdir=/usr/share/doc/db-4.1.25 install : This installs db installing the documentation in the correct place.

Configuring db

Configuration Information

As with most libraries, there is no configuration to do, save that the library directory i.e. /usr/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.

If you recompile perl after installing db-4.1.25 you will need to apply the perl-5.8.0-db-4.1.patch available at http://downloads.linuxfromscratch.org/blfs-patches.

Contents

The db package contains db_archive, db_checkpoint, db_deadlock, db_dump, db_load, db_printlog, db_recover, db_stat, db_upgrade and db_verify.

Description

db_archive

db_archive prints the pathnames of log files that are no longer in use.

db_checkpoint

db_checkpoint is a daemon process used to monitor and checkpoint database logs.

db_deadlock

db_deadlock is used to abort lock requests when deadlocks are detected.

db_dump

db_dump converts database files to a flat file format readable by db_load.

db_load

db_load is used to create database files from flat files created with db_dump.

db_printlog

db_printlog converts database log files to human readable text.

db_recover

db_recover is used to restore a database to a consistent state after a failure.

db_stat

db_stat displays database environment statistics.

db_upgrade

db_upgrade is used to upgrade database files to a newer version of Berkeley DB.

db_verify

db_verify is used to run consistency checks on database files.