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

MOSC Banner

Dataguard scripting from Unix (aix)

 Hi,

I'm trying to create scripts to monitor the health of the Dataguard database and to initiate a switchover/failover.  I have to do this because we have to switchover/failover application servers too (jdbc connections).  I'm trying to create unix scripts (aix) to utilize the dgmgrl utility and output to a file to parse and then act upon accordingly.  Unfortunately, when I created a simple script, it appears to not interface very well and output to files. The following is the simple script that does output to the file I want it to:

oracle@aix961c  (prd4) : /gpl/dtha $ cat dg_mon

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