Corrupt Firebird Database

Im in a bit of a pickle. My client has not be running his backups and called me today with an error on his software. On closer inspection ive found that the database is corrupt. Its a firebird database. Gfix cant repair it. The erro message I get is "database file appears corrupt ()
-bad checksum
-checksum error on database page 2

Does anyone know of a soluion for the error? any software package to repair?
lagg2007Asked:
Who is Participating?
 
Nguyen Huu PhuocConnect With a Mentor Senior ManagerCommented:
Try follow the following procedure:
1) Copy your database to backup :)
2)gfix -v -full yourdb
(I suppose that you have set ISC_USER and ISC_PASSWORD environment variable, your firbird bin in the PATH environment variable)
3) gfix -mend yourdb
4) gfix -mode readonly yourdb
5) gbak -b -v -g yourdb yourdb.gbk
6) gbak -c -v yourdb.gbk yourdb1
7)gfix -mode read_write yourdb1.
Goodluck to you!
0
 
Nick UpsonPrincipal Operations EngineerCommented:
0
 
lagg2007Author Commented:
Thank you for your help. I had found this tool not long before I got your message. Would you recommend? We have got a quote fom an ibexpert for a repair, but we have a lot of these databases out and if this package were to sort out the issue it would make more sense financially.
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
Nick UpsonPrincipal Operations EngineerCommented:
I haven't used it myself but have heard good reports, the tool may not be able to fix your issue
0
 
Nick UpsonPrincipal Operations EngineerCommented:
you need to determine "why" the corruption has occurred as well
0
 
lagg2007Author Commented:
How is it possible to determine the cause? I would have thought it was improper shutdown of the database server?
0
 
Nick UpsonPrincipal Operations EngineerCommented:
run out of disk space is another, I managed to corrupt a database last week by changing the hostname while it was running
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.