#vi /etc/init.d/oracled
输入以下内容:
#! /bin/bash
# For RHEL6.2_64 Bit.
# chkconfig: - 99 01
# description: Start or Stop Oracle Daemon.
# Tom Yan at 06/21/2012
# Source function library
. /etc/rc.d/init.d/functions
start()
{
}
stop()
{
}
case "$1" in
esac
exit $RETVAL
在root下执行命令
cd /etc/rc5.d或者cd /etc/rc3.d
#ln -s ../init.d/oracled K01oracled
#chkconfig oracled on
#service oracled start
下次开机时,将会自动启动Oracle.