将以下内容添加到/etc/init.d/Oracle中并添加可执行权限,chkconfig –add oracle添加到服务启动列表,chkconfig oracle on设置成开机启动
#!/bin/sh
# chkconfig: 35 80 10
# descr iption: Oracle auto start-stop scr ipt.
#
# Set ORA_HOME to be equivalent to the $ORACLE_HOME
# from which you
rc.local脚本
rc.local脚本是一个ubuntu开机后会自动执行的脚本,我们可以在该脚本内添加命令行指令。该脚本位于/etc/路径下,需要root权限才能修改。
该脚本具体格式如下:
#!/bin/sh -e
#
# rc.local
#
# This scr ipt is executed at the end of each multiuser runlevel.
# Make sure that the scr ipt will exit 0 on success or an