Solved

Corrupt Firebird Database

Posted on 2009-05-04
7
1,741 Views
Last Modified: 2013-12-09
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?
0
Comment
Question by:lagg2007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 19

Expert Comment

by:NickUpson
ID: 24302639
0
 

Author Comment

by:lagg2007
ID: 24302686
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
 
LVL 19

Expert Comment

by:NickUpson
ID: 24302710
I haven't used it myself but have heard good reports, the tool may not be able to fix your issue
0
Webinar: MariaDB® Server 10.2: The Complete Guide

Join Percona’s Chief Evangelist, Colin Charles as he presents MariaDB Server 10.2: The Complete Guide on Tuesday, June 27, 2017 at 7:00 am PDT / 10:00 am EDT (UTC-7).

 
LVL 19

Expert Comment

by:NickUpson
ID: 24302753
you need to determine "why" the corruption has occurred as well
0
 

Author Comment

by:lagg2007
ID: 24302817
How is it possible to determine the cause? I would have thought it was improper shutdown of the database server?
0
 
LVL 19

Expert Comment

by:NickUpson
ID: 24302960
run out of disk space is another, I managed to corrupt a database last week by changing the hostname while it was running
0
 
LVL 6

Accepted Solution

by:
phuocnh earned 500 total points
ID: 24391652
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

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question