Firebird 2.5错误,文件“ ReadFile”操作期间发生I / O错误

时间:2018-07-18 14:14:33

标签: firebird firebird2.5

我希望您能够帮助我找到解决Firebird数据库问题的方法。

使用Flamerobin的错误是:

enter image description here

我已尝试使用数据库进行gfix修复,但无法通过Powershell中出现的相同错误进行验证。

PS C:\Program Files\Firebird\Firebird_2_5\bin> .\gfix.exe -v C:\databases2\Issue\RFS.FDB -user sysdba -password masterkey
I/O error during "ReadFile" operation for file "C:\DATABASES2\ISSUE\RFS.FDB"
-Error while trying to read from file
-Reached the end of the file.
PS C:\Program Files\Firebird\Firebird_2_5\bin> .\gfix.exe -v -f C:\databases2\Issue\RFS.FDB -user sysdba -password masterkey
I/O error during "ReadFile" operation for file "C:\DATABASES2\ISSUE\RFS.FDB"
-Error while trying to read from file
-Reached the end of the file.
PS C:\Program Files\Firebird\Firebird_2_5\bin> .\gfix.exe -v -f -i C:\databases2\Issue\RFS.FDB -user sysdba -password masterkey
I/O error during "ReadFile" operation for file "C:\DATABASES2\ISSUE\RFS.FDB"
-Error while trying to read from file
-Reached the end of the file.
PS C:\Program Files\Firebird\Firebird_2_5\bin>

与其他任何命令-mendgbak相同的错误

1 个答案:

答案 0 :(得分:2)

该错误可能意味着您的数据库已损坏,无法恢复(或者至少在没有专家帮助的情况下)。从本质上讲,这意味着您的数据库文件小于Firebird认为的大小,并且Firebird尝试读取的文件长度超出了文件的长度。这可能表明文件已被截断(并且所有超出截断点的数据现在都丢失了),数据库的内部元数据已损坏,或者在Firebird尝试增加数据库文件的大小时出了点问题。 / p>

有可能可以通过重写一些内部元数据来解决。但是据我所知,这超出了gfix的功能范围。我认为您将需要一家提供恢复服务的公司的帮助,例如IB-Aid的IB-Surgeon,请参阅https://ib-aid.com/。我建议您将问题发布在firebird支持邮件列表上,以查看是否有其他解决方案。