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 -> Re: Shutdown during reboot (script help)

Re: Shutdown during reboot (script help)

From: Charlie Crissman <ccriss_at_bellsouth.net>
Date: 1997/03/24
Message-ID: <33371A5F.1DF3@bellsouth.net>#1/1

Take a look at the scripts $ORACLE_HOME/bin/dbshut (& dbstart). Incorporate them into the /etc/rc?.d scripts (good place might be in rc3.d since you will probably want them operating as you go in/out of run level 3 (multi-user mode with resources shared).

Charlie Crissman
Sr. Oracle DBA / UNIX System Administrator Barnett Banks, Inc., Jax, FL


David Sivick wrote:
>
> 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 Mon Mar 24 1997 - 00:00:00 CST

Original text of this message

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