Firebird - database file shutdown error message

蹲街弑〆低调 提交于 2020-01-28 02:17:46

问题


I have a problem with my Firebird database. The primary key of one of the tables is referenced by another table that was actually dropped earlier. So this reference from a non-existent table was causing errors when I try to make any changes in the table data.

So I did a backup and restore and the bad reference was gone but now when I try to connect to my database more than once at the same time I get the following error:

database [file path] shutdown

How can I solve this?


回答1:


Your database (file, not server) has been shutdown, so Firebird does not accept connections for this database until it has been brought online again using gfix.

The command is:

gfix -online <path-to-your-database>

See Database Startup and Shutdown in the Firebird Database Housekeeping Utility manual




回答2:


use online

gfix  -user "SYSDBA" -password "masterkey"  -online DATA.FDB

after database is used retry

gfix  -user "SYSDBA" -password "masterkey"   -shut -force 0 DATA.FDB


来源:https://stackoverflow.com/questions/14617099/firebird-database-file-shutdown-error-message

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