Link to home
Start Free TrialLog in
Avatar of motioneye
motioneyeFlag for Singapore

asked on

DR getting gap with primary, data guard

Hi, I have an oracle 10G that not in synch with DR box. I run the below query and found the gap, right now I want to apply the archive log and reduce the gap, what can I do here? what is the step?

SQL> select 'Thread '||a.thread#, max(a.sequence#) primary, max(b.sequence#) DR, max(a.sequence# ) - max(b.sequence#) gap
  2       from v$archived_log a, v$archived_log b where a.archived='YES' and b.applied='YES' and b.applied='YES'
   and a.thread#=b.thread# group by a.thread#;  3

'THREAD'||A.THREAD#                                PRIMARY         DR        GAP
----------------------------------------------- ---------- ---------- ----------
Thread 1                                             33891      33875         16
Thread 2                                             32882      32863         19
ASKER CERTIFIED SOLUTION
Avatar of anand_2000v
anand_2000v
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial