RAC Connection Redirected To Wrong Host/IP ORA-12545 文档 ID: 注释:364855.1 类型: PROBLEM 上次修订日期: 24-JUN-2006 状态: MODERATED
In this Document
Symptoms
Cause
Solution
References
| This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review. |
Oracle Net Services - Version: 9.0.1.4 to 10.2.0.3
This problem can occur on any platform.
When we try to connect to a RAC service name we sometimes get redirected by the first node's listener to the public address/hostname of the second node instead of its VIP address. An ORA-12545 error may be generated if that public hostname is not configured in DNS.
We were expecting the connection to eventually be redirected to the VIP of the other node.
The Database on one RAC node remote registers with the wrong local IP address to the listener on the other RAC node (e.g. the public IP address instead of the wanted VIP address).
The PMON process handles database registration to the local and remote listeners. For remote listeners registration PMON will have to find out what is the IP address of the local system in order to present it to the remote listener as database contact address.
In the default Oracle configuration, for hosts which have more than one IP address configured on the network interfaces, it is undefined which IP address will be selected for remote registration.
Modify the local_listener database parameter to point to the local VIP address. For the parameter value use either an alias name which contains in the DESCRIPTION field only the VIP address or use an explicit name like the following:
local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST =) (PORT = 1521))'
The local_listener database parameter will give PMON a hint in respect of which IP address it should use for remote registration with other nodes' listener(s).
个人的经验,不用那样处理,把VIP 对应的HOSTNAME 写到客户端的HOSTS 文件中也能解决
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7318139/viewspace-909518/ ,如需转载,请注明出处,否则将追究法律责任。