Quote:
Originally posted by jmodic
Ah, I confused THREAD# and DEST_ID. :o
Yes, your query works just fine, I just cehcked it. It is the "stby.applied='YES'" part that makes the difference between standby and primary in that query, so yes, you actualy get the "applied gap" (as opposed to "transported gap" that is reported by V$ARCHIVE_GAP on standby).
nice to have the extra validation - the standby is great in that it runs lights out pretty much unattended - the problem is that I get lazy and don't check it so often - the procedure is simply a nice safety net to double check it for me.