Getting Started with the Oracle Berkeley DB SQL APIs

Legal Notice

This documentation is distributed under an open source license. You may review the terms of this license at:

Oracle, Berkeley DB, and Sleepycat are trademarks or registered trademarks of Oracle. All rights to these marks are reserved. No third-party use is permitted without the express prior written consent of Oracle.

Other names may be trademarks of their respective owners.

To obtain a copy of this document's original source code, please submit a request to the Oracle Technology Network forum at:

3/30/2010


Table of Contents

Preface
1. Berkeley DB SQL: The Absolute Basics
BDB SQL Is Nearly Identical to SQLite
Getting and Installing BDB SQL
On Windows Systems
On Unix
The Journal Directory
Unsupported PRAGMAs
Changed PRAGMAs
PRAGMA journal_size_limit
PRAGMA max_page_count
Miscellaneous Differences
Berkeley DB Concepts
2. Locking Notes
Internal Database Usage
Lock Handling
SQLite Lock Usage
Lock Usage with the DB SQL Interface
3. Configuring the Berkeley DB SQL interface
Introduction to Environments
The DB_CONFIG File
Creating the DB_CONFIG File Before Environment Creation
Re-creating the Environment
Configuring the Database Page Size
Selecting the Page Size
Selecting the Database File Size
Configuring the In-Memory Cache
Administering Log Files
Setting the Log File Size
Configuring the Logging Region Size
Setting the In-Memory Log Buffer Size
Managing the Locking Subsystem
4. Administrating Berkeley DB SQL
Backing up
Offline Backups
Hot Backup
Incremental Backups
About Unix Copy Utilities
Recovering from a Backup
Catastrophic Recovery
Syncing with Oracle Databases
Syncing on Unix Platforms
Syncing on Windows Platforms
Syncing on Windows Mobile Platforms
Data Migration
Migration Using the Shells
Supported Data and Schema
A. DB_CONFIG Parameter Reference
set_cachesize
set_cache_max
set_lk_max_lockers
set_lk_max_locks
set_lk_max_objects
set_lg_bsize
set_lg_max
set_lg_regionmax