Hi folks,
I'm trying to start the Oracle LISTENER daemon using the following code in /etc/rc2.d startup:
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl start
retval=$?
if [ ${retval} = 0 ]
then
echo " "
echo "SQL*Net Listener started .... status : '${retval}'"
echo " "
else
echo " "
echo "SQL*Net Listener startup failed .... status : '${retval}'"
echo " "
fi
The problem is the oracle LISTENER will not exit when called, I have to type start then exit. How do I pass these commands to the listener daemon to automate the startup process in the script. Better yet, can someone please provide me with a sample script that I can use to start the database and the listner in /etc/rc2.d. Thanks Stickybit.
P.S new to Oracle.
I'm trying to start the Oracle LISTENER daemon using the following code in /etc/rc2.d startup:
su - $ORA_OWNER -c $ORA_HOME/bin/lsnrctl start
retval=$?
if [ ${retval} = 0 ]
then
echo " "
echo "SQL*Net Listener started .... status : '${retval}'"
echo " "
else
echo " "
echo "SQL*Net Listener startup failed .... status : '${retval}'"
echo " "
fi
The problem is the oracle LISTENER will not exit when called, I have to type start then exit. How do I pass these commands to the listener daemon to automate the startup process in the script. Better yet, can someone please provide me with a sample script that I can use to start the database and the listner in /etc/rc2.d. Thanks Stickybit.
P.S new to Oracle.