Oracle 设置开机自启动

1. 首先修改/etc/oratab添加
tst110:/u01/app/oracle/product/11.2.0/db:Y
上面三个参数的意义分别为,实例名、ORACLE HOME、是否允许使用dbstart启动数据库

2. 修改文件/etc/rc.d/rc.local,添加如下行:
su oracle -lc "/u01/app/oracle/product/11.2.0/db/bin/lsnrctl start"
su oracle -lc "/u01/app/oracle/product/11.2.0/db/bin/dbstart"

猜你喜欢

转载自blog.csdn.net/gaobudong1234/article/details/82467845
今日推荐