RE: can I find from standby db which db is the primary

From: John Hallas <John.Hallas_at_morrisonsplc.co.uk>
Date: Mon, 17 Nov 2008 15:00:54 +0000
Message-ID: <A92AF970568F9A4BAB18E10F9C64ED604D4CB0D741@EXCH2.morrisonsplc.co.uk>


select open_mode, database_role, switchover_status, dataguard_broker, guard_status from v$database;

Primary

OPEN_MODE DATABASE_ROLE SWITCHOVER_STATUS DATAGUAR GUARD_S
---------- ---------------- -------------------- -------- -------
READ WRITE PRIMARY SESSIONS ACTIVE DISABLED NONE Standby

OPEN_MODE DATABASE_ROLE SWITCHOVER_STATUS DATAGUAR GUARD_S
---------- ---------------- -------------------- -------- -------
MOUNTED PHYSICAL STANDBY SESSIONS ACTIVE DISABLED NONE Blog www.jhdba.wordpress.com



From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Amihay Gonen Sent: 17 November 2008 14:49
To: oracle-l_at_freelists.org
Subject: Q: can I find from standby db which db is the primary

Hi ,

Is anyone know if there any query which can give me who is the primary db ( or tnsnames) . our version is 10.2 .

Thanks

Amihay Gonen,
DBA



Wm Morrison Supermarkets Plc is registered in England with number 358949. The registered office of the company is situated at Gain Lane, Bradford, West Yorkshire BD3 7DL. This email and any attachments are intended for the addressee(s) only and may be confidential.

If you are not the intended recipient, please inform the sender by replying to the email that you have received in error and then destroy the email. If you are not the intended recipient, you must not use, disclose, copy or rely on the email or its attachments in any way.

Wm Morrison Supermarkets PLC accepts no liability or responsibility for anything said in the email or its attachments and gives no warranty as to accuracy. It is the policy of Wm Morrison Supermarkets PLC not to enter into any contractual or other obligations by email.

Although we have taken steps to ensure the email and its attachments are virus-free, we cannot guarantee this or accept any responsibility, and it is the responsibility of recipients to carry out their own virus checks.


--
http://www.freelists.org/webpage/oracle-l
Received on Mon Nov 17 2008 - 09:00:54 CST

Original text of this message