如何从 RAC 环境中具有多个备用实例的主数据库中查找日志应用间隙?现在我正在使用下面的查询,但它给了我不正确的结果。
select sequenceInPrimary, sequenceSynchedInStandBy, sequenceInPrimary-sequenceSynchedInStandBy as logApplyGap from (select max(sequence#) sequenceInPrimary from v$archived_log) ,(select max(sequence#) sequenceSynchedInStandBy from v$archived_log where applied='YES')