1、修改/etc/oratab最后一行sid:/u01/app/oracle/product/11.2.0/dbhome_1:N改为
sid:/u01/app/oracle/product/11.2.0/dbhome_1:Y(其中sid为想要启动的database)
2、改/etc/rc.local
echo "su - oracle -c 'lsnrctl start'" >> /etc/rc.local
echo "su - oracle -c 'dbstart'" >> /etc/rc.local
阅读(1358) | 评论(0) | 转发(0) |