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: Unix Server script locations

Re: Unix Server script locations

From: Craig Kelley <ink_at_inconnu.isu.edu>
Date: 2000/03/23
Message-ID: <m1og85bn2j.fsf@inconnu.isu.edu>#1/1

"Joe Terry" <jterry_at_parkcity.com> writes:

> I have a couple of Oracle servers that I have inherited. I am
> attempting to get them set up so that when they are shut down and
> rebooted they will bring the Oracle databases and associated
> services up automatically. I have them configured allright
> (Ithink), but don't know where the listener (lsnrctl) is started.
> Could anyone give me an example of the startup and shutdowns? I am
> using 7.3.3 on an HP-UX and an AIX system. Thanks for your help.

We use 7.3 on an AIX box; /etc/rc.local has this in it:

if [ -f /etc/oracle.start ]; then

   echo "Starting Oracle and Listener\r\n"    /bin/su - oracle -c /bin/sh /etc/oracle.start fi

And then /etc/oracle.start has this:

#!/bin/ksh
/bin/echo Oracle Server
$ORACLE_HOME/bin/dbstart
/bin/echo Oracle Listener
$ORACLE_HOME/bin/lsnrctl start
/bin/echo Oracle Boot Finished
exit 0

/etc/shutdown has this:

# Modification to include ORACLE shutdown 
# Ugh!  This MUST run before nologin does because with 7.2.3, dbshut must
# run as 'oracle', so after the nologin command is done then this will
# HALT the shutdown sequence on a /bin/su error.
                if [ -f /etc/oracle.clean ]
                then
                       /bin/su - oracle -c /bin/sh /etc/oracle.clean
                fi

# End ORACLE mod.

And /etc/oracle.clean has this:

#!/bin/ksh
/bin/echo Shutting down the Oracle listener $ORACLE_HOME/bin/lsnrctl stop
/bin/echo Shutting down Oracle
$ORACLE_HOME/bin/dbshut
/bin/echo Oracle Shutdown Done
exit 0

-- 
The wheel is turning but the hamster is dead.
Craig Kelley  -- kellcrai_at_isu.edu
http://www.isu.edu/~kellcrai finger ink@inconnu.isu.edu for PGP block
Received on Thu Mar 23 2000 - 00:00:00 CST

Original text of this message

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