1 在/etc/oratab中作如下修改
$ORACLE_SID:$ORACLE_HOME:Y
例如
cat /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"
例如
cat /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"
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27181165/viewspace-775855/
,如需转载,请注明出处,否则将追究法律责任。