Dumping a database in Hex!

View: New views
3 Messages — Rating Filter:   Alert me  

Dumping a database in Hex!

by Norman Dunbar-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, I know the subject is a bit weird, but I do have a purpose.

At the moment I'm using hexdump (on Linux) to dump some database pages
and decoding the hex values and offsets into page descriptions. It's
hard work and I discovered a utility in the source code -
<blah>/jrd/dmp.cpp which looks remarkably like it could help me in my
task.

I cannot find a 'main' function nor any instructions on building this
potentially useful utility. Does anyone have any clues please? I'd much
rather use a prewritten and probably bug free utility than write my own
- at present.

Ann has informed me, on the support list, that it is used by the server
itself when running in debug mode so it may not be suitable as a
standalone tool, however, as she hasn't done development work for three
years or so, she's not 100% sure and suggested I ask here.

Thanks.


Cheers,
Norman.

Norman Dunbar
Dunbar IT Consultants Ltd

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: Dumping a database in Hex!

by Ann W. Harrison :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Norman,

    What I would suggest is that you call the dmp code from
cch.cpp - probably in CCH_checksum.  Check for the checks for
the page number or page type you want to dump.  Start the
server in a debugger and the pages appear, somewhat formatted.


Cheers,

Ann

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel

Re: Dumping a database in Hex!

by Norman Dunbar-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Evening Ann,

>     What I would suggest is that you call the dmp code from
> cch.cpp - probably in CCH_checksum.
I had a look there today, thanks. It's probably the best place to call
the dump routines.

Unfortunately I have never built Firebird from source and I've certainly
never run it under a debugger. I feel a whole new "life" coming on! ;-)

I was rather hoping for a stand alone utility, but If I have to go down
the route of running Firebird under a debugger, I better start learning!

Cheers,
Norman.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel