Validate a database (Firebird)

To validate a database, simply enter the command
gfix -v
Validation will silently locate and free any unassigned pages or misallocated structures
it finds. It will report any corrupt structures but does not attempt to mend them.

To have gfix report faults but not attempt to free the spaces, include the –n[o_update]

gfix -v -n

You can have the validation ignore checksum errors by adding the –i[gnore]

gfix -v -i