$ gfix -v -f atlas_test.gdb
Mend database corruption. Only do this if the previous step reported database corruption.
$ gfix -m -i atlas_test.gdb
Check to see if corruption was mended.
$ gfix -v -f atlas_test.gdb
If gfix still reports database corruption, we need to take further steps to repair the database.
若 gfix无效, 可以再用 gbak 作备份, 然後修复
The backup/restore procedure will create a new database with no old record versions, no page fragmentation, and newly-formed indices and transaction log.
Back up database.
备份:
$ gbak -g -b -z -v atlas_test.gdb atlas.gbk
If there is corruption in record versions of a limbo transaction, then you may need to include the -l switch to the above gbak command to ignore limbo transactions.
Create new database from backup. This should create a pristine database, with newly-made indices, no old record versions, etc.
$ gbak -c -v -z atlas.gbk atlas_new.gdb
Check to see if new database is corrupt.