记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。

oracle错误:ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener

解决方法 

安装好Oracle数据库后:

执行

1
 dbstart

和dbshut会提示:

1
2
3
[oracle@oracle11g ~]$ dbstart
ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener
Usage: /u01/app/oracle/oracle/product/10.2.0/db_1/bin/dbstart ORACLE_HOME

错误原因 dbstart和dbshut脚本文件中ORACLE_HOME_LISTNER的设置有问题

解决方法 分别打开两个文件找到:

1
ORACLE_HOME_LISTNER=$1

,修改为 

1
ORACLE_HOME_LISTNER=$ORACLE_HOME

然后修改/home/oracle/.bash_profile 

添加export ORACLE_HOME_LISTNER=$ORACLE_HOME一句 

生效变量:

1
[root@oracle01 ~]# source /home/oracle/.bash_profile


转载请标明出处【oracle错误:ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Listener】。

《www.micoder.cc》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论