When an archive store is damaged (typically due to power issues or third party antivirus interaction), the following steps can be used to extract the messages from the problematic archive and merge them into a new archive store.
Before we merge the archive store data we must confirm if the disk the store is using has any disk errors. This is often the reason for why the .dat files have been corrupted in the first place.
We recommend you run a disk check command on the drive as well as check for any possible Antivirus software that may have quarantined the .dat files.
If you suspect the Firebird Database could be damaged you can run the following from Administrative tools -> Miscellaneous -> Management shell command:
RecoverStore –id=x (where x is the id number of the impacted Store)
This can take a long time to rebuild the database from recovery records.
Note: We strongly recommend you take a full backup of all your data before taking the steps below.