当前位置: 首页 > 工具软件 > NetSet > 使用案例 >

显示oracle home is not set,oracle错误:ORACLE_HOME_LISTNER is not SET, unable to auto-start Oracle Net Li...

麻茂材
2023-12-01

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

解决方法

安装好Oracle数据库后:

执行

dbstart

和dbshut会提示:

[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的设置有问题

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

ORACLE_HOME_LISTNER=$1

,修改为

ORACLE_HOME_LISTNER=$ORACLE_HOME

然后修改/home/oracle/.bash_profile

添加export ORACLE_HOME_LISTNER=$ORACLE_HOME一句

生效变量:

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

参考:http://www.phperz.com/article/14/1216/41431.html

 类似资料: