sles10下Oracle10gR2的开机自启动需要改动三个文件:/etc/sysconfig/oracle,/etc/oratab,/opt/oracle/product/10.2/db_1/bin/db/dbstart
/etc/sysconfig/oracle文件:
START_ORACLE_DB="yes"
START_ORACLE_DB_LISTENER="yes"
/etc/oratab文件:
orcl:/opt/oracle/product/10.2/db_1:Y
/opt/oracle/product/10.2/db_1/bin/db/dbstart文件:
ORACLE_HOME_LISTNER=$ORACLE_HOME
查看Oracle数据库是否正确启动:
oracle@oracle10g:~> ps -ef | grep ora
root 3247 2899 0 19:28 ? 00:00:00 hald-addon-storage
oracle 3971 1 0 19:28 ? 00:00:00 /opt/oracle/product/10.2/db_1/bin/tnslsnr LISTENER -inherit
oracle 4164 1 0 19:29 ? 00:00:00 ora_pmon_orcl
oracle 4167 1 0 19:29 ? 00:00:00 ora_psp0_orcl
oracle 4169 1 0 19:29 ? 00:00:00 ora_mman_orcl
oracle 4172 1 0 19:29 ? 00:00:00 ora_dbw0_orcl
oracle 4175 1 0 19:29 ? 00:00:00 ora_lgwr_orcl
oracle 4177 1 0 19:29 ? 00:00:00 ora_ckpt_orcl
oracle 4179 1 1 19:29 ? 00:00:03 ora_smon_orcl
oracle 4181 1 0 19:29 ? 00:00:00 ora_reco_orcl
oracle 4183 1 0 19:29 ? 00:00:00 ora_cjq0_orcl
oracle 4185 1 1 19:29 ? 00:00:03 ora_mmon_orcl
oracle 4187 1 0 19:29 ? 00:00:00 ora_mmnl_orcl
oracle 4192 1 0 19:29 ? 00:00:00 ora_d000_orcl
oracle 4194 1 0 19:29 ? 00:00:00 ora_s000_orcl
oracle 4205 1 0 19:29 ? 00:00:00 ora_qmnc_orcl
oracle 4237 1 0 19:29 ? 00:00:00 ora_q000_orcl
oracle 4280 1 0 19:29 ? 00:00:00 ora_q001_orcl
oracle 4463 4360 0 19:31 pts/0 00:00:00 su - oracle
oracle 4464 4463 0 19:31 pts/0 00:00:00 -bash
oracle 4533 1 0 19:33 ? 00:00:00 ora_j000_orcl
oracle 4570 4464 0 19:33 pts/0 00:00:00 ps -ef
oracle 4571 4464 0 19:33 pts/0 00:00:00 grep ora
启动成功!