OEM报错:ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach)

#oracle版本 10.2.0.1

OEM登录报错,ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach)

重启lsnrctl,emctl多次无效。

删除listener.ora,tnsnames.ora,使用netmgr配置后问题无法解决。

网上找了下资料,问题listener.ora:

LISTENER =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.217.2)(PORT = 1521))
  )


应更正为:

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.217.2)(PORT = 1521))
    )
  )

即需要添加

DESCRIPTION_LIST =

一行。

使用netca配置后,文件已更正,问题消失。


原因尚不能解释。



10g文档里面此报错信息:

ORA-12541: TNS:no listener
Cause: The connection request could not be completed because the listener is not running.
Action: Ensure that the supplied destination address matches one of the addresses used by the listener - compare the TNSNAMES.ORA entry with the appropriate LISTENER.ORA file (or TNSNAV.ORA if the connection is to go by way of an Interchange). Start the listener on the remote machine.
大意是说:监听没有运行导致连接请求没有完成。解决办法是检查tnsnames.ora和listener.ora文件IP地址是否匹配,如否,改成一样后启动监听。

感觉这种说法和我遇到的问题不吻合。

你可能感兴趣的:(OEM报错:ORA-12541: TNS:no listener (DBD ERROR: OCIServerAttach))