<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>AskDBA.org Forum &#187; Topic: Monitoring archive gap in standby</title>
<link>http://www.forum.askdba.org/</link>
<description>Forum for Oracle DBA&#039;s</description>
<language>en</language>
<pubDate>Sun, 12 Feb 2012 10:19:23 +0000</pubDate>

<item>
<title>Amit Bansal on "Monitoring archive gap in standby"</title>
<link>http://www.forum.askdba.org/topic/monitoring-archive-gap-in-standby#post-80</link>
<pubDate>Tue, 25 Aug 2009 16:35:50 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">80@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;You can use following sql to monitor the gap in standby using following sql&#60;/p&#62;
&#60;pre&#62;
sqlplus -s &#34;/ as sysdba&#34; &#38;lt;&#38;lt;EOF
set head off
set feedb off
select (select name from V\$DATABASE),(select max(sequence#) from v\$archived_log
where dest_id=1) Current_primary_seq,( select max(sequence#) from v$\archived_log
where to_date(next_time,'dd-mm-yyyy') &#38;gt; sysdate-1
and dest_id=2 ) max_stby,(select nvl((select max(sequence#) - min(sequence#) from v\$archived_log
where to_date(next_time,'dd-mm-yyyy') &#38;gt; sysdate-1 and dest_id=2 and applied='NO'),0)  from
dual) &#34;To be applied&#34;,((select max(sequence#) from v\$archived_log
where dest_id=1) - (select max(sequence#) from v\$archived_log
where dest_id=2)) &#34;To be Shipped&#34;
from dual
/
&#60;/pre&#62;
&#60;p&#62;Assumptions -&#60;br /&#62;
Dest_id=1 --&#38;gt; Primary DB&#60;br /&#62;
Dest_id=2 --&#38;gt;Standby site&#60;/p&#62;
&#60;p&#62;This query reports the number of archives which need's to be shipped along with number of archive log's which need to be applied. If you are looking for script, you can get the logic from following thread&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.oracle.com/forums/thread.jspa?messageID=3708034&#34; rel=&#34;nofollow&#34;&#62;http://forums.oracle.com/forums/thread.jspa?messageID=3708034&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>

