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
2
votes
1 answer

Berkeley DB: Number of lock objects for hash access method

This page says that "for the Hash access method, you only need a single lock object". http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/lock_max.html Does this mean that all the processes/threads that access the…
user288157
  • 161
  • 1
  • 5
2
votes
1 answer

Whether memcachedb is embedded?

I read that memcachedb is using berkley db as a storing backend- REF. I read that berkley db is embedded db- REF. But I am not able to find whether memcachedb is embedded. Any reference or suggestions?
Gibbs
  • 21,904
  • 13
  • 74
  • 138
2
votes
4 answers

Insert MANY key value pairs fast into berkeley db with hash access

i'm trying to build a hash with berkeley db, which shall contain many tuples (approx 18GB of key value pairs), but in all my tests the performance of the insert operations degrades drastically over time. I've written this script to test the…
Kungi
  • 1,477
  • 1
  • 18
  • 34
2
votes
1 answer

Is it possible to access a BDB from pure Java?

I'm trying to access "cert8.db" mozilla file which is a BDB database. I know that there are bindings for languages, Java among them, but I'm trying to build a multiplatform app so I think that using JNI such as this one would be a problem. Thanks in…
cort
  • 1,088
  • 1
  • 11
  • 20
2
votes
2 answers

Inserting records into Berkeley DB with Java

I can't seem to find sample code for constructing a Berkeley DB in Java and inserting records into it. Any samples? And I do not mean the Berkeley DB Java Edition either.
mrbombastic
  • 23
  • 1
  • 1
  • 3
2
votes
2 answers

berkeley DB: can't compile c++ codes

When I compiled the sample codes of C++, I got following info: c++ excxx_example_database_read.cpp -o dbApp -I /usr/local/BerkeleyDB.5.0/include/ Undefined symbols: "Dbt::Dbt(void*, unsigned int)", referenced from: show_vendor(MyDb&, char…
Brian
  • 735
  • 1
  • 8
  • 14
2
votes
0 answers

Berkeley DB: What am I doing wrong here?

I wrote a small program to explore using Berkeley DB with C#. using System; using System.Collections.Generic; using System.IO; using System.Text; using BerkeleyDB; namespace bdbtest { class Program { const string dbfile =…
Ferruccio
  • 98,941
  • 38
  • 226
  • 299
2
votes
1 answer

checking for DB4 major version... configure: error: Header contains different version

I've been trying to cmpile PHP with following ./configure [./configure] `CC="gcc -m64" ./configure \ --prefix=/opt/php-5.3.14 \ --with-apxs2=/opt/apache-httpd-2.2.22/bin/apxs \ --enable-mbstring \ --enable-intl \ --libdir=/usr/lib \ …
user1345414
  • 3,745
  • 9
  • 36
  • 56
2
votes
1 answer

Cleanup Berkeley DB log files

I'm running a nightly script that executes db_hotbackup on multiple Berkeley environments but in addition to that I need to be able to cleanup the log files in the source dir. I am aware of db_archive but that seems to only work if the Berkeley…
kendotwill
  • 1,892
  • 18
  • 17
2
votes
0 answers

Compiling Berkeley DB with --enable-java and jvm 1.8.0

For everyone’s information, I was getting compile errors when trying to compile the latest Berkeley DB (--enable-java was an option) with the latest jdk from oracle (JDK 1.8.0) and I was getting deprecation errors from "make". I switched the jdk to…
2
votes
0 answers

Berkeley Database Java set sort directory

How could I set the sort directory in Berkeley? I am using Berkeley Java (je-5.0.58.jar) to store my data, and got exception sort: write failed: /tmp/sort7LMPoZ: No space left on device By looking at the manual, the records are sorted first by…
user200340
  • 3,301
  • 13
  • 52
  • 74
2
votes
1 answer

Passing tied hashes using BerkelyDB to subroutines

I'm trying to pass a tied hash using BerkeleyDB to a subroutine and modifying the contents of the database in the routine, but it's not working. #!/usr/bin/perl use warnings; use strict; use BerkeleyDB; sub testdb($) { my $dbptr = shift; …
2
votes
1 answer

BDB LongBinding vs ByteArrayBinding static methods

In the LongBinding class, the methods entryToLong(DatabaseEntry entry) and longToEntry(long val, DatabaseEntry entry) are both static. But in the ByteArrayBinding class, entryToObject(DatabaseEntry entry) and objectToEntry(byte[] object,…
apolune
  • 447
  • 2
  • 8
2
votes
1 answer

bsddb3-6.0.1 Windows7 bulid error: _bsddb.obj : error LNK2019: unresolved external symbol db_create referenced in function newDBObject

building bsddb3-6.0.1, Python 3.3.2, BerkeleyDB 5.3, Windows7. First linker asked for libdb53s.lib, but there's no such file, so I deleted 's' symbol (in setup3.py) and now linker can find libdb53.lib, but... _bsddb.obj : error LNK2019: unresolved…
sydcoder
  • 31
  • 4
2
votes
0 answers

java BerkeleyDB remove couple of records

How can I remove couple of records in one transaction? Configs: EnvironmentConfig myEnvConfig = new EnvironmentConfig(); StoreConfig storeConfig = new StoreConfig(); myEnvConfig.setReadOnly(readOnly); storeConfig.setReadOnly(readOnly); // If the…
Veniamin
  • 466
  • 6
  • 18