|
-
Here is my dbora file see if you can spot my problem because I can't
#!/bin/bash
#
#
#
#
#Setup environment for script execution
. /home/oracle/.bash_profile
#determine and execute action based on command line parameter
case "$1" in
start)
echo "Starting Oracle database(s) listed in etc/oratab ..."
sleep 2
su - oracle -c "$ORACLE_HOME/bin/dbstart"
echo "starting TNS listener ..."
sleep 2
su - oracle -c "$ORACLE_HOME/bin/lsnrctl start"
touch /var/lock/subsys/dbora
;;
stop)
echo "Shutting down TNS listener ..."
sleep 2
su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop"
echo "Shutting down Oracle database(s) listed in /etc/oratab ..."
sleep 2
su - oracle -c "$ORACLE_HOME/bin/dbshut"
rm -f /var/lock/subsys/dbora
;;
status)
ps -ax | grep -e ora_ -e tnslsnr
;;
*)
echo "Usage:dbora {start|stop|status}"
exit 1
esac
exit 0
Have a look and try and help
Mark
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|