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>db_verify</title> 7 <link rel="stylesheet" href="apiReference.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 C++ API Reference" /> 10 <link rel="up" href="utilities.html" title="Appendix��1.�� Berkeley DB Command Line Utilities" /> 11 <link rel="prev" href="db_upgrade.html" title="db_upgrade" /> 12 </head> 13 <body> 14 <div class="navheader"> 15 <table width="100%" summary="Navigation header"> 16 <tr> 17 <th colspan="3" align="center">db_verify</th> 18 </tr> 19 <tr> 20 <td width="20%" align="left"><a accesskey="p" href="db_upgrade.html">Prev</a>��</td> 21 <th width="60%" align="center">Appendix��1.�� 22 Berkeley DB Command Line Utilities 23 </th> 24 <td width="20%" align="right">��</td> 25 </tr> 26 </table> 27 <hr /> 28 </div> 29 <div class="sect1" lang="en" xml:lang="en"> 30 <div class="titlepage"> 31 <div> 32 <div> 33 <h2 class="title" style="clear: both"><a id="db_verify"></a>db_verify</h2> 34 </div> 35 </div> 36 </div> 37 <pre class="programlisting">db_verify [-NoqV] [-h home] [-P password] file ... </pre> 38 <p> 39 The <span class="command"><strong>db_verify</strong></span> utility verifies the structure of one or more files and 40 the databases they contain. 41 </p> 42 <p> 43 The options are as follows: 44 </p> 45 <div class="itemizedlist"> 46 <ul type="disc"> 47 <li> 48 <p> 49 <span class="bold"><strong>-h</strong></span> 50 </p> 51 <p> 52 Specify a home directory for the database environment; by default, the 53 current working directory is used. 54 </p> 55 </li> 56 <li> 57 <p> 58 <span class="bold"><strong>-o</strong></span> 59 </p> 60 <p> 61 Skip the database checks for btree and duplicate sort order and for 62 hashing. 63 </p> 64 <p> 65 If the file being verified contains databases with non-default 66 comparison or hashing configurations, calling the <span class="command"><strong>db_verify</strong></span> utility 67 without the <span class="bold"><strong>-o</strong></span> flag will usually 68 return failure. The <span class="bold"><strong>-o</strong></span> flag causes 69 <span class="command"><strong>db_verify</strong></span> to ignore database sort or hash ordering and allows 70 <span class="command"><strong>db_verify</strong></span> to be used on these files. To fully verify these files, 71 verify them explicitly using the <a class="xref" href="dbverify.html" title="Db::verify()">Db::verify()</a> 72 method, after configuring the correct comparison or hashing functions. 73 </p> 74 </li> 75 <li> 76 <p> 77 <span class="bold"><strong>-N</strong></span> 78 </p> 79 <p> 80 Do not acquire shared region mutexes while running. Other problems, 81 such as potentially fatal errors in Berkeley DB, will be ignored as 82 well. This option is intended only for debugging errors, and should 83 not be used under any other circumstances. 84 </p> 85 </li> 86 <li> 87 <p> 88 <span class="bold"><strong>-P</strong></span> 89 </p> 90 <p> 91 Specify an environment password. Although Berkeley DB utilities 92 overwrite password strings as soon as possible, be aware there may be 93 a window of vulnerability on systems where unprivileged users can see 94 command-line arguments or where utilities are not able to overwrite 95 the memory containing the command-line arguments. 96 </p> 97 </li> 98 <li> 99 <p> 100 <span class="bold"><strong>-q</strong></span> 101 </p> 102 <p> 103 Suppress the printing of any error descriptions, simply exit success 104 or failure. 105 </p> 106 </li> 107 <li> 108 <p> 109 <span class="bold"><strong>-V</strong></span> 110 </p> 111 <p> 112 Write the library version number to the standard output, and exit. 113 </p> 114 </li> 115 </ul> 116 </div> 117 <p> 118 <span class="bold"><strong>The <span class="command"><strong>db_verify</strong></span> utility does not perform any 119 locking, even in Berkeley DB environments that are configured with a 120 locking subsystem. As such, it should only be used on files that are 121 not being modified by another thread of control.</strong></span> 122 </p> 123 <p> 124 The <span class="command"><strong>db_verify</strong></span> utility may be used with a Berkeley DB environment (as 125 described for the <span class="bold"><strong>-h</strong></span> option, the 126 environment variable <span class="bold"><strong>DB_HOME</strong></span>, or 127 because the utility was run in a directory containing a Berkeley DB 128 environment). In order to avoid environment corruption when using a 129 Berkeley DB environment, <span class="command"><strong>db_verify</strong></span> should always be given the chance 130 to detach from the environment and exit gracefully. To cause 131 <span class="command"><strong>db_verify</strong></span> to release all environment resources and exit cleanly, send 132 it an interrupt signal (SIGINT). 133 </p> 134 <p> 135 The <span class="command"><strong>db_verify</strong></span> utility exits 0 on success, and >0 if an error 136 occurs. 137 </p> 138 <div class="sect2" lang="en" xml:lang="en"> 139 <div class="titlepage"> 140 <div> 141 <div> 142 <h3 class="title"><a id="id1722023"></a>Environment Variables</h3> 143 </div> 144 </div> 145 </div> 146 <div class="sect3" lang="en" xml:lang="en"> 147 <div class="titlepage"> 148 <div> 149 <div> 150 <h4 class="title"><a id="id1722170"></a>DB_HOME</h4> 151 </div> 152 </div> 153 </div> 154 <p> 155 If the <span class="bold"><strong>-h</strong></span> option is not specified and 156 the environment variable DB_HOME is set, it is used as the path of the 157 database home, as described in the 158 <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a> 159 method. 160 </p> 161 </div> 162 </div> 163 </div> 164 <div class="navfooter"> 165 <hr /> 166 <table width="100%" summary="Navigation footer"> 167 <tr> 168 <td width="40%" align="left"><a accesskey="p" href="db_upgrade.html">Prev</a>��</td> 169 <td width="20%" align="center"> 170 <a accesskey="u" href="utilities.html">Up</a> 171 </td> 172 <td width="40%" align="right">��</td> 173 </tr> 174 <tr> 175 <td width="40%" align="left" valign="top">db_upgrade��</td> 176 <td width="20%" align="center"> 177 <a accesskey="h" href="index.html">Home</a> 178 </td> 179 <td width="40%" align="right" valign="top">��</td> 180 </tr> 181 </table> 182 </div> 183 </body> 184</html> 185