oracle怎么判断主库还是备库,Oracle查看归档是否被备库应用
首先是查詢v$archived_log視圖,然后分析applied字段信息,官方說(shuō)明如下:
Indicates whether an archived redo log file has been applied to the
corresponding physical standby database. The value is always NO for local
destinations.
This column is meaningful on a physical standby database for rows where
REGISTRAR = RFS:
■ If REGISTRAR = RFS and APPLIED = NO, then the log file has been
received but has not yet been applied.
■ If REGISTRAR = RFS and APPLIED = IN-MEMORY, then the log file has
been applied in memory, but the datafiles have not yet been updated.
■ If REGISTRAR = RFS and APPLIED = YES, then the log file has been
applied and the datafiles have been updated.
This column can be used to identify log files that can be backed up and
deleted. When used for this purpose, the value IN-MEMORY should be
treated as if it were NO.
來(lái)自 “ ITPUB博客 ” ,鏈接:http://blog.itpub.net/29802484/viewspace-2156048/,如需轉(zhuǎn)載,請(qǐng)注明出處,否則將追究法律責(zé)任。
總結(jié)
以上是生活随笔為你收集整理的oracle怎么判断主库还是备库,Oracle查看归档是否被备库应用的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 选32位 64位 oracle,32位P
- 下一篇: oracle 表结构语句,oracle查