0

如何从 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')

4

1 回答 1

0

我将此查询运行到我的 dataguard(19c),结果正确。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')

399 398 1

于 2020-09-28T18:10:00.893 回答