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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

db auto start in linux

The_RockApr 14 2009 — edited Apr 15 2009
I m new to Linux, I want to configure that database should be automatically restarted as Linux Server starts.

I have created dbora (/etc/initd/dbaora) with root user, and it has following contents, but I get below issues.
-----------------------------------------------------------------
ORA_HOME=/data1/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 $ORA_HOME"
;;
'stop')
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
;;
esac
--------------------------------------------------------
chmod 750 /etc/init.d/dbora
chkconfig --level 345 dbora on
service dbora does not support chkconfig
-------------------------------------------------------

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 13 2009
Added on Apr 14 2009
22 comments
2,530 views