dbTalk Databases Forums  

Can't read log

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


Discuss Can't read log in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
carpe_diem
 
Posts: n/a

Default Can't read log - 02-09-2005 , 05:08 PM






Hello, how are you guys doing? I realize that I cannot read log via
"db_printlog" anymore. It gives me the following errors:

[savior@jasmine test_env]$ ls
btestdb.db __db.001 __db.002 __db.003 __db.004 __db.005
log.0000000001
[savior@jasmine test_env]$ db_printlog
db_printlog: Program version 4.2 doesn't match environment version
db_printlog: Ignoring log file: log.0000000001: unsupported log version
10
db_printlog: Invalid log file: log.0000000001: Invalid argument
db_printlog: PANIC: Invalid argument
db_printlog: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
db_printlog: Program version 4.2 doesn't match environment version
db_printlog: open: DB_RUNRECOVERY: Fatal error, run database recovery

I am using Unix Fedora Core 2 and BDB's java version. Last time it
happened I simply removed the cache files and do db_printlog again but
this time it no longer works. I am in crisis here..please advise.

Really appreciate it.


Reply With Quote
  #2  
Old   
bostic@sleepycat.com
 
Posts: n/a

Default Re: Can't read log - 02-10-2005 , 08:33 AM







carpe_diem wrote:
Quote:
[savior@jasmine test_env]$ db_printlog
db_printlog: Program version 4.2 doesn't match environment version
db_printlog: Ignoring log file: log.0000000001: unsupported log
version 10

My guess would be you're running the db_printlog utility
distributed by the software vendor, not the that one you
built as part of your local Berkeley DB installation.

Regards,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic bostic (AT) sleepycat (DOT) com
Sleepycat Software Inc. keithbosticim (Yahoo)
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com



Reply With Quote
  #3  
Old   
carpe_diem
 
Posts: n/a

Default Re: Can't read log - 02-10-2005 , 02:17 PM



Wow, you hit the nail right on the head. I can finally view log now.
Once problem, I built the java library with --enable-debug_rop so that
it should output log record for read operations. However there's still
NO log entry fo read. I got the same log when I have no read operations
and when I have several read operations. Write operations generate log
records, so it's good.

I really need to know when read operations occur. Plz help me out.

Really appreciate it.




bostic (AT) sleepycat (DOT) com wrote:
Quote:
carpe_diem wrote:
[savior@jasmine test_env]$ db_printlog
db_printlog: Program version 4.2 doesn't match environment version
db_printlog: Ignoring log file: log.0000000001: unsupported log
version 10

My guess would be you're running the db_printlog utility
distributed by the software vendor, not the that one you
built as part of your local Berkeley DB installation.

Regards,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic bostic (AT) sleepycat (DOT) com
Sleepycat Software Inc. keithbosticim (Yahoo)
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com


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 - 2013, Jelsoft Enterprises Ltd.