Knowledge - Base - DC - DR Sync
Knowledge - Base - DC - DR Sync
select al.thrd "Thread", almax "Last Seq Received", lhmax "Last Seq Applied" ,
almax - lhmax "Arc_gap"
from (select thread# thrd, max(sequence#) almax
from v$archived_log
where resetlogs_change#=(select resetlogs_change# from v$database)
group by thread#) al,
(select thread# thrd, max(sequence#) lhmax
from v$log_history
where resetlogs_change#=(select resetlogs_change# from v$database)
group by thread#) lh
where al.thrd = lh.thrd order by 1;