Subject | Re: [firebird-support] Fixing Database |
---|---|
Author | Ann W. Harrison |
Post date | 2005-03-11T20:47:35Z |
salisburyproject wrote:
often occurs when a database is shutdown hard - something like pulling
the plug on the machine - with forced writes turned off on a windows
system. Windows does not write pages in cache until the file is closed,
by default, so lots of stuff doesn't ever get to disk. Firebird (and
InterBase) haven't actually checksummed pages in 10 years or more, but
write 12345 in the page header where the checksum used to go. That
detects only the grossest of errors - like reading a page that was never
written.
missing pages to make the database readable.
automatically.
Regards,
Ann
>Sigh, do you have forced writes turned on? The error you're seeing
>
> I ran into the following situation:
>
> - when connecting to the database, I get this error:
> - Error while trying to read from file
> - Reached the end of the file
> - gfix -v gives the following:
> - bad checksum
> - checksum error on database page xxxxx
often occurs when a database is shutdown hard - something like pulling
the plug on the machine - with forced writes turned off on a windows
system. Windows does not write pages in cache until the file is closed,
by default, so lots of stuff doesn't ever get to disk. Firebird (and
InterBase) haven't actually checksummed pages in 10 years or more, but
write 12345 in the page header where the checksum used to go. That
detects only the grossest of errors - like reading a page that was never
written.
>Contact ibsurgeon.com - they may be able to recreate enough of the
> I ran gfix -v -i, but the error still appears. How can I fix the
> database??
missing pages to make the database readable.
>Those are sort temporary files and they should have been deleted
> Also, I noticed huge files in the Windows TEMP directory, named
> fb_sort_xxxx. What are these files? When are they removed? Can they
> be deleted? This huge waste of disk space (my DB is quiet big - 1.5
> Gb).
>
automatically.
Regards,
Ann