Operating System - HP-UX
1752799 Members
5854 Online
108789 Solutions
New Discussion

Oracle does not start automatically after a reboot

 

Oracle does not start automatically after a reboot

Hello forum,

I have a hpux11.11 box running oracle10g and I need to configure oracle to startup automatically after a reboot.
I configure /sbin/init.d/oracle
wich I tested manually and it works.
configure
/etc/oratab
/etc/rc.config.d/oracle
create links
from rc1.d
K100oracle -> /sbin/init.d/oracle
from rc3.d
S990oracle -> /sbin/init.d/oracle


reboot the servers but the database is not up and /etc/rc.log I get error:



Output from "/sbin/rc3.d/S990oracle start":
----------------------------
/sbin/rc3.d/S990oracle [21]: su: not found.
/sbin/rc3.d/S990oracle [23]: su: not found.
"/sbin/rc3.d/S990oracle start" FAILED



Am i trying to start the oracle to early?

The command the script is using to start/shutdown are:
'start') # Start the Oracle databases and listeners

su - oracle -c "/opt/oracle/product/10.2/bin/dbstart"

su - oracle -c "/opt/oracle/product/10.2/bin/lsnrctl start"


;;

'stop') # Stop the Oracle databases and listeners

su - oracle -c "/opt/oracle/product/10.2/bin/lsnrctl stop"

su - oracle -c "/opt/oracle/product/10.2/bin/dbshut"


1 REPLY 1

Re: Oracle does not start automatically after a reboot

Hello forum,

I have found the solution of my problem.

During boot up the system does not find "su" so I have to use
"/usr/bin/su" on the startup script instead.

thanks,