Dataguard scripting from Unix (aix)
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