oracle 配置开机启动实例

来源:互联网 发布:淘宝卖家店名 编辑:程序博客网 时间:2024/06/06 05:46

配置开机启动实例

[root@hyl ~]# vi/etc/rc.d/rc.local

--添加开机启动实例、监听语句

#!/bin/sh

#

#This script will be executed *after* all the other init scripts.

#You can put your own initialization stuff in here if you don't

#want to do the full Sys V style init stuff.

     

touch/var/lock/subsys/local

su- oracle -c "/home/u01/app/oracle/product/10.2.0/db_1/bin/dbstartstart"

su- oracle -c "/home/u01/app/oracle/product/10.2.0/db_1/bin/lsnrctlstart"

~

~

~

[root@hyl ~]# vi /etc/oratab   --修改开机启动,将值由N设为Y

test:/home/u01/app/oracle/product/10.2.0/db_1:Y

0 0
原创粉丝点击