oracle监听程序无法启动

本文记录了作者在启动Oracle监听程序时遇到的端口配置问题。在错误提示下,作者检查了listener.ora文件,发现监听端口未配置。通过一系列步骤,包括检查主机名、网络配置、日志文件等,最终发现并解决了由于缺少监听端口导致的启动失败问题。作者提醒读者,对于数据库安装过程中的错误不应忽视,以避免后续出现类似问题。
摘要由CSDN通过智能技术生成

前言
    我自以为对oracle的监听这一块的知识还是比较扎实的,直到这次遇到了lsnrctl start 报错,经过我初步检查之后没有发现什么可疑之处,于是我开始认识到我的知识的不足,便开始查找资料,各种关于oracle listener的文件,博客,网站的介绍。但是让我感觉奇怪的是,我找了半天的listener启动失败的博客,竟然没有一个是符合我这种条件的,于是我开始了自解之路 ,直到我真正发现了问题的所在地,我才恍然大屋--我的监听程序没有配置监听端口。
    关于我的这个监听端口号的问题,我想一般情况下不会有第二个我了,在安装数据库的时候oracle报告了一些错误,当时我并没有在意,当我启动oracle listener的时候问题出现了于是有了我的一趟弯路之行。
  

[oracle@BaiFei]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-SEP-2012 17:33:28

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /opt/oracle/product/10.2.0/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production

System parameter file is /opt/oracle/product/10.2.0/network/admin/listener.ora

Log messages written to /opt/oracle/product/10.2.0/network/log/listener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))

TNS-01150: The address of the specified listener name is incorrect

 TNS-01153: Failed to process string: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=pro)(PORT=null)))

Listener failed to start. See the error message(s) above...

[oracle@BaiFei$

检查监听程序的配置文件内容

[oracle@BaiFei]$ cat /opt/oracle/product/10.2.0/network/admin/listener.ora

# listener.ora Network Configuration File: /opt/oracle/product/10.2.0/network/admin/listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

  (SID_LIST =    (SID_DESC =(SID_NAME = PLSExtProc)

                 (ORACLE_HOME = /opt/oracle/product/10.2.0)

                  (PROGRAM = extproc))

                  )

LISTENER =

  (DESCRIPTION_LIST =(DESCRIPTION =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))

      (ADDRESS = (PROTOCOL = TCP)(HOST = pro)(PORT = null))

    )

  )

[oracle@]$

检查日志文件

[oracle@BaiFei]$ cat /opt/oracle/product/10.2.0/network/log/listener.log

TNSLSNR for Linux: Version 10.2.0.1.0 - Production on 13-SEP-2012 13:42:46

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

System parameter file is /opt/oracle/product/10.2.0/network/admin/listener.ora

Log messages written to /opt/oracle/product/10.2.0/network/log/listener.log

Trace information written to /opt/oracle/product/10.2.0/network/trace/listener.trc

Trace level is currently 0

Started with pid=7839

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))

TNS-01150: The address of the specified listener name is incorrect

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值