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: Joe Terry <jterry_at_xmission.com>
Date: 2000/03/24
Message-ID: <8bgeif$hdp$1@news.xmission.com>#1/1

Craig,

Thanks for your response.

If I may another couple of questions, please. What version of AIX are you running? I have 4.2 and 4.3 but do not have any /etc/oracle or /etc/rc.local scripts. Does oracle build these at installation?

Thanks again.
Joe Terry

"Craig Kelley" <ink_at_inconnu.isu.edu> wrote in message news:m1og85bn2j.fsf_at_inconnu.isu.edu...
> "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 Fri Mar 24 2000 - 00:00:00 CST

Original text of this message

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