Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Unix Server script locations
"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
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 blockReceived on Thu Mar 23 2000 - 00:00:00 CST
![]() |
![]() |