Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Shutdown during reboot (script help)
Is there a way to shutdown the database from the a command line other then dbshut?
I am running 7.3.2.1 on Solaris 2.4 and when I go to reboot the machine
dbshut does not know
how to kill the active sessions. So my machine hangs...
I would like to use the svrmgr command shutdown abort, but I can't get it to take multiple parameters.
Thanks,
David Sivick
-- ****************************************************** David Sivick BSG Corporation dsivick_at_imonics.com ***************************************************** Here is my shutdown script: #! /bin/sh # # case "$1" in 'start') echo "Starting oracle database" > /dev/console if [ -f /oracle/home/.cshrc ]; then su - oracle -c '$ORACLE_HOME/bin/dbstart ; \ $ORACLE_HOME/bin/lsnrctl start' >> /var/adm/vt/ora-log 2>&1 echo "Database is up" > /dev/console echo "" > /dev/console fiReceived on Thu Mar 20 1997 - 00:00:00 CST
;;
'stop') echo "Stopping oracle database" > /dev/console if [ -f /oracle/home/.cshrc ]; then su - oracle -c '$ORACLE_HOME/bin/dbshut' >> /var/adm/vt/ora-log 2>&1 echo " database is down" > /dev/console echo "" > /dev/console fi
;;
*) echo "usage: `basename $0` {start|stop}"
;;
esac