Linux 下 Oracle 开机自启动配置
Linux 下 Oracle 开机自启动配置
㈠ 修改/etc/oratab的值为Y
[root@Rocky ~]# cat /etc/oratab
orcl:/u01/app/oracle/product/10.2.0/db_1:Y
㈡ 修改dbstart的ORACLE_HOME_LISTNER,使其指向$ORACLE_HOME
[root@Rocky bin]# pwd
/u01/app/oracle/product/10.2.0/db_1/bin
[root@Rocky bin]# cat dbstart
# Set this to bring up Oracle Net Listener
ORACLE_HOME_LISTNER=$ORACLE_HOME
㈢ 用root用户在rc.local里添加如下内容:
[root@Rocky ~]# cat /etc/rc.local
su - oracle -c "/u01/app/oracle/product/10.2.0/db_1/bin/dbstart"
接下来、reboot 系统便可以了
相关推荐
iilegend 2020-10-19
Hody 2020-08-16
ihuaqiang 2020-08-16
Carlos 2020-07-29
wpfeitian 2020-07-26
Justdoit00 2020-06-26
dataminer 2020-06-25
昊 2020-06-16
lklong 2020-11-22
oraclemch 2020-11-06
shilukun 2020-10-10
周嘉笙 2020-11-09
EricRay 2020-10-16
zhuzhufxz 2020-09-16
dataminer 2020-08-17
bfcady 2020-08-16
FightFourEggs 2020-08-16
数据库设计 2020-08-16