Database Autostart and Autostop.
Any one have clear instruction how to do it? Somehow Oracle instruction is not working for me.
I have 3 (three) db in oratab file with Y. but none of db start at startup. Do you have a working scripts and
linking Instructions that you can shear. It would a very kind of you.
Instructions I followed....
http://download-east.oracle.com/docs...p.htm#CFAHAHGA
Edit the oratab file for your platform.
On Solaris:
# vi /var/opt/oracle/oratab
Then I created a file in /etc/init.d called dbora
#! /bin/sh -x
#
# Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for your installation.
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
#
# Change the value of ORACLE to the login name of the
# oracle owner at your site.
#
ORACLE=oracle
PATH=${PATH}:$ORACLE_HOME/bin
HOST=`hostname`
PLATFORM=`uname`
export ORACLE_HOME PATH
#
if [ ! "$2" = "ORA_DB" ] ; then
if [ "$PLATFORM" = "HP-UX" ] ; then
remsh $HOST -l $ORACLE -n "$0 $1 ORA_DB"
exit
else
rsh $HOST -l $ORACLE $0 $1 ORA_DB
exit
fi
fi
#
case $1 in
'start')
$ORACLE_HOME/bin/dbstart $ORACLE_HOME &
;;
'stop')
$ORACLE_HOME/bin/dbshut $ORACLE_HOME &
;;
*)
echo "usage: $0 {start|stop}"
exit
;;
esac
#
exit
Then.......
# chgrp dba dbora
# chmod 750 dbora
Then.....
# ln -s /etc/init.d/dbora /etc/rc3.d/K01dbora
# ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
Thanks in advance.