Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Shutdown during reboot (script help)

Shutdown during reboot (script help)

From: David Sivick <dsivick_at_bsginc.com>
Date: 1997/03/20
Message-ID: <01bc3551$e4ffe550$9bc0dacd@beavis>#1/1

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
        fi

;;
'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
Received on Thu Mar 20 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US