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: Auto start DB on linux

Re: Auto start DB on linux

From: Gerard H. Pille <ghp_at_skynet.be>
Date: Wed, 30 Aug 2000 23:37:06 +0200
Message-ID: <39AD7E82.78831AFD@skynet.be>

JMNpst wrote:

> I am trying to automatically start the Oracle Data Base and listener upon
> booting up our linux server, but it doesn't seem to work. In the instructions,
> it says to modify the /etc/oratab file and change the N to Y, and verify that
> the SID and HOME is correct - it is. Then it tells me to set up the dbora file
> in /etc/rc.d/init.d directory and gave me a default script to create, and then
> the link to /etc/rc.d/rc0.d AND /etc/rc.d/rc2.d. All this is done. I can run
> the dbora script manually with start and stop parms and the db starts and stops
> OK, but when I re-boot the server, it doen't seem to execute the dbora script.
> I can verify this by executing the dbora script manually and it will start the
> db, or I can also use sqlplus to try to log on, and it tells me oracle is not
> available. All this tells me that the dbora script is not being run at re-boot
> time. If i login as root or oracle8i - neither one starts the db. Oracle
> support says that it is an operating system problem.
> When the servers boots up, is it supposed to run the links in the rc* folders?
> Am I supposed to do anything with my bash profile? Can anyone help?
> I am running RH 6.2 and Oracle 8.1.5 EE with all patches applied.

Hallo Julia-Mike-November-papa-sierra-tango,

What are the links in rc0.d and rc2.d called? And why didn't you create links in rc3.d, rc4.d, rc5.d or rc6.d?

Check in /etc/inittab what is the default run-level of your system.

If it is 4, then you need a Start script high in rc4.d, eg. S90oracle, linked to the script in /etc/init.d, so that starting the DB is one of the last scripts executed. It should run after mounting the filesystems, starting the network ...

On the other hand, when you reboot or shut down, it should be one of the first things stopped, so you need a Kill script low in rc6.d (reboot) and rc0.d (halt), eg. K05oracle, again linked to /etc/init.d.

This might help,

Gerard Received on Wed Aug 30 2000 - 16:37:06 CDT

Original text of this message

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