utility.html   [plain text]


<!--$Id: utility.so,v 10.18 2004/10/05 16:44:33 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB Reference Guide: The db_dump and db_load utilities</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<a name="2"><!--meow--></a>
<table width="100%"><tr valign=top>
<td><b><dl><dt>Berkeley DB Reference Guide:<dd>Dumping and Reloading</dl></b></td>
<td align=right><a href="../ext/php.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../dumpload/format.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p align=center><b>The db_dump and db_load utilities</b></p>
<p>There are three utilities used for dumping and loading Berkeley DB
databases: <a href="../../utility/db_dump.html">db_dump</a>, <a href="../../utility/db_dump.html">db_dump185</a>, and <a href="../../utility/db_load.html">db_load</a>.</p>
<p>The <a href="../../utility/db_dump.html">db_dump</a> and <a href="../../utility/db_dump.html">db_dump185</a> utilities dump Berkeley DB
databases into a flat-text representation of the data that can be read
by <a href="../../utility/db_load.html">db_load</a>.  The only difference between them is that
<a href="../../utility/db_dump.html">db_dump</a> reads Berkeley DB version 2 and greater database formats,
whereas <a href="../../utility/db_dump.html">db_dump185</a> reads Berkeley DB version 1.85 and 1.86 database
formats.</p>
<p>The <a href="../../utility/db_load.html">db_load</a> utility reads either the output format used
by the dump utilities or (optionally) a flat-text representation
created using other tools, and stores it into a Berkeley DB database.</p>
<p>Dumping and reloading Hash databases that use user-defined hash functions
will result in new databases that use the default hash function. Although
using the default hash function may not be optimal for the new database,
it will continue to work correctly.</p>
<p>Dumping and reloading Btree databases that use user-defined prefix or
comparison functions will result in new databases that use the default
prefix and comparison functions. In this case, it is quite likely that
applications will be unable to retrieve records, and it is possible that
the load process itself will fail.</p>
<p>The only available workaround for either Hash or Btree databases is to
modify the sources for the <a href="../../utility/db_load.html">db_load</a> utility to load the database
using the correct hash, prefix, and comparison functions.</p>
<table width="100%"><tr><td><br></td><td align=right><a href="../ext/php.html"><img src="../../images/prev.gif" alt="Prev"></a><a href="../toc.html"><img src="../../images/ref.gif" alt="Ref"></a><a href="../dumpload/format.html"><img src="../../images/next.gif" alt="Next"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>