1<!--$Id: db_printlog.so,v 10.16 2006/10/05 01:06:08 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB: db_printlog</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td> 13<b>db_printlog</b> 14</td> 15</tr></table> 16<hr size=1 noshade> 17<tt> 18<b><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></b> 19<b>Description</b> 20<a name="2"><!--meow--></a> 21<p>The db_printlog utility is a debugging utility that dumps Berkeley DB 22log files in a human-readable format.</p> 23<p>The options are as follows:</p> 24<br> 25<b>-b</b><ul compact><li>Display log records starting at log sequence number (LSN) <b>start-LSN</b>; 26<b>start-LSN</b> is specified as a file number, followed by a slash (/) 27character, followed by an offset number, with no intervening whitespace.</ul> 28<b>-e</b><ul compact><li>Stop displaying log records at log sequence number (LSN) <b>stop-LSN</b>; 29<b>stop-LSN</b> is specified as a file number, followed by a slash (/) 30character, followed by an offset number, with no intervening whitespace.</ul> 31<b>-h</b><ul compact><li>Specify a home directory for the database environment; by 32default, the current working directory is used.</ul> 33<b>-N</b><ul compact><li>Do not acquire shared region mutexes while running. Other problems, 34such as potentially fatal errors in Berkeley DB, will be ignored as well. 35This option is intended only for debugging errors, and should not be 36used under any other circumstances.</ul> 37<b>-P</b><ul compact><li>Specify an environment password. Although Berkeley DB utilities overwrite 38password strings as soon as possible, be aware there may be a window of 39vulnerability on systems where unprivileged users can see command-line 40arguments or where utilities are not able to overwrite the memory 41containing the command-line arguments.</ul> 42<b>-r</b><ul compact><li>Read the log files in reverse order.</ul> 43<b>-V</b><ul compact><li>Write the library version number to the standard output, and exit.</ul> 44<br> 45<p>For more information on the db_printlog output and using it to 46debug applications, see <a href="../ref/debug/printlog.html">Reviewing 47Berkeley DB log files</a>.</p> 48<p>The db_printlog utility uses a Berkeley DB environment (as described for the 49<b>-h</b> option, the environment variable <b>DB_HOME</b>, or 50because the utility was run in a directory containing a Berkeley DB 51environment). In order to avoid environment corruption when using a 52Berkeley DB environment, db_printlog should always be given the chance to 53detach from the environment and exit gracefully. To cause db_printlog 54to release all environment resources and exit cleanly, send it an 55interrupt signal (SIGINT).</p> 56<p>The db_printlog utility exits 0 on success, and >0 if an error occurs.</p> 57<br><b>Environment Variables</b> 58<br> 59<b>DB_HOME</b><ul compact><li>If the <b>-h</b> option is not specified and the environment variable 60DB_HOME is set, it is used as the path of the database home, as described 61in <a href="../api_c/env_open.html">DB_ENV->open</a>.</ul> 62<br> 63</tt> 64<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 65</body> 66</html> 67