Create new file in '/etc/init.d' in this instruction I use new file name is oracle.
[tatshuya#] vi /etc/init.d/oracle
#!/bin/sh
user=oracle
SU=/bin/su
ORACLE_HOME=/oracle/product/10.2.0/db
export ORACLE_HOME
case "$1" in
start)
$SU $user $ORACLE_HOME/bin/dbstart
;;
restart)
$SU $user $ORACLE_HOME/bin/dbshut
$SU $user $ORACLE_HOME/bin/dbstart
;;
stop)
$SU $user $ORACLE_HOME/bin/dbshut
;;
*)
echo "Usage : oracle start restart stop"
;;
esac
# Save file and then create symbolic link
ln -s /etc/init.d/oracle /etc/rc0.d/K01oracle
ln -s /etc/init.d/oracle /etc/rc2.d/K01oracle
ln -s /etc/init.d/oracle /etc/rc2.d/S88oracle
ln -s /etc/init.d/oracle /etc/rc3.d/K01oracle
ln -s /etc/init.d/oracle /etc/rc3.d/S88oracle
*** Change parameter from N to Y in oratab , In solaris 10 this file place in
'/var/opt/oracle/oratab'
tatshuya:/oracle/product/10.2.0/db:Y
thank you A! help for this instruction.
--TaTsHuYa--
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment