Im setting up a new database on a Sun box. I have my oratab, and I have created a dbstart and dbshut in init.d and created a link to rc0.d for K01dbshut and rc2.d for S99dbstart.
I have in dbstart
su - oracle -c "/u01/oracle/product/9.2.0/bin/dbstart"
su - oracle -c "/u01/oracle/product/9.2.0/bin/lsnrctl start"
and the appropriate reverse in dbshut
But... oracle will not start automatically when I reboot. I can reboot and then from a command line enter the su commands and everything works fine.. the only thing is that from a command line the system asks me for oracle's password. I assume that this is why the database doesnt start on reboot, but I thought, and all documentation I can find says that if you are logged in as root and su to another user you wont be asked for that users password to execute the commands.
can anyone point me in the right direction to get my database to auto start?
thanks
I have in dbstart
su - oracle -c "/u01/oracle/product/9.2.0/bin/dbstart"
su - oracle -c "/u01/oracle/product/9.2.0/bin/lsnrctl start"
and the appropriate reverse in dbshut
But... oracle will not start automatically when I reboot. I can reboot and then from a command line enter the su commands and everything works fine.. the only thing is that from a command line the system asks me for oracle's password. I assume that this is why the database doesnt start on reboot, but I thought, and all documentation I can find says that if you are logged in as root and su to another user you wont be asked for that users password to execute the commands.
can anyone point me in the right direction to get my database to auto start?
thanks