If You Have Database Corruption
In the unlikely event of a database corruption, your gstat
output may have the following within the report:
Database file sequence: File /opt/firebird/examples/empbuild/corrupt.fdb is the only file Analyzing database pages ... Expected b-tree bucket on page 337334 from 146314
If you ever see a message like the above, displayed just after the header information, you are advised to immediately shut down all connections to the database, make an operating system level copy of the database file(s) and attempt to run gbak
against the database to take a full backup.Using nbackup
may copy the database happily, but not report any errors.Gbak
, on the other hand, will flag up errors.