O'Reilly logo

Berkeley DB by Sleepycat™ Software, Inc.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reviewing Berkeley DB Log Files

If you are running with transactions and logging, the db_printlog utility can be a useful debugging aid. The db_printlog utility will display the contents of your log files in a human readable (and machine-processable) format.

The db_printlog utility will attempt to display any and all log files present in a designated db_home directory. For each log record, db_printlog will display a line with the following form:

[22][28]db_big: rec: 43 txnid 80000963 prevlsn [21][10483281] 

The opening numbers in square brackets are the log sequence numbers (LSNs) of the log record being displayed. The first number indicates the log file in which the record appears, and the second number indicates the offset in that file of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required