Reading Berkely DB

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ray Van Dolson
Date:  
Subject: Reading Berkely DB
Yeah, I'm guessing your Berkeley DB is in hash format (there's also rn and
bt it looks like). If you want, the following Python script should print
out the contents of a hash DB...

http://www.bludgeon.org/~rayvd/printdb.py

Just give the database filename location as the only argument.

> On Oct 14, 9:54am, Sundar wrote:
>
>> Is there any program that could dump what's in the Berkeley DB to
>> text file or display it in human readable form?
>
> As I recall, Berkeley DB provides facilities to look up some arbitrarily
> formatted data given an arbitrarily formatted key. The structure of the
> key and its associated data are determined by the program making use of
> the Berkeley DB library.
>
> So... a program that does what you want would have to know the format of
> the keys and data. That said, there are some programs that have been
> written for certain applications of Berkeley DB that will do what you
> want, but only for those applications. E.g, the ``makemap'' program is
> used to create sendmail databases in Berkeley DB format. The -u option
> may be used to print the contents of these databases in human readable
> form.
>
> Kevin
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss