Oracle 10g automatic startup in Solaris 10
442731Jul 24 2007 — edited Jul 25 2007Good afternoon,
I've installed Oracle 10g Enterprise Edition Server on a server with Solaris 10. I'm trying to configure the automatic startup/shutdown. I've changed dbstart script. I've prepared dbora script and I've created the necessary link to this script in the rc*.d directories.
When I launch dbora start or dbora stop everything is ok, but when I reboot my machine nothing happens.
My dbora script is as follow:
#!/bin/sh
ORA_HOME=/u01/app/oracle/product/10.2.0/Db_1
ORA_OWNER=oracle
if[ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
su - $ORA_OWNER -c "ORA_HOME/bin/dbstart"
su - $ORA_OWNER -c "ORA_HOME/bin/emctl start dbconsole"
su - $ORA_OWNER -c "ORA_HOME/bin/isqlplusctl start"
;;
'stop')
su - $ORA_OWNER -c "ORA_HOME/bin/isqlplusctl stop"
su - $ORA_OWNER -c "ORA_HOME/bin/emctl stop dbconsole"
su - $ORA_OWNER -c "ORA_HOME/bin/lsnrctl stop"
su - $ORA_OWNER -c "ORA_HOME/bin/dbshut"
;;
esac
Thanks in advance.
Best regards,
Mabel