dbTalk Databases Forums  

Broken database (or not?)

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Broken database (or not?) in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sven Berkvens-Matthijsse
 
Posts: n/a

Default Broken database (or not?) - 08-19-2003 , 02:33 AM






Hi there,

I've got a database that was built built by one process and is meant to
be read by another. I'm using Berkeley DB 4.1.24 (as far as I know, the
most current version). During the build, nothing strange happens. I
correctly set up an environment, open a database, write records into it,
close the database and then close the environment.

When the other process starts up and tries to open a cursor (opening the
cursor succeeds) and fetch the "largest" element in the database, I get
a "Requested page not found" error. I've tried db4_verify to verify the
integrity of the database, but db4_verify tells me that there is nothing
wrong with the database. How can this be?

I'm currently trying the dump the database using db4_dump, but that's
taking a huge amount of time (the database is quite large). I'll try
restoring the database and then try the second application again.

I'm confused as to why my application says "Requested page not found"
and why db4_verify says nothing at all...

--
With kind regards,
Sven Berkvens-Matthijsse
ilse media groep BV
sven (AT) ilse (DOT) net


Reply With Quote
  #2  
Old   
Sven Berkvens-Matthijsse
 
Posts: n/a

Default Re: Broken database (or not?) - 08-19-2003 , 02:37 AM






I wrote:

Quote:
I'm using Berkeley DB 4.1.24 (as far as I know, the most
current version).
This is not correct, I'm using Berkeley DB 4.1.25.

--
Sven



Reply With Quote
  #3  
Old   
Michael Ubell
 
Posts: n/a

Default Re: Broken database (or not?) - 08-20-2003 , 07:26 PM



Sven,

Are you creating a shared environment that is being used by both
processes? See:
http://www.sleepycat.com/docs/api_c/env_create.html
http://www.sleepycat.com/docs/api_c/env_open.html

You need to be sure you are NOT using the DB_PRIVATE flag as well.

Michael Ubell
Sleepycat Software.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.