修改etc/rc.d/rc.local參數文件,在後面加入如下兩行
[root@linux9 bin]# cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
su - oracle -c /oracle/product/11.2.0/dbhome_1/bin/dbstart
su - oracle -c /oracle/product/11.2.0/dbhome_1/bin/lsnrctl start
修改/etc/oratab參數文件,如果最後參數是N,則改為Y
px3309:/oracle/product/11.2.0/dbhome_1:Y
修改oracle目錄bin下的dbstart文件,更改如下參數為$ORACLE_HOME
ORACLE_HOME_LISTNER=$ORACLE_HOME