| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Supporting utilities</title> |
| 7 | <link rel="stylesheet" href="gettingStarted.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" /> |
| 10 | <link rel="up" href="arch.html" title="Chapter 8. Berkeley DB Architecture" /> |
| 11 | <link rel="prev" href="arch_script.html" title="Scripting languages" /> |
| 12 | <link rel="next" href="env.html" title="Chapter 9. The Berkeley DB Environment" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Supporting utilities</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="arch_script.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 8. |
| 26 | Berkeley DB Architecture |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="env.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="arch_utilities"></a>Supporting utilities</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <p>The following are the standalone utilities that provide supporting |
| 42 | functionality for the Berkeley DB environment:</p> |
| 43 | <div class="variablelist"> |
| 44 | <dl> |
| 45 | <dt> |
| 46 | <span class="term"><a href="../api_reference/C/db_archive.html" class="olink">db_archive</a> utility</span> |
| 47 | </dt> |
| 48 | <dd>The <a href="../api_reference/C/db_archive.html" class="olink">db_archive</a> utility supports database backup and archival, |
| 49 | and log file administration. It facilitates log reclamation and the |
| 50 | creation of database snapshots. Generally, some form of log archival |
| 51 | must be done if a database environment has been configured for logging |
| 52 | or transactions.</dd> |
| 53 | <dt> |
| 54 | <span class="term"><a href="../api_reference/C/db_checkpoint.html" class="olink">db_checkpoint</a> utility</span> |
| 55 | </dt> |
| 56 | <dd>The <a href="../api_reference/C/db_checkpoint.html" class="olink">db_checkpoint</a> utility runs as a daemon process, monitoring |
| 57 | the database log and periodically issuing checkpoints. It facilitates |
| 58 | log reclamation and the creation of database snapshots. Generally, some |
| 59 | form of database checkpointing must be done if a database environment has |
| 60 | been configured for transactions.</dd> |
| 61 | <dt> |
| 62 | <span class="term"><a href="../api_reference/C/db_deadlock.html" class="olink">db_deadlock</a> utility</span> |
| 63 | </dt> |
| 64 | <dd>The <a href="../api_reference/C/db_deadlock.html" class="olink">db_deadlock</a> utility runs as a daemon process, periodically |
| 65 | traversing the database lock structures and aborting transactions when it |
| 66 | detects a deadlock. Generally, some form of deadlock detection must be |
| 67 | done if a database environment has been configured for locking.</dd> |
| 68 | <dt> |
| 69 | <span class="term"><a href="../api_reference/C/db_dump.html" class="olink">db_dump</a> utility</span> |
| 70 | </dt> |
| 71 | <dd>The <a href="../api_reference/C/db_dump.html" class="olink">db_dump</a> utility writes a copy of the database to a flat-text file in a portable format.</dd> |
| 72 | <dt> |
| 73 | <span class="term"><a href="../api_reference/C/db_hotbackup.html" class="olink">db_hotbackup</a> utility</span> |
| 74 | </dt> |
| 75 | <dd>The <a href="../api_reference/C/db_hotbackup.html" class="olink">db_hotbackup</a> utility creates "hot backup" or "hot failover" |
| 76 | snapshots of Berkeley DB database environments.</dd> |
| 77 | <dt> |
| 78 | <span class="term"><a href="../api_reference/C/db_load.html" class="olink">db_load</a> utility</span> |
| 79 | </dt> |
| 80 | <dd>The <a href="../api_reference/C/db_load.html" class="olink">db_load</a> utility reads the flat-text file produced by the <a href="../api_reference/C/db_load.html" class="olink">db_load</a> utility and loads it into a database file.</dd> |
| 81 | <dt> |
| 82 | <span class="term"><a href="../api_reference/C/db_printlog.html" class="olink">db_printlog</a> utility</span> |
| 83 | </dt> |
| 84 | <dd>The <a href="../api_reference/C/db_printlog.html" class="olink">db_printlog</a> utility displays the contents of Berkeley DB log files in a human-readable and parsable format.</dd> |
| 85 | <dt> |
| 86 | <span class="term"><a href="../api_reference/C/db_recover.html" class="olink">db_recover</a> utility</span> |
| 87 | </dt> |
| 88 | <dd>The <a href="../api_reference/C/db_recover.html" class="olink">db_recover</a> utility runs after an unexpected Berkeley DB or system |
| 89 | failure to restore the database to a consistent state. Generally, some |
| 90 | form of database recovery must be done if databases are being modified.</dd> |
| 91 | <dt> |
| 92 | <span class="term">db_sql_codegen</span> |
| 93 | </dt> |
| 94 | <dd>The db_sql_codegen utility translates a |
| 95 | schema description written in a SQL Data Definition Language dialect |
| 96 | into C code that implements the schema using Berkeley DB.</dd> |
| 97 | <dt> |
| 98 | <span class="term"><a href="../api_reference/C/db_stat.html" class="olink">db_stat</a> utility</span> |
| 99 | </dt> |
| 100 | <dd>The <a href="../api_reference/C/db_stat.html" class="olink">db_stat</a> utility displays statistics for databases and database |
| 101 | environments.</dd> |
| 102 | <dt> |
| 103 | <span class="term"><a href="../api_reference/C/db_tuner.html" class="olink">db_tuner</a> utility</span> |
| 104 | </dt> |
| 105 | <dd>The <a href="../api_reference/C/db_tuner.html" class="olink">db_tuner</a> utility suggests a page size for btree databases that optimizes cache efficiency and storage space requirements.</dd> |
| 106 | <dt> |
| 107 | <span class="term"><a href="../api_reference/C/db_upgrade.html" class="olink">db_upgrade</a> utility</span> |
| 108 | </dt> |
| 109 | <dd>The <a href="../api_reference/C/db_upgrade.html" class="olink">db_upgrade</a> utility provides a command-line interface for upgrading underlying database formats.</dd> |
| 110 | <dt> |
| 111 | <span class="term"><a href="../api_reference/C/db_verify.html" class="olink">db_verify</a> utility</span> |
| 112 | </dt> |
| 113 | <dd>The <a href="../api_reference/C/db_verify.html" class="olink">db_verify</a> utility provides a command-line interface for verifying the database format.</dd> |
| 114 | </dl> |
| 115 | </div> |
| 116 | <p>All of the functionality implemented for these utilities is also available |
| 117 | as part of the standard Berkeley DB API. This means that threaded applications |
| 118 | can easily create a thread that calls the same Berkeley DB functions as do the |
| 119 | utilities. This often simplifies an application environment by removing |
| 120 | the necessity for multiple processes to negotiate database and database |
| 121 | environment creation and shut down.</p> |
| 122 | </div> |
| 123 | <div class="navfooter"> |
| 124 | <hr /> |
| 125 | <table width="100%" summary="Navigation footer"> |
| 126 | <tr> |
| 127 | <td width="40%" align="left"><a accesskey="p" href="arch_script.html">Prev</a> </td> |
| 128 | <td width="20%" align="center"> |
| 129 | <a accesskey="u" href="arch.html">Up</a> |
| 130 | </td> |
| 131 | <td width="40%" align="right"> <a accesskey="n" href="env.html">Next</a></td> |
| 132 | </tr> |
| 133 | <tr> |
| 134 | <td width="40%" align="left" valign="top">Scripting languages </td> |
| 135 | <td width="20%" align="center"> |
| 136 | <a accesskey="h" href="index.html">Home</a> |
| 137 | </td> |
| 138 | <td width="40%" align="right" valign="top"> Chapter 9. |
| 139 | The Berkeley DB Environment |
| 140 | </td> |
| 141 | </tr> |
| 142 | </table> |
| 143 | </div> |
| 144 | </body> |
| 145 | </html> |