Oracle Berkeley DB
maintenanceby Oracle · since 1991 · also known as Berkeley DB, BDB, Sleepycat DB
The 1990s-era embedded key-value library, now Oracle-owned, AGPL-licensed and rarely updated.
maintenance. No new release since 18.1.40 (May 2020); Oracle still distributes it under AGPL-3.0 or a commercial license. LMDB or SQLite are the usual replacements.
Overview
Berkeley DB started at UC Berkeley in 1991, was commercialised by Sleepycat Software and bought by Oracle in 2006. It is an embedded C library offering B-tree, hash, queue and record-number access methods with transactions, write-ahead logging, replication and hot backups, and for decades it was the storage under OpenLDAP, Subversion, sendmail and early MySQL. Oracle relicensed the open-source edition to AGPL-3.0 in 2013, which drove many projects to LMDB or SQLite, and the latest release, 18.1.40, dates from 2020. It still works, but treat it as a legacy dependency.
Strengths & trade-offs
Strengths
- +Decades of production use with full ACID transactions and recovery
- +Multiple access methods: B-tree, hash, queue and record number
- +Built-in replication manager for high availability
- +Small footprint suitable for appliances and embedded devices
Trade-offs
- −AGPL or paid license makes embedding in proprietary products awkward
- −No new releases since 2020 and little community activity
- −Page-level locking and an older design limit concurrency
- −Many distributions and projects have already removed it
Great for
- +Maintaining legacy software built on BDB
- +Embedded appliances with existing BDB code
- +Local transactional queues
Think twice for
- −New projects
- −Proprietary products unwilling to buy a license
- −High-concurrency modern servers
Capabilities
Native or official first-party support · 6 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Embedded, Primary replica
- Query languages
- C API
Single-process library; built-in replication manager supports primary-replica HA groups.
Deployment
Ecosystem
Alternatives to Oracle Berkeley DB
Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026.
berkeley-db vs lmdb →The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.
berkeley-db vs sqlite →Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases.
berkeley-db vs rocksdb →MongoDB's default storage engine: MVCC B-tree with compression and snapshot isolation.
berkeley-db vs wiredtiger →FAL Labs' C++ DBM library with hash and B+tree files; superseded by its author's Tkrzw.
berkeley-db vs kyoto-cabinet →Pure-Go embedded key-value store with Bitcask storage and Redis-like lists, sets and sorted sets.
berkeley-db vs nutsdb →Oracle Berkeley DB FAQ
What is Oracle Berkeley DB?
Oracle Berkeley DB is a key-value database by Oracle, first released in 1991. Berkeley DB started at UC Berkeley in 1991, was commercialised by Sleepycat Software and bought by Oracle in 2006. It is an embedded C library offering B-tree, hash, queue and record-number access methods with transactions, write-ahead logging, replication and hot backups, and for decades it was the storage under OpenLDAP, Subversion, sendmail and early MySQL. Oracle relicensed the open-source edition to AGPL-3.0 in 2013, which drove many projects to LMDB or SQLite, and the latest release, 18.1.40, dates from 2020. It still works, but treat it as a legacy dependency.
Is Oracle Berkeley DB open source?
Yes. Oracle Berkeley DB is open source. License: GNU AGPL v3 or Oracle commercial license.
Does Oracle Berkeley DB support ACID transactions?
Yes. Oracle Berkeley DB supports full ACID transactions, with strong consistency.
Does Oracle Berkeley DB scale horizontally?
Oracle Berkeley DB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at medium scale (≤ 10 TB).
How can I run Oracle Berkeley DB?
You can self-host it and embed it in your application.
What is Oracle Berkeley DB best for?
Oracle Berkeley DB is a strong fit for maintaining legacy software built on BDB, embedded appliances with existing BDB code and local transactional queues. Think twice for new projects.
What are the best alternatives to Oracle Berkeley DB?
Common alternatives to Oracle Berkeley DB include LMDB, SQLite, RocksDB, WiredTiger and Kyoto Cabinet. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is Oracle Berkeley DB still maintained?
Oracle Berkeley DB is in maintenance mode. No new release since 18.1.40 (May 2020); Oracle still distributes it under AGPL-3.0 or a commercial license. LMDB or SQLite are the usual replacements.
How popular is Oracle Berkeley DB?
Oracle Berkeley DB ranks #194 of 844 databases on the WhichDB Score (17.0/100), and #27 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.

