db_load
NAME
db_load - the DB database loader
SYNOPSIS
db_load [-c name=value]
[-f file] [-h home] [-t btree | hash] db_file
DESCRIPTION
The db_load utility reads from the standard input and
loads it into the database db_file. The input to db_load
must have been created by the db_dump or db_dump185 utili-
ties (see db_dump(1) for more information).
The options are as follows:
-c Specify configuration options for the DB_INFO struc-
ture provided to db_open(3), ignoring any value they
may have based on the input. The command-line format
is ``name=value'', where the following ``name'' key-
words are supported:
db_lorder
The byte order for integers in the stored
database metadata. See db_open(3) for further
information.
db_pagesize
The size of pages used for nodes in the tree, in
bytes. See db_open(3) for further information.
-f Read from the specified input file instead of from
the standard input.
-h Specify a home directory for the database.
-t Specify the underlying access method. If no -t
option is specified, the database will be loaded into
a database of the same type as was dumped, e.g., a
hash database will be created if a hash database was
dumped. Btree and hash databases may be converted
from one to the other. Recno databases cannot be
converted to any other database type.
The db_load utility exits 0 on success, and >0 if an error
occurs.
ENVIRONMENT VARIABLES
The following environment variables affect the execution
of db_load:
DB_HOME
If the -h option is not specified and the environment
variable DB_HOME is set, it is used as the path of
the database home, as described in db_appinit(3).
SEE ALSO
The DB library is a family of groups of functions that
provides a modular programming interface to transactions
and record-oriented file access. The library includes
support for transactions, locking, logging and file page
caching, as well as various indexed access methods. Many
of the functional groups (e.g., the file page caching
functions) are useful independent of the other DB func-
tions, although some functional groups are explicitly
based on other functional groups (e.g., transactions and
logging). For a general description of the DB package,
see db(3). For a description of the access methods, see
db_open(3). For a description of cursors within access
methods, see db_cursor(3); transactions, see db_txn(3);
the lock manager, see db_lock(3); the log manager, see
db_log(3); the memory pool manager, see db_mpool(3). For
information on configuring the DB transaction processing
environment, and DB support utilities, see db_appinit(3),
db_archive(1), db_checkpoint(1), db_deadlock(1) and
db_recover(1). For information on dumping and reloading
DB databases, see db_dump(1) and db_load(1).
db_archive(1), db_checkpoint(1), db_deadlock(1), db_dump(1),
db_load(1), db_recover(1), db(3), db_appinit(3), db_cursor(3),
db_dbm(3), db_lock(3), db_log(3), db_mpool(3), db_open(3),
db_txn(3)