Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle 10g automatic startup in Solaris 10

442731Jul 24 2007 — edited Jul 25 2007
Good 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2007
Added on Jul 24 2007
4 comments
3,776 views