Skip to Content
Berkeley DB
book

Berkeley DB

by Sleepycat™ Software, Inc.
June 2001
Intermediate to advanced content levelIntermediate to advanced
688 pages
19h 18m
English
Sams
Content preview from Berkeley DB

DB→verify

						#include <db.h>
						int
						DB→verify(DB *db,
						const char *file, const char *database, FILE *outfile, u_int32_t flags);
					

Description

The DB→verify function verifies the integrity of all databases in the file specified by the file argument, and optionally outputs the databases’ key/data pairs to a file stream.

The flags parameter must be set to 0 or one of the following values:

  • DB_SALVAGE Write the key/data pairs from all databases in the file to the file stream named in the outfile argument. The output format is the same as that specified for the db_dump utility, and can be used as input for the db_load utility.

    Because the key/data pairs are output in page order as opposed to the sort order used by db_dump, using DB→verify to dump key/data ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Berkeley DB Book

The Berkeley DB Book

Himanshu Yadava
Linux Recipes for Oracle DBAs

Linux Recipes for Oracle DBAs

Darl Kuhn, Charles Kim, Bernard Lopuz
Fedora Linux

Fedora Linux

Chris Tyler

Publisher Resources

ISBN: 0735710643Purchase book