Questions tagged [berkeley-db]

Berkeley DB is part of the Oracle Berkeley DB family of products. It is a C library that links into your application, enabling SQL, key-value pair (NoSQL) and Java object data persistence. It provides C, C++, C# and Java APIs and support for many scripting languages. It's designed to be small, highly performant, reliable, available and scalable.

You can find more information about Berkeley DB in the following locations:

Product Homepage: General Product Info and Berkeley DB Product Info

Downloads

FAQ

Documentation

Primary technical discussion forums for Berkeley DB in general and specifically for Berkeley DB High Availability

493 questions
3
votes
1 answer

What is the Berkeley DB Magic Number?

What is the magic number for a Berkeley DB v9 Btree with a native byte order? Is there any specific length on magic numbers or any easy way to identify them?
Scoopta
  • 987
  • 1
  • 9
  • 22
3
votes
2 answers

Does anyone have any experience using berkeley db with PHP?

I have to access and write to some berkeley db files that other applications share. I really haven't found anything out there about using this with PHP. It really doesn't seem very popular. Does anyone have any links or resources that I might be…
Justin
  • 4,203
  • 7
  • 41
  • 58
3
votes
1 answer

How to create Berkeley database using .Net?

I'm using the following code to create a Berkeley DB but I'm receiving an error on the last line: The type initializer for 'BerkeleyDB.Internal.libdb_csharpPINVOKE' threw an exception. Code: Dim DB As DatabaseEnvironment Dim Config As…
3
votes
2 answers

Subversion repository type

How can I tell if a respository uses BerkeleyDB or FSFS?
hs.
  • 31
  • 1
3
votes
1 answer

Why Cursor retrieval from My BerkerleyDB HashDatabase is not in ascennding order

I am using BerkerlyDB with c# on windows. I have a HashDatabase routine which adds 1 byte key and 1 byte data pairs using db.Put. The problem is when i use cursor.movenext() they dont come out in ascending order. env = OpenEnv(); …
3
votes
1 answer

Berkeley DB primary key sequence jumping 100 after app restart

(I already saw this problem somewhere online but a search query that depends on "100" as search term apparently isn't a promising one - so forgive me if this question has already been asked) I've just started playing with berkeley DB in Java using…
wullxz
  • 17,830
  • 8
  • 32
  • 51
3
votes
1 answer

Why does my Berkeley DB concurrent data store application hang?

My application hangs when trying to open a concurrent data store (CDB) database for reading: #0 0x0000003ad860b309 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007ffff7ce67de in __db_pthread_mutex_lock (env=0x610960,…
Steve Emmerson
  • 7,702
  • 5
  • 33
  • 59
3
votes
1 answer

Working with Berkeley DB( bsddb module ), Python

I'm using python 2.7.3 and and Berkeley DB to store data. I didn't find much information about that module, only in python docks. I saw there some function described, but I didn't see instruction on how to delete a record from database. Help please,…
user3370524
  • 33
  • 1
  • 3
3
votes
2 answers

Perl: Trouble storing a huge hash on disk?

I am working on a Perl project that involves building a hash with about 17 million keys. This is too big to be stored in memory (my laptop's memory will only hold about 10 million keys). I know that the solution is to store the data on disk, but…
dannyhmg
  • 135
  • 8
3
votes
4 answers

C++: casting to void* and back

* ---Edit - now the whole sourse* When I debug it on the end, "get" and "value" have different values! Probably, I convert to void* and back to User the wrong way? #include #include struct User{ User(){} int name; int…
Ben Usman
  • 7,969
  • 6
  • 46
  • 66
3
votes
0 answers

How to set up replication in BerkeleyDB

I've been struggling for some time now on setting up a "simple" BerkeleyDB replication using the db_replicate utility. However no luck in making it actually work, and I'm not finding any concrete example on how thing should be set up. Here is the…
Romuald Brunet
  • 5,595
  • 4
  • 38
  • 34
3
votes
0 answers

Berkeley DB fails on iPhone in DbEnv::open(char const*, unsigned int, int)

I'm trying to use Berkeley DB for a Bitcon project. On simulator the project works perfectly. On the device, it fails in DbEnv::open(char const*, unsigned int, int), with this message: ************************ EXCEPTION: 11DbException …
mxg
  • 20,946
  • 12
  • 59
  • 80
3
votes
1 answer

Berkeley DB mismatch error while configuring LDAP

I'm configuring OPENLDAP 2.4.35. on Redhat Linux, I have already installed Berkley DB 4.8.30 as a prerequisite. I also checked the version compatibility from OPENLDAP's README file, which says: SLAPD: BDB and HDB backends require Oracle…
dig_123
  • 2,240
  • 6
  • 35
  • 59
3
votes
1 answer

How atomic is the Berkeley DB usage?

I am writing a simple app with 24 items in a hash to be persistent across program executions, so Berkeley DB (DBM) should be well suited for this task. And it is just for fun. But I wonder if using it (with Ruby), then when the user presses CTRL-C,…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
3
votes
1 answer

Python Legacy Berkeley Database

I am using a program written in Python which was last updated in 2003. I've got everything working now except for one import: from BDBStorage.BerkeleyBase import BerkeleyConfig This looks like an a very old version of the berkeley database module…
TDN169
  • 1,397
  • 2
  • 13
  • 31