Share to: share facebook share twitter share wa share telegram print page

Berkeley DB

Berkeley DB
Original author(s)Margo Seltzer and Keith Bostic of Sleepycat Software
Developer(s)Sleepycat Software, later Oracle Corporation
Initial release1994; 30 years ago (1994)
Stable release
18.1.40 [1] / May 29, 2020;
4 years ago
 (2020-05-29)
Written inC
Operating systemWindows, Unix-like
Size~1244 kB compiled on Windows x86
TypeEmbedded database, NoSQL Database
LicenseDual licensed (GNU Affero General Public License and proprietary license
Websitewww.oracle.com/database/technologies/related/berkeleydb.html

Berkeley DB (BDB) is an embedded database software library for key/value data, historically significant in open-source software. Berkeley DB is written in C with API bindings for many other programming languages. BDB stores arbitrary key/data pairs as byte arrays and supports multiple data items for a single key. Berkeley DB is not a relational database,[2] although it has database features including database transactions, multiversion concurrency control and write-ahead logging. BDB runs on a wide variety of operating systems, including most Unix-like and Windows systems, and real-time operating systems.

BDB was commercially supported and developed by Sleepycat Software from 1996 to 2006. Sleepycat Software was acquired by Oracle Corporation in February 2006, who continued to develop and sell the C Berkeley DB library. In 2013 Oracle re-licensed BDB under the AGPL license[3][4] and released new versions until May 2020. Bloomberg L.P. continues to develop a fork of the 2013 version of BDB within their Comdb2 database, under the original Sleepycat permissive license.

Origin

Berkeley DB originated at the University of California, Berkeley as part of BSD, Berkeley's version of the Unix operating system. After 4.3BSD (1986), the BSD developers attempted to remove or replace all code originating in the original AT&T Unix from which BSD was derived. In doing so, they needed to rewrite the Unix database package.[5] Seltzer and Yigit[6] created a new database, unencumbered by any AT&T patents: an on-disk hash table that outperformed the existing dbm libraries. Berkeley DB itself was first released in 1991 and later included with 4.4BSD.[5] In 1996 Netscape requested that the authors of Berkeley DB improve and extend the library, then at version 1.86, to suit Netscape's requirements for an LDAP server[7] and for use in the Netscape browser. That request led to the creation of Sleepycat Software. This company was acquired by Oracle Corporation in February 2006.

Berkeley DB 1.x releases focused on managing key/value data storage and are referred to as "Data Store" (DS). The 2.x releases added a locking system enabling concurrent access to data. This is what is known as "Concurrent Data Store" (CDS). The 3.x releases added a logging system for transactions and recovery, called "Transactional Data Store" (TDS). The 4.x releases added the ability to replicate log records and create a distributed highly available single-master multi-replica database. This is called the "High Availability" (HA) feature set. Berkeley DB's evolution has sometimes led to minor API changes or log format changes, but very rarely have database formats changed. Berkeley DB HA supports online upgrades from one version to the next by maintaining the ability to read and apply the prior release's log records.

Starting with the 6.0.21 (Oracle 12c) release, all Berkeley DB products are licensed under the GNU AGPL.[8][9] Previously, Berkeley DB was redistributed under the 4-clause BSD license (before version 2.0), and the Sleepycat Public License, which is an OSI-approved open-source license as well as an FSF-approved free software license.[10][11] The product ships with complete source code, build script, test suite, and documentation. The comprehensive feature along with the licensing terms have led to its use in a multitude of free and open-source software. Those who do not wish to abide by the terms of the GNU AGPL, or use an older version with 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 (a System V and POSIX library for creating in-memory hash tables).[12]

Architecture

Berkeley DB has an architecture notably simpler than relational database management systems. Like SQLite and LMDB, it is not based on a server/client model, and does not provide support for network access – programs access the database using in-process API calls. Oracle added support for SQL in 11g R2 release based on the popular SQLite API by including a version of SQLite in Berkeley DB (it uses Berkeley DB for storage).[13]

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.

Berkeley DB supports database features such as ACID transactions, fine-grained locking, hot backups and replication.

Oracle Corporation use of name "Berkeley DB"

The name "Berkeley DB" is used by Oracle Corporation for three different products, only one of which is BDB:[14]

  1. Berkeley DB, the C database library that is the subject of this article
  2. Berkeley DB Java Edition,[15] a pure Java library whose design is modelled after the C library but is otherwise unrelated
  3. Berkeley DB XML,[16] a C++ program that supports XQuery, and which includes a legacy version of the C database library

Open-source programs still using Berkeley DB

BDB was once very widespread, but usage dropped steeply from 2013 (see licensing section). Notable software that still uses Berkeley DB for data storage include:

Open-source operating systems and languages such as Perl and Python still support old BerkelyDB interfaces. The FreeBSD and OpenBSD operating systems ship Berkeley DB 1.8x to support the dbopen()[18][19] operating system call used by password programs such as pwb_mkdb.[20] Linux operating systems, including those based on Debian,[21] and Fedora[22] ship Berkeley DB 5.3 libraries.

Licensing

Berkeley DB V2.0 and higher is available under a dual license:

  1. Oracle commercial license [23]
  2. The GNU AGPL v3.[24]

Switching the open source license in 2013 from the Sleepycat license to the AGPL had a major effect on open source software. Since BDB is a library, any application linking to it must be under an AGPL-compatible license. Many open source applications and all closed source applications would need to be relicensed to become AGPL-compatible, which was not acceptable to many developers and open source operating systems. By 2013 there were many alternatives to BDB, and Debian Linux was typical in their decision to completely phase out Berkeley DB, with a preference for the Lightning Memory-Mapped Database (LMDB).[25]

References

  1. ^ "Oracle Berkeley DB Downloads". Retrieved 27 September 2020.
  2. ^ Berkeley DB Reference Guide: What is Berkeley DB not?. Doc.gnu-darwin.org (2001-05-31). Retrieved on 2013-09-18.
  3. ^ "Major Release: Berkeley DB 12gR1 (12.1.6.0)". Open Source Projects at Oracle. 2013-06-10. Archived from the original on 2013-12-05. Retrieved 2021-04-11.
  4. ^ Nathan, Willis (2013-07-10). "Debian, Berkeley DB, and AGPLv3". Linux Weekly News. Archived from the original on 2013-07-22.
  5. ^ a b Olson, Michael A.; Bostic, Keith; Seltzer, Margo (1999). "Berkeley DB" (PDF). Proc. FREENIX Track, USENIX Annual Tech. Conf. Archived (PDF) from the original on 2022-10-09. Retrieved October 20, 2009.
  6. ^ Seltzer, Margo; Yigit, Ozan (1991). "A New Hashing Package for UNIX". Proc. USENIX Winter Tech. Conf. Retrieved October 20, 2009.
  7. ^ Brunelli, Mark (March 28, 2005). "A Berkeley DB primer". Enterprise Linux News. Archived from the original on September 6, 2008. Retrieved December 28, 2008.
  8. ^ [Berkeley DB Announce] Major Release: Berkeley DB 12gR1 (12.1.6.0). Retrieved July 5, 2013. (Despite AGPL mentions there, the source archive still declares BSD-4-Clause terms in 6.0.19.)
  9. ^ "Snapshot of the 6.0.19 source at the time". 13 June 2013.
  10. ^ "The Sleepycat License". Open Source Initiative. October 31, 2006. Retrieved December 28, 2008.
  11. ^ "Licenses". Free Software Foundation. December 10, 2008. Archived from the original on December 16, 2008. Retrieved December 28, 2008.
  12. ^ "Compatibility with historic UNIX interfaces". docs.oracle.com. Retrieved 2019-11-20.
  13. ^ "Twitter / Gregory Burd: @humanications We didn't r ..."
  14. ^ "Oracle Berkeley DB Downloads: Latest Production Releases".
  15. ^ "Oracle Berkeley DB Java Edition". Archived from the original on 2017-07-11.
  16. ^ "Berkeley DB XML". Archived from the original on 2016-07-18.
  17. ^ "bogofilter -- Fast Bayesian Spam Filter Code (Git)". sourceforge.net. Retrieved 2024-05-17.
  18. ^ "dbopen(3)". FreeBSD Manual Pages. Retrieved 2023-04-18.
  19. ^ "OpenBSD manual pages". dbopen(3). Retrieved 2023-04-18.
  20. ^ "pwd_mkdb(8)". OpenBSD manual pages. Retrieved 2023-04-18.
  21. ^ Webmaster, Debian. "Debian -- Details of package libdb5.3 in sid". Debian -- Packages. Retrieved 2023-04-18.
  22. ^ "Overview - rpms/libdb". src.fedoraproject.org. Retrieved 2023-04-18.
  23. ^ "Download, license and sales information". Nov 30, 2017.
  24. ^ "Major Release: Berkeley DB 12gR1 (12.1.6.0)". June 10, 2013. Retrieved July 15, 2013.
  25. ^ Ondřej Surý (June 19, 2014). "New project goal: Get rid of Berkeley DB (post jessie)". debian-devel (Mailing list). Debian.

Read other articles:

Neha HingeLahir30 April 1986 (umur 37)[1][2]Dewas, Madhya Pradesh, IndiaTempat tinggalPune, IndiaAlmamaterSarjana Teknik dari Dr. D.Y. Patil College of Engineering, PunePekerjaanAktris, ModelTinggi1.702 cm (55 ft 10 in)Pemenang kontes kecantikanGelarFemina Miss India InternationalWarna rambutHitamWarna mataHitamKompetisiutamaFemina Miss IndiaMiss International 2010 Situs webhttp://www.nehahinge.com/ Neha Hinge adalah seorang model dan aktris asal India. Dia...

Haval H2 Datos generalesFabricante Great Wall MotorsProducción 2014-2021 (etiqueta roja)2016-2021 (etiqueta azul)ConfiguraciónTipo Crossover subcompactoSegmento BCarrocerías Familiar de 5 puertasConfiguración Motor delantero, tracción delantera o tracción en las cuatro ruedasDimensionesLongitud 4.335 mm (170,7 in)Anchura 1.814 mm (71,4 in)Altura 1.695 mm (66,7 in)Distancia entre ejes 2.560 mm (100,8 in)Planta motrizMotor 1,5 L GW4G15B I4 (gasolina)Otros modelosSucesor Haval ChituHaval J...

Перестріч лісовий Біологічна класифікація Царство: Рослини (Plantae) Клада: Судинні рослини (Tracheophyta) Клада: Покритонасінні (Angiosperms) Клада: Евдикоти (Eudicots) Клада: Айстериди (Asterids) Порядок: Губоцвіті (Lamiales) Родина: Вовчкові (Orobanchaceae) Рід: Перестріч (Melampyrum) Вид: Перестріч лісовий (M....

В Википедии есть статьи о других людях с такой фамилией, см. Малыгин; Малыгин, Григорий Алексеевич. Григорий Малыгин Имя при рождении Григорий Алексеевич Малыгин Дата рождения 24 июня 1970(1970-06-24) Место рождения Северск, Томская область, РСФСР, СССР Дата смерти 21 сентя...

Venezuelan baseball player Not to be confused with Tomás Pérez Guerra or Tomás Pérez Serra. In this Spanish name, the first or paternal surname is Pérez and the second or maternal family name is Sosa. Baseball player Tomás PérezPérez with the Braves in 2022Atlanta Braves – No. 98InfielderBorn: (1973-12-29) December 29, 1973 (age 49)Barquisimeto, Lara State, VenezuelaBatted: SwitchThrew: RightMLB debutMay 3, 1995, for the Toronto Blue JaysLast MLB appearan...

American suffragist, writer, journalist, pioneer (1834–1915) Abigail Scott DuniwayDuniway registering to vote, 14 February 1913, with Multnomah County Clerk John B. CoffeyBornAbigail Jane Scott(1834-10-22)October 22, 1834farm near Groveland, Illinois, U.S.DiedOctober 11, 1915(1915-10-11) (aged 80)Portland, Oregon, U.S.Resting placeRiver View Cemetery in Portland45°27′29″N 122°40′01″W / 45.45806°N 122.66694°W / 45.45806; -122.66694[1]Known...

Manifestation de travailleurs à Dublin contre la réponse du gouvernement irlandais à la crise financière (2009). La crise financière irlandaise de 2008-2011, qui a émergé avec la crise financière mondiale de 2007-2008, est une crise politique et économique majeure dans l’histoire de l’Irlande, et qui est en partie responsable de la récession subie par le pays pour la première fois depuis les années 1980. Le gouvernement irlandais a officiellement annoncé l’entrée du pays d...

Tabletop horror role-playing game supplement Cthulhu ClassicsA Full Length Campaign & Five Thrilling AdventuresCover by Lee GibbonsDesignersSandy PetersenScott David AniolowskiJohn CarnahanScott CleggEd GoreDavid A. HargraveMarc HutchisonDoug LyonsRandy McCallMark PettigrewMichael SzymanskiPublishersChaosiumPublication1989;34 years ago (1989)GenresHorrorSystemsBasic Role-PlayingISBN978-0933635616 Cthulhu Classics is an anthology of adventures published by Chaosium in 1989 fo...

The topic of this article may not meet Wikipedia's notability guidelines for companies and organizations. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.Find sources: Dubbing Brothers – news · newspapers · books · scholar&#...

Football stadium in Barcelona, Spain This article is about the stadium of FC Barcelona. For the stadium of AFC Ajax, see Johan Cruyff Arena. Johan Cruyff StadiumUEFA Full nameEstadi Johan CruyffLocationSant Joan Despí, Barcelona, SpainCoordinates41°22′27″N 02°03′02″E / 41.37417°N 2.05056°E / 41.37417; 2.05056OwnerFC BarcelonaOperatorFC BarcelonaCapacity6,000Record attendance5,569 (Barcelona Femení v Real Madrid Femenino; 25 March 2023)Field size105m ...

2019 science fiction novel by Tade Thompson The Rosewater Redemption AuthorTade ThompsonCountryUnited KingdomLanguageEnglishSeriesThe Wormwood TrilogyGenreScience fiction; AfricanfuturismSet inNigeria, 2060sPublished15 Oct 2019PublisherOrbit BooksPages419 (hardcover)ISBN978-0-316-44909-0Preceded byThe Rosewater Insurrection  The Rosewater Redemption is a 2019 science fiction novel by Tade Thompson. It is the final book in the Wormwood trilogy, preceded by Rosewater (2016) and T...

كوبا بيرو 2019 البلد بيرو  الرياضه كورة قدم  تاريخ 2019  تعديل  كوبا بيرو 2019 (بالانجليزى: 2019 Copa Perú) هوا موسم رياضى فى كورة قدم اتعمل فى بيرو سنة 2019. معلومات الموسم كوبا بيرو 2019 من كوبا بيرو. لينكات المقال ده مالوش وصلات على ويكيداتا دلوقتى مصادر كوبا بيرو 2019 على مواقع الت...

Native chieftain of Lijiang Mu ZengNative chieftain of LijiangMagistrate of LijiangNative chieftain of LijiangReign1600 – 1624PredecessorMu QingSuccessorMu YiBorn(1587-09-19)September 19, 1587LijiangDiedSeptember 9, 1646(1646-09-09) (aged 58)LijiangNamesMu Zeng (木增, Chinese name)A-chai A-ssu (Nakhi name)Regnal nameMagistrate of Lijiang (麗江知府) Mu Zeng (Chinese: 木增, September 19, 1587 – September 9, 1646), also known as A-chai A-ssu in Nakhi, was the native chie...

2011 studio album by Nico Touches the WallsPassengerStudio album by Nico Touches the WallsReleasedApril 6, 2011 (2011-04-06)Recorded2010-2011GenreAlternative rock, power popLabelKi/oon RecordsProducerNico Touches the Walls Seiji KamedaHajime OkanoNico Touches the Walls chronology Aurora(2009) Passenger(2011) Humania(2011) Singles from Passenger Sudden Death GameReleased: August 11, 2010 DiverReleased: January 12, 2011 Passenger is the third full-length album released by...

Amusement park in Saco, Maine Funtown Splashtown USAPreviously known as Marvel Drive-In  (1960‑67) Funtown USA  (1967‑82) Cascade Water and Amusements  (1982‑96) Funtown as viewed from above US Route 1LocationSaco, Maine, U.S.Coordinates43°31′38″N 70°25′40″W / 43.52725°N 70.42764°W / 43.52725; -70.42764Opened1960OwnerViolet CormierSloganWhere the Great American Family Comes to Play; Create memories that will last a lifeti...

Somali politician (born 1951) Sheikh Ahmed Mohamed Islaam Madobeالشيخ أحمد محمد إسلامPresident of JubalandIn office15 May 2013 – 23 August 2023Preceded byMohamed Abdi Mohamed (as President of Azania)Founder of Raskamboni MovementIncumbentAssumed office 2013 Personal detailsBorn1951 (age 71–72)[citation needed]Kebri Dahar, Somali Region Sheikh Ahmed Mohamed Islaam Madobe (Somali: Sheekh Axmed Maxamed Madoobe) is a Somali politician who served...

2014 Canadian crime thriller film The CallingTheatrical release posterDirected byJason StoneScreenplay byScott AbramovitchBased onThe Callingby Inger Ash WolfeStarring Susan Sarandon Gil Bellows Ellen Burstyn Topher Grace Donald Sutherland Christopher Heyerdahl CinematographyDavid Robert JonesEdited byAaron MarshallMusic byGrayson MatthewsDistributed byEntertainment One FilmsRelease dates August 5, 2014 (2014-08-05) (U.S., online) August 29, 2014 (2014-08-29)...

World Wrestling Federation pay-per-view event King of the RingPromotional posterPromotionWorld Wrestling FederationDateJune 25, 1995[1]CityPhiladelphia, Pennsylvania[1]VenueCoreStates Spectrum[1]Attendance16,590[1]Buy rate150,000[2]Tagline(s)Guts & GloryPay-per-view chronology ← PreviousIn Your House 1 Next →In Your House 2 King of the Ring event chronology ← Previous1994 Next →1996 King of the Ring tournament chronology ...

World production This is a list of countries by platinum production. It is based on information from the United States Geological Survey.[1] Rank Country/Region Platinum production (kilograms) Year  World 180,000 2019 1 South Africa 130,000 2019 2 Russia 22,000 2019 3 Zimbabwe 15,000 2019 4 Canada 7,400 2019 5 United States 3,600 2019 6  China 2,500 2017 7 Japan 1,747 2017 8 Finland 1,418 2017 9 Colombia 566 2017 10 Australia 170 2017 11 Poland 97 2017 12 Ethiopia 5 2017 13 ...

Swedish guitarist and record producer Andy LaRocqueLaRocque in 2013Background informationBirth nameAnders AllhageBorn (1962-11-29) 29 November 1962 (age 61)Gothenburg, SwedenGenresHeavy metal, death metal, thrash metal, melodic death metal, black metal, neoclassical metalOccupation(s)Musician, record producer, songwriterInstrument(s)Guitar, keyboardsMember ofKing DiamondMusical artist Andy LaRocque (born Anders Allhage, 29 November 1962) is a Swedish guitarist, songwriter and record prod...

Kembali kehalaman sebelumnya