Solved

physical stand by monitoring

Posted on 2012-04-06
2
285 Views
Last Modified: 2012-08-02
hello experts,

i have a 4 node cluster, we configured physical standy on one node. now i need to verify following things.

1. i need to find most recent archived log file was generated on production cluster (each instance)?
2. the same file is transfered on standy by or not?
3. need to check the archive log file is applied on standby?

could you please send me queries if any one have. i am planning to setup some monitoring for data guard setup.
0
Comment
Question by:sk0227
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Expert Comment

by:David
ID: 37817000
I regret I don't have easy answers with which you may "simply" confirm this, but you're thinking in the right direction.  It's up to you, not us, to tell your boss that your changes will not crash the production system.

However, once you have made more diligent effort to follow the documented installation steps, you may find your own answer by searching E-E with your tag words.

HTH
0
 
LVL 1

Accepted Solution

by:
Faher earned 500 total points
ID: 37819160
1. Connect to the standby and get the sequence number of the last
   applied archive log. Call it laseq:

         select max(sequence#) from v$archived_log where applied='YES';

2. Get the sequence number of the last complete archive log on the
   standby. This is the last log the standby can apply without receiving
   additional archive logs from the primary. Call it lrseq:

      SELECT min(sequence#) FROM v$archived_log WHERE ( (sequence#+1) NOT IN
      (SELECT sequence# FROM v$archived_log) ) AND (sequence# > laseq)

3. (lrseq - laseq) is the number of archived logs that have not been
   applied on the standby, but could be applied if the primary host becomes
   unavailable. If a failover occurs, this number indicates the number of
   archive logs that need to be applied before activating the standby.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question