Displaying 1 result from an estimated 1 matches for "lsnrup".
Did you mean:
linkup
2008 Nov 15
1
Oracle start up script issue with RHEL3 Cluster
...RETVAL=$?
return $RETVAL
}
stop() {
echo "Stopping Database"
su -l oracle -c "sh stopdb.sh"
RETVAL=$?
return $RETVAL
}
status() {
#DBUP=`ps -ef | grep oracle | grep -v grep | grep -c ora_pmon `
DBUP=`ps -ef | grep -c ora_pmon `
#LSNRUP=`ps -ef | grep oracle | grep 9.2.0 | grep -v grep | grep -c lsnrctl`
LSNRUP=`ps -ef | grep -c lsnrctl`
if [ ${DBUP} -ge 1 ]
then
if [ ${LSNRUP} -ge 1 ]
then
echo "Database Running"
return 0
fi
fi
echo "Database Not Running"
re...