Berkeley DB

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.

Berkeley DB

Postby aesthete » Tue Nov 02, 2004 8:48 pm

Anyone out there who has used Berkeley DB on Fedora Core 2? Actually I am trying some open source development and for that I need to use Berkeley DB but I am getting stuck at various issues. Just wondering if someone out there has already gone through what I am going through, he/she might be able to help.
aesthete
Cadet
 
Posts: 4
Joined: Tue Nov 02, 2004 8:39 pm

Re: Berkeley DB

Postby lambda » Wed Nov 03, 2004 4:09 pm

what problems are you running into?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby aesthete » Wed Nov 03, 2004 6:08 pm

Here is what I have already done. I have installed the DB after building it and also ran the service. I wrote a small program in C++ to test connectivity with the DB and apparently I got connected properly. Now I have the source code of TPC-B benchmark with me, I need to run the benchmark on the DB to test. How do I do that? I am stuck.

Also I need to be absolutely certain that I have the DB up and running with me. How do I make sure of that? I mean is there any indication of any sort that the DB is actually active and I can make transaction on it?
aesthete
Cadet
 
Posts: 4
Joined: Tue Nov 02, 2004 8:39 pm

Postby lambda » Thu Nov 04, 2004 5:56 pm

the berkeley db (the one from http://www.sleepycat.com/) isn't a "server" that you install. it's just an on-disk database; you get a library of functions to manipulate it. are you sure you're talking about the same db?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby aesthete » Thu Nov 04, 2004 7:46 pm

:oops:
I am very new to Berkeley (as well as Linux for that matter) and I was thinking along the lines of the way maybe SQL Server works. I guess this is different. I think I get an idea of exactly how the DB works from the way you described it. It also answers a lot of things that have been confusing me :)
Thanks a lot Lambda ... I owe you one!!!
aesthete
Cadet
 
Posts: 4
Joined: Tue Nov 02, 2004 8:39 pm

Postby lambda » Wed Nov 10, 2004 7:33 pm

if you want a relational database, i recommend postgresql. it probably ships with your distribution.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby fawad » Wed Nov 10, 2004 8:39 pm

Or if you want a non-server relational database, try SQLLite. I haven't used it myself but a lot of people swear by it (and I think it ships with PHP 5).
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL

Postby aesthete » Wed Nov 10, 2004 8:47 pm

Thanks a lot both of you Lambda and Fawad !!!
aesthete
Cadet
 
Posts: 4
Joined: Tue Nov 02, 2004 8:39 pm

Postby zaeemarshad » Wed Nov 10, 2004 10:17 pm

may i suggest mysql ... its easy and very reliable. sqllite hmm!!

regards
zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad


Return to “%s” Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron