Fix Firebird Database
1) disconnect all connections to the IB Server
2) copy one copy to perform the following operations on the copied file and perform exclusive access
3) enter the command window
4) To avoid entering the user name and password in the following command line, set the following two variables:
Set isc_user = sysdba
Set isc_password = masterkey
5) Check the damaged database
Gfix-v-full ABC. GDB
6) if the previous command has indicated a problem with the database, we need to fix it now.
Gfix-Mend-full-ignore ABC. GDB
7) Check again to see if the database has been repaired.
Gfix-v-full ABC. GDB
8) if an error persists, you must perform a data backup and recovery operation.
Gbak-backup-v-ignore ABC. gdb abc. GBK
9) If the backup method fails, disable the garbage collection function.
Gbak-backup-v-ignore-garbage ABC. gdb abc. GBK
10) If the backup is still not successful, it may be that the transaction in a transitional state is corrupted. Add the-Limbo parameter and try again.
Gbak-backup-v-ignore-garbage-Limbo ABC. gdb abc. GBK
11) restore data from the backup file (I still cannot do it)
Gbak-create-v abc. gbk ddd. GDB
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.