DG观察日志传输
Posted liang545621
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DG观察日志传输相关的知识,希望对你有一定的参考价值。
--primary端查询v$archived_log视图,确认日志是否被应用:
set lines 300 pages 300
col name for a20
select name,dest_id,thread#,sequence#,standby_dest,applied,registrar,completion_time from v$archived_log
where standby_dest=‘YES‘
order by thread#,sequence#;
--primary端查询primary,standby的最大日志序列号是否一致:
select ‘Primary :‘ "DB Role",thread#,max(sequence#)
from v$archived_log
where standby_dest=‘NO‘
group by thread#
union
select ‘Standby :‘ "DB Role",thread#,max(sequence#)
from v$archived_log
where standby_dest=‘YES‘ and applied=‘YES‘
group by thread#
order by thread#;
以上是关于DG观察日志传输的主要内容,如果未能解决你的问题,请参考以下文章