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→upgrade

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

Description

The DB→upgrade function upgrades all of the databases included in the file file, if necessary. If no upgrade is necessary, DB→upgrade always returns success.

Database upgrades are done in place and are destructive. For example, if pages need to be allocated and no disk space is available, the database may be left corrupted. Backups should be made before databases are upgraded. See “Upgrading Databases” for more information.

Unlike all other database operations, DB→upgrade may only be done on a system with the same byte-order as the database.

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

  • DB_DUPSORT This flag is only meaningful ...

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