lsnrctl start 可以正常启动
dbstart 启动不了 抛错如下:
[oracle@lc ~]$ dbstart
Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr
Processing Database instance "lc": log file /orac/product/10.2.0/startup.log
经过查询,和咨询,发现是dbstart脚本有点问题,在这里写出来,希望能帮到大家。
[root@lc ~]# vi /opt/oracle/product/10.2.0/bin/dbstart
77 # Set this to bring up Oracle Net Listener
78 #ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle
79 if [ ! $ORACLE_HOME_LISTNER ] ; then
80 echo "ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener"
把ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle注释掉
然后修改/home/oracle/.bash_profile
添加export ORACLE_HOME_LISTNER=$ORACLE_HOME一句
生效变量:
[root@lc ~]# source /home/oracle/.bash_profile
然后再lsnrctl start
dbstart 就可以了。
转载于:https://blog.51cto.com/betterliu/103141