Oracle 11g Startup Script
740842Jan 26 2010 — edited Jul 29 2012I'm running CentOS 5.4.
Question: Why doesn't one of the largest software companies in the world, and the largest database software company in the world, provide a rc startup script for Redhat Linux? (Lets not even get into the whole subject of it being installed via X-11. WTF???).
I grabbed this from the open source community:
ORA_OWNER=oracle
ORA_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1
if [ ! -f $ORA_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
;;
esac
It doesn't work. All that starts up on boot, from the process list.
oracle 4546 1 0 15:00 ? 00:00:00 /home/oracle/app/oracle/product/11.2.0/dbhome_1/ccr/bin/nmz -cron -silent
Why isn't oracle starting on boot?
Doug