1a)./etc/oratab or /var/opt/oracle/oratab Specify a "Y" in this field for the database
2. As root, create the following OS script file dbora.sh in the /etc/init.d directory: #!/bin/sh ORACLE_HOME="Your Oracle Home" ORACLE_OWNER=oracle if [ "$1" = "start" ] ; then su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart & exit 0 fi if [ "$1" = "stop" ] ; then su - $ORACLE_HOME -c $ORACLE_HOME/bin/dbshut & exit 0 fi echo "Usage: $0 [start|stop]"
3. Link the dbora.sh to /etc/rc directory: # ln -s /etc/init.d/dbora.sh /etc/rc0.d/K10dbora.sh # ln -s /etc/init.d/dbora.sh /etc/rc2.d/S99dbora.sh
Hope this helps! Beksy
The human mind is a dangerous plaything. This tiny ad is pretty safe: