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

Common Errors

This page outlines some of the most common problems that people encounter and some suggested courses of action.

  • Symptom: Core dumps or garbage returns from random Berkeley DB operations.

    Possible Cause: Failure to zero out DBT structure before issuing request.

    Fix: Before using a DBT, you must initialize all its elements to 0 and then set the ones you are using explicitly.

  • Symptom: Random crashes and/or database corruption.

    Possible Cause: Running multiple threads, but did not specify DB_THREAD to DB→open or DBENV→open.

    Fix: Any time you are sharing a handle across multiple threads, you must specify DB_THREAD when you open that handle.

  • Symptom: DBENV→open returns EINVAL.

    Possible Cause: The environment home directory is a remote mounted ...

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