简体   繁体   English

如何检查 Firebird 数据库的 nbak state

[英]How to inspect nbak state of a Firebird database

Is there a way in C# to inspect the nbak state of a Firebird database? C# 中有没有办法检查 Firebird 数据库的 nbak state?

The state in the database header would be set to nbak_state_diff or nbak_state_normal .数据库 header 中的 state 将设置为nbak_state_diffnbak_state_normal But how do I actually read this value?但是我如何实际读取这个值?

Select MON$BACKUP_STATE From MON$DATABASE

Quote from https://firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref-appx05-mondb.html引自https://firebirdsql.org/file/documentation/reference_manuals/fblangref25-en/html/fblangref-appx05-mondb.html

Current physical backup (nBackup) state:当前物理备份 (nBackup) state:
0 - normal 0 - 正常
1 - stalled 1 - 停滞不前
2 - merge 2 - 合并

Also see c:\Program Files\Firebird\Firebird_3_0\doc\README.monitoring_tables.txt另请参阅c:\Program Files\Firebird\Firebird_3_0\doc\README.monitoring_tables.txt

PS for C#-related questions it is often faster to ask in a dedicated Google forum, see http://stackoverflow.com/tags/firebird-.net-provider/info PS 对于与 C# 相关的问题,在专门的 Google 论坛中提问通常更快,请参阅http://stackoverflow.com/tags/firebird-.net-provider/info

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM