High Availability Data Guard, Sharding and Global Data Services (MOSC)

MOSC Banner

How do I quickly identify a primary database for scripting purposes?

I need a quick tell-tale I can refer to on my database server for an RMAN shell script to determine when a database is the primary or secondary in a DG group.  
I would prefer to read a file rather than hitting the database, although a simple query would be welcome.

Facts: 11gR2 databases; not using the broker; RedHat Linux

Thanks in advance

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center