Home  >  Article  >  Database  >  Linux下Oracle 10g无法启动监听解决方法

Linux下Oracle 10g无法启动监听解决方法

WBOY
WBOYOriginal
2016-06-07 16:58:491406browse

Linux下如果启动监听程序的时候出现没有任何提示信息,请查看你的/etc/hosts文件的内容格式是否正确,不正确请改之;改完之后再次

Linux下如果启动监听程序的时候出现没有任何提示信息,,请查看你的/etc/hosts文件的内容格式是否正确,不正确请改之;改完之后再次启动lsncrtl start命令,可能会提示TNS-01150和TNS-01153错误,注意观察有错误的那行信息,造成这种错误的原因很可能是DESCRIPTION里的信息(包括ADDRESS、HOST、PORT)有某几个是不正确的,此时查看$Oracle_HOME/product/10.2.0/network/admin/listener.ora文件,如下所示:

# listener.ora Network Configuration File: /data/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /data/oracle/product/10.2.0/db_1)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
     (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.120)(PORT = 1521))
    )


注意红色一行的字体,大家可以按照这种格式来修改本机的listener.ora文件

之后再运行lsncrtl start命令,看看是否能正常启动监听!

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn