码迷,mamicode.com
首页 > 数据库 > 详细

oracle开机自启动-超简单

时间:2014-06-20 21:15:54      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:style   class   blog   tar   color   art   

1、 在/etc/oratab中作如下修改
$ORACLE_SID:$ORACLE_HOME:Y
例如
vi /etc/oratab
orcl:/u01/app/oracle/product/10.2.0/db_1:Y

2、  修改/etc/rc.local
su - oracle -c "$ORACLE_HOME/bin/lsnctl start"
su - oracle -c "$ORACLE_HOME/bin/dbstart start"
例如
vi /etc/rc.local
su - oracle -c "/u01/app/oracle/product/10.2.0/db_1/bin/lsnctl start"
su - oracle -c "/u01/app/oracle/product/10.2.0/db_1/bin/dbstart start" 

oracle开机自启动-超简单,布布扣,bubuko.com

oracle开机自启动-超简单

标签:style   class   blog   tar   color   art   

原文地址:http://www.cnblogs.com/czrwxw/p/3796219.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!