ORA-12545: TNS:name lookup failureCause: The listener on the remote node cannot be contacted.Action: Perform these steps:Verify that the ADDRESS in the tnsnames.ora file and the listener.ora file is correct. 
Verify that the listener on the remote node has been started. Enter: 
lsnrctl
LSNRCTL> STATUS [listener_name]
listener_name is the name of the listener defined in the listener.ora file. It is not necessary to identify the listener if you are using the default listener, named LISTENER.If the output indicates the listener is not running, try starting it with the command:LSNRCTL> START [listener_name]

解决方案 »

  1.   

    是tnsnames.ora中oradb配置的问题
    仔细比对一下,10.10.10.2与10.1.1.3之中oradb的配置一定不样
      

  2.   

    补充一下:
    我在10.10.10.2的主机上用 c:/tnsping  oradb 显示正常的解析地址是10.1.1.2,大概30毫秒,证明解析是ok的。通过在地址栏里面输入:  \\10.1.1.2也可以访问到该主机,证明该主机可以被访问。但是我通过c:/sqlplus user/pw@oradb 连接却提示ora-12545错误。
    我换到10.1.1.3的机器上用c:/sqlplus user/pw@oradb 却可以正常的访问,证明oradb数据库是listener是ok的,请高手回答这是为什么?同样的我在10.10.10.2的主机上用 c:/sqlplus 可以正常连接10.1.1.3机器上的oracle数据库,现在问题就是10.10.10.2可以连接10.1.1.3的oracle数据库,但是不能连接10.1.1.2的数据库,而10.1.1.3却可以正常的连接10.1.1.2;我被这给难住了。10.1.1.2和10.1.1.3都是一个版本的数据库,并且连接在一个hub上,但是与10.10.10.2不在一个vlan里面。
      

  3.   

    那么问个问题:
    你在10.1.1.2上面有几个侦听服务呢?
    还有就是侦听的数据库添加了吗?
    比如你在10.1.1.2上有一个侦听使用1521端口,该侦听却没有添加数据库,又有另外一个侦听填加了库,就会出现上面的情况tnsping只是到目的地的1521端口看看有没有侦听,仅此而已
      

  4.   

    在tnsnames.ora里面查看一下
    连接到1.2和1.3的数据库的oradb服务名配置是否一样?
      

  5.   

    要么在tnsnames.ora里面查看一下,简单办法是将oradb服务名删掉然后重新加一遍。这可能是因某种操作把tnsnames.ora文件破坏了。