简体   繁体   English

无法在 RHEL 7.6 上启动监听器 oracle 12c

[英]Cannot start listener oracle 12c on RHEL 7.6

I installed Oracle Database on RHEL.7.6.我在 RHEL.7.6 上安装了 Oracle 数据库。 However, after restart server, I cannot startup listener with command though Oracle Instance already been started.但是,重新启动服务器后,尽管 Oracle 实例已经启动,但我无法使用命令启动侦听器。 :

lsnrctl start lsnrctl 启动

It shows:表明:

System parameter file is /u01/app/oracle/product/12.2.0/db1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/hungnv-fico1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
TNS-01155: Incorrectly specified SID_LIST_LISTENER parameter in LISTENER.ORA
 NL-00305: the specified path name does not exist

This is my LISTENER.ORA file这是我的 LISTENER.ORA 文件

SID_LIST_LISTENER= (SID_LIST= (SID_DESC= (GLOBAL_DBNAME=orcl) (ORACLE_HOME=$ORACLE_BASE/product/12.2.0/db1)(SERVICE_NAME=orcl) ) ) SID_LIST_LISTENER= (SID_LIST= (SID_DESC= (GLOBAL_DBNAME=orcl) (ORACLE_HOME=$ORACLE_BASE/product/12.2.0/db1)(SERVICE_NAME=orcl) )

My first thinking is that I was properly set the path wrongly.我的第一个想法是我正确设置了错误的路径。 However, I've tried to:但是,我尝试过:

echo $ORACLE_HOME
/u01/app/oracle/product/12.2.0/db1

在此处输入图像描述

Any idea for this?有什么想法吗?

Don't use the variable in the LISTENER.ORA file.不要使用 LISTENER.ORA 文件中的变量。 Specify the absolute path.指定绝对路径。

SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(GLOBAL_DBNAME=orcl)(ORACLE_HOME=/u01/app/oracle/product/12.2.0/db1)(SERVICE_NAME=orcl)))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM