编辑以下两个文件
/etc/oratab
格式为:SID:ORACLE_HOME:AUTO
把AUTO域设置为Y(大写),我的为:
test:/u01/app/oracle/product/10.2.0/db_1:Y
/etc/rc.d/rc.local
添加以下启动命令
su - oracle -c "/u01/app/oracle/product/10.2.0/db_1/bin/lsnrctl start"
su - oracle -c "/u01/app/oracle/product/10.2.0/db_1/bin/dbstart"
保存后重启系统,ORACLE便可直接连接
转载于:https://blog.51cto.com/slywraith/1052619