修改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
阅读(1958) | 评论(0) | 转发(0) |