How do I quickly identify a primary database for scripting purposes?
edited Oct 11, 2012 6:56AM in High Availability Data Guard, Sharding and Global Data Services (MOSC) 13 commentsAnswered
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
0