Hi,
I know there is a huge amount of ready-to-use shutdown/start scripts for Oracle, but mine a little different.
I dont want Oracle to start when Linux starts, i just want Oracle to shutdown when Linux shutdown.
Here is a script (without comments and such)
#!/bin/sh
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
I would like to have the 'stop' part of the script, not the 'start' asssociated code. My Shell knowledge is a little bit rusty and i havent got this to work, therefor i would be glad if some one helped me to remove the 'start'-part but still have a functional script that i could put into Linux runlevels.
Thank for your input
--
Best, Johann