<!--$Id: db_printlog.so,v 10.16 2006/10/05 01:06:08 bostic Exp $--> <!--Copyright (c) 1997,2007 Oracle. All rights reserved.--> <!--See the file LICENSE for redistribution information.--> <html> <head> <title>Berkeley DB: db_printlog</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> <table width="100%"><tr valign=top> <td> <h3>db_printlog</h3> </td> </tr></table> <hr size=1 noshade> <tt> <h3><pre>db_printlog [<b>-NrV</b>] [<b>-b start-LSN</b>] [<b>-e stop-LSN</b>] [<b>-h home</b>] [<b>-P password</b>]</pre></h3> <h3>Description</h3> <a name="2"><!--meow--></a> <p>The db_printlog utility is a debugging utility that dumps Berkeley DB log files in a human-readable format.</p> <p>The options are as follows:</p> <dl compact> <dt><b>-b</b><dd>Display log records starting at log sequence number (LSN) <b>start-LSN</b>; <b>start-LSN</b> is specified as a file number, followed by a slash (/) character, followed by an offset number, with no intervening whitespace. <dt><b>-e</b><dd>Stop displaying log records at log sequence number (LSN) <b>stop-LSN</b>; <b>stop-LSN</b> is specified as a file number, followed by a slash (/) character, followed by an offset number, with no intervening whitespace. <dt><b>-h</b><dd>Specify a home directory for the database environment; by default, the current working directory is used. <dt><b>-N</b><dd>Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, will be ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances. <dt><b>-P</b><dd>Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments. <dt><b>-r</b><dd>Read the log files in reverse order. <dt><b>-V</b><dd>Write the library version number to the standard output, and exit. </dl> <p>For more information on the db_printlog output and using it to debug applications, see <a href="../../db46-devel-4.6.21/ref/debug/printlog.html">Reviewing Berkeley DB log files</a>.</p> <p>The db_printlog utility uses a Berkeley DB environment (as described for the <b>-h</b> option, the environment variable <b>DB_HOME</b>, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, db_printlog should always be given the chance to detach from the environment and exit gracefully. To cause db_printlog to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).</p> <p>The db_printlog utility exits 0 on success, and >0 if an error occurs.</p> <h3>Environment Variables</h3> <dl compact> <dt>DB_HOME<dd>If the <b>-h</b> 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 <a href="../../db46-devel-4.6.21/api_c/env_open.html">DB_ENV->open</a>. </dl> </tt> <p><font size=1>Copyright (c) 1996,2007 Oracle. All rights reserved.</font> </body> </html>