Debian Codegraph @

docs/api_reference/CXX/db_log_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_log_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_load.html" title="db_load" />
12 <link rel="next" href="db_printlog.html" title="db_printlog" />
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_log_verify</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="db_load.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="db_printlog.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_log_verify"></a>db_log_verify</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">
42
43 db_log_verify [-cNvV] [-h home to verify] [-H temporary home]
44 [-P password] [-C cache size]
45 [-b start lsn] [-e end lsn] [-s start time] [-z end time]
46 [-d database file name] [-D database name]
47 </pre>
48 <p>
49 The <span class="command"><strong>db_log_verify</strong></span> utility verifies the log files of a specific database environment.
50 This utility verifies a specific range of log records, or changed log records of a specific database.
51 </p>
52 <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
53 <h3 class="title">Note</h3>
54 <p>
55 If the application(s) that use the environment make use of
56 the <a class="xref" href="envset_lg_dir.html" title="DbEnv::set_lg_dir()">DbEnv::set_lg_dir()</a>
57 method, then in order for this utility to run correctly,
58 you need a
59 <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a>
60 file which sets the proper paths using the
61 <a class="xref" href="set_lg_dir_parameter.html" title="set_lg_dir">set_lg_dir</a>
62 configuration parameter.
63 </p>
64 </div>
65 <p>
66 The options are as follows:
67 </p>
68 <div class="itemizedlist">
69 <ul type="disc">
70 <li>
71 <p>
72 <span class="bold"><strong>-C</strong></span>
73 </p>
74 <p>
75 Specify the cache size (in megabytes) of the temporary database environment internally used during the log verification.
76 </p>
77 </li>
78 <li>
79 <p>
80 <span class="bold"><strong>-b</strong></span>
81 </p>
82 <p>
83 Specify the starting log record (by lsn) to verify.
84 </p>
85 </li>
86 <li>
87 <p>
88 <span class="bold"><strong>-c</strong></span>
89 </p>
90 <p>
91 Specify whether to continue the verification after an error is detected.
92 If not specified, the verification stops when the first error is detected.
93 </p>
94 </li>
95 <li>
96 <p>
97 <span class="bold"><strong>-D</strong></span>
98 </p>
99 <p>
100 Specify a database name. Only log records related to this database are verified.
101 </p>
102 </li>
103 <li>
104 <p>
105 <span class="bold"><strong>-d</strong></span>
106 </p>
107 <p>
108 Specify a database file name. Only log records related this database file are verified.
109 </p>
110 </li>
111 <li>
112 <p>
113 <span class="bold"><strong>-e</strong></span>
114 </p>
115 <p>
116 Specify the ending log record by lsn.
117 </p>
118 </li>
119 <li>
120 <p>
121 <span class="bold"><strong>-h</strong></span>
122 </p>
123 <p>
124 Specify a home directory of the database environment whose log is to be verified.
125 </p>
126 </li>
127 <li>
128 <p>
129 <span class="bold"><strong>-H</strong></span>
130 </p>
131 <p>
132 Specify a home directory for this utility to create a temporarily database
133 environment to store runtime data during the verification.
134 </p>
135 <p>
136
137 It is an error to specify the same directory as the -h option. If this directory is not specified, all
138 temporary databases created during the verification will be in-memory, which is not
139 a problem if the log files to verify are not huge.
140 </p>
141 </li>
142 <li>
143 <p>
144 <span class="bold"><strong>-N</strong></span>
145 </p>
146 <p>
147 Do not acquire shared region mutexes while running. Other problems,
148 such as potentially fatal errors in Berkeley DB, are ignored as
149 well. This option is intended only for debugging errors, and should
150 not be used under any other circumstances.
151 </p>
152 </li>
153 <li>
154 <p>
155 <span class="bold"><strong>-P</strong></span>
156 </p>
157 <p>
158 Specify an environment password. Although Berkeley DB utilities
159 overwrite password strings as soon as possible, there may be
160 a window of vulnerability on systems where unprivileged users can see
161 command-line arguments or where utilities are not able to overwrite
162 the memory containing the command-line arguments.
163 </p>
164 </li>
165 <li>
166 <p>
167 <span class="bold"><strong>-s</strong></span>
168 </p>
169 <p>
170 Specify the starting log record by time. The time range specified is not precise because the lsn of the most recent time point is used as the starting lsn.
171 </p>
172 </li>
173 <li>
174 <p>
175 <span class="bold"><strong>-V</strong></span>
176 </p>
177 <p>
178 Write the library version number to the standard output and exit.
179 </p>
180 </li>
181 <li>
182 <p>
183 <span class="bold"><strong>-v</strong></span>
184 </p>
185 <p>
186 Enable verbose mode to display verbose output during the verification process.
187 </p>
188 </li>
189 <li>
190 <p>
191 <span class="bold"><strong>-z</strong></span>
192 </p>
193 <p>
194 Specify the ending log record by time. The time range specified is not precise because the lsn of the most recent time point is used as the ending lsn.
195 </p>
196 </li>
197 </ul>
198 </div>
199 <p>
200 To specify a range of log records, you must provide
201 either an lsn range or a time range. You can neither specify both nor specify an lsn and a time as a range.
202 </p>
203 <p>
204 If the log footprint is over several megabytes, specify a home
205 directory and a big cache size for log verification internal use. Else, the process'
206 private memory may be exhausted before the verification completes.</p>
207 <p>
208 The <span class="command"><strong>db_log_verify</strong></span> utility does not perform the
209 locking function, even in Berkeley DB environments that are configured with a
210 locking subsystem. All errors are written to stderr, and all normal and verbose messages
211 are written to stdout.
212 </p>
213 <p>
214 The <span class="command"><strong>db_log_verify</strong></span> utility can be used with a Berkeley DB environment (as
215 described for the <span class="bold"><strong>-h</strong></span> option, the
216 environment variable <span class="bold"><strong>DB_HOME</strong></span>).
217
218 To avoid environment corruption when using a
219 Berkeley DB environment, <span class="command"><strong>db_log_verify</strong></span> must be given the chance
220 to detach from the environment and exit gracefully. For the
221 <span class="command"><strong>db_log_verify</strong></span> utility to release all environment resources and exit, send
222 an interrupt signal (SIGINT) to it.
223 </p>
224 <p>
225 The <span class="command"><strong>db_log_verify</strong></span> utility returns a non-zero error value on failure and 0 on success.
226 </p>
227 <div class="sect2" lang="en" xml:lang="en">
228 <div class="titlepage">
229 <div>
230 <div>
231 <h3 class="title"><a id="idp10776136"></a>Environment Variables</h3>
232 </div>
233 </div>
234 </div>
235 <div class="sect3" lang="en" xml:lang="en">
236 <div class="titlepage">
237 <div>
238 <div>
239 <h4 class="title"><a id="idp10776328"></a>DB_HOME</h4>
240 </div>
241 </div>
242 </div>
243 <p>
244 If the <span class="bold"><strong>-h</strong></span> option is not specified and
245 the environment variable DB_HOME is set, it is used as the path of the
246 database home, as described in the
247 <a class="xref" href="envopen.html" title="DbEnv::open()">DbEnv::open()</a>
248 method.
249 </p>
250 </div>
251 </div>
252 </div>
253 <div class="navfooter">
254 <hr />
255 <table width="100%" summary="Navigation footer">
256 <tr>
257 <td width="40%" align="left"><a accesskey="p" href="db_load.html">Prev</a> </td>
258 <td width="20%" align="center">
259 <a accesskey="u" href="utilities.html">Up</a>
260 </td>
261 <td width="40%" align="right"> <a accesskey="n" href="db_printlog.html">Next</a></td>
262 </tr>
263 <tr>
264 <td width="40%" align="left" valign="top">db_load </td>
265 <td width="20%" align="center">
266 <a accesskey="h" href="index.html">Home</a>
267 </td>
268 <td width="40%" align="right" valign="top"> db_printlog</td>
269 </tr>
270 </table>
271 </div>
272 </body>
273 </html>