Debian Codegraph @

docs/api_reference/CXX/db_verify.html

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