Firebird 2.5 reports “is not a valid database” although it is

佐手、 提交于 2019-12-11 06:37:36

问题


I've got two computers both running Firebird (let's called them A and B) and two database files (let's call them a.fdb and b.fdb), both copied to both computers. On B I get the message

b.fdb is not a valid database The other files work, on A both files work.

This would be easy to explain, if B was an older version, but it's a newer one (it was FB 2.1, and because of this problem I installed FB 2.5). The files a.fdb and b.fdb have ODS 11.1 and 10.1, respectively. It looks like new versions of FB wouldn't support ODS 10.1 anymore, which I can't believe. But I see no other explanation, can you?


回答1:


Try to make backup and restore of database.




回答2:


I had the same problem with an old database.

In my case even the gbak command presented the "is not a valid database". (I also tried with the FIX_FSS_METADATA option)

I found that if the database was created in an 32bits environment it can't be opened in one 64bits one.

So, what I had to do was: - Create a VM with a 32bits environment (in my case I created a VM with Windows XP) - Copy the database the this VM and make a backup using GBAK - Copy the backup file to my machine (64bits) - Run a restore using GBAK

After all this I could open the database again.

Hope it helps!



来源:https://stackoverflow.com/questions/4862392/firebird-2-5-reports-is-not-a-valid-database-although-it-is

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!