unable to create application resource
I have an issue with creating application resource in a SFHA environment. below is my configuration.
In my environment
- a two node SFHA cluster.
- do not wish to let VCS take control of the database instead.
- a script created to start and stop the database.
Application resource in main.cf
Application Monitor_Listener (
Critical = 0
User = oracle
StartProgram = "sh /home/oracle/START_STOP/START_LISTENER.sh"
StopProgram = "sh /home/oracle/START_STOP/STOP_LISTENER.sh"
MonitorProgram = "sh /home/oracle/START_STOP/MONITOR_LISTENER.sh"
PidFiles = { "" }
MonitorProcesses = { oracle }
UseSUDash = 1
)
START_LISTENER.sh
. ~oracle/ora10g.env
$ORACLE_HOME/bin/lsnrctl start ENG10
STOP_LISTENER.sh
. ~oracle/ora10g.env
$ORACLE_HOME/bin/lsnrctl stop ENG10
MONITOR_LISTENER.sh
#!/usr/bin/sh
ps -ef | grep oracle | grep -v grep > /dev/null
if [ $? -eq 0 ]; then
exit 110
else
exit 100
fi
. ~oracle/ora10g.env
export ORACLE_HOME=/app/oracle/product/10.2.0/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:$PATH
After creating, i tried to online the resource. it says that it is not probed.
Anyone can provide some advice where i am doing wrong. maybe provide me some solution?