berkeley db
berkeley db (bdb) is a high-performance, embedded database library with bindings in c, [[c ]], java, perl, python, ruby, tcl, smalltalk and many other programming languages. bdb stores arbitrary key/data pairs as byte arrays, and supports multiple data items for a single key. bdb can support thousands of simultaneous threads of control or concurrent processes manipulating databases as large as 256 terabytes, on a wide variety of systems including most unix-like and windows systems as well as real-time operating systems.
berkeley db was first developed at u.c. berkeley as part of the transition from bsd 4.3 to 4.4 and the effort to remove at&t encumbered code. in 1996 the authors of berkeley db were asked by netscape to improve and extend the library, then version 1.85, to suit their requirements for an ldap server[1] and for use in the netscape browser. that request led to the creation of sleepycat software, which was then acquired by oracle corporation in february 2006. berkeley db is redistributed under the sleepycat public license, an osi and fsf approved license. the product ships with complete source code, build tools, test suite, and documentation. the code quality and general utility along with the free software/open source license has led to its use in a multitude of free software/open source programs. those who don't wish to abide by the terms of the sleepycat public license have the option of purchasing another proprietary license for redistribution from oracle corporation. this technique is called dual licensing.
berkeley db includes compatibility interfaces for some historic unix database libraries: dbm, ndbm and hsearch.
architecture
berkeley db is notable for having a simple architecture compared with other database systems like microsoft sql server and oracle. for example, it does not provide support for network access — programs access the database using in-process api calls. it does not support sql or any other query language, nor does it support table schema or table columns. a program accessing the database is free to decide how the data is to be stored in a record. berkeley db puts no constraints on the record's data. the record and its key can both be up to four gigabytes long.
despite having a simple architecture, berkeley db supports many advanced database features such as acid transactions, fine-grained locking, an xa interface, hot backups and replication.
programs that use berkeley db
berkeley db is the underlying storage system of several ldap servers, database systems, and many other proprietary and free/open source applications. below is a list of notable programs that use berkeley db for data storage.
bogofilter—a free/open source spam filter that saves its wordlists using berkeley db.
caravel cms—a free/open source content management system originally designed for the 2,000 organizations of the mennonite church
citadel—a free/open source groupware platform that keeps all of its data stores, including the message base, in berkeley db.
jabberd2—a jabber server
kdevelop—an ide for linux and other unix-like operating systems
klibido—a free/open source newsgroup reader tailored for binary downloads
movable type (until version 4.0)—a proprietary weblog publishing system developed by california-based six apart
mysql database system—a multithreaded, multi-user, sql (structured query language) database management system (dbms) with an estimated six million installations. bdb is one of several data storage backends available for mysql; others include myisam and innodb. support for bdb is removed in version 5.1.
openldap—a free/open source implementation of the lightweight directory access protocol (ldap)
redland—a rdf application framework can use bdb for persistent storage (triplestore)
spamassassin—an anti-spam application
squidguard —a filtering proxy program. see squid cache
subversion—a version control system designed specifically to replace cvs
sun grid engine—a free/open source distributed resource management system; the most popular batch-queueing job scheduler for server farms.
licensing
versions 2.0 and higher of berkeley db are available under a dual license. versions earlier than 2.0 are available under a bsd-like license that has an unusual additional clause similar to the gnu gpl version 2's section 3.
the sleepycat public license requires that software that uses the berkeley db code be free/open source software (under an approved osi license) to allow redistribution. alternatively, if the application using the sleepycat licensed code is not redistributed (see the gpl's definition of 'redistribution') then the sleepycat license terms are not broken. if a given application is using berkeley db and redistributing it under a non-free/closed source license then the publisher of that application is in violation of the sleepycat public license and must negotiate a new license allowing those rights from the 凯发app官方网站 copyright holder (in this case oracle).
external links
oracle berkeley db site
references
阅读(3326) | 评论(0) | 转发(0) |