客戶端連線RAC報ora-12545
Applies to:
Oracle Net Services - Version 10.2.0.5 to 11.2.0.3 [Release 10.2 to 11.2]Information in this document applies to any platform.
***Checked for relevance on 29-APR-2013***
Symptoms
When attempting to connect to a RAC service name, the connection intermittently fails with an ORA-12545 error: TNS: Host or object doesn't exist. The expected behavior. is that the connection would be redirected to any of the listener in the cluster where the listener is running on the VIP. This is normal under RAC Cluster node load balancing.
However, when the server side listener endpoints are not correctly configured OR the client cannot resolve all forms of the VIP hostname, this error can get thrown.
Changes
This is likely a new installation of RAC cluster.
Cause
Whe LOCAL_LISTENER is not set at all or is not set correctly, PMON can register both the VIP hostname and the physical hostname with the REMOTE_LISTENER. This is incorrect in RAC but if it does occur, the client can intermittently be routed to a listener endpoint on either of these addresses. If the client is unable to resolve the physical hostname or even the vip hostname, the connection will fail with ORA-12545.
And important first set is to check the output for : lsnrctl services
You should not see the physical hostname in the handler information for your RAC instances. Here's an example of an incorrect lsnrctl services
Service "oracle.oracle.com" has 2 instance(s).
Instance "orcl1", status READY, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=myphysicalhost1)(PORT=1521))
"DEDICATED" established:326 refused:0 state:ready
LOCAL SERVER
Instance "orcl2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:394371 refused:0 state:ready
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=myphysicalhost2)(PORT=1521))
Here's an example of what it ought to look like when LOCAL_LISTENER is configured correctly:
lsnrctl services oracle_rac_listener
Service "oracle.oracle.com" has 2 instance(s).
Instance "orcl1", status READY, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=myVIP_host1)(PORT=1521))
"DEDICATED" established:326 refused:0 state:ready
LOCAL SERVER
Instance "orcl2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:394371 refused:0 state:ready
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=myVIP_host2)(PORT=1521))
Solution
Log in with privileges to the instance and issue the following commands so that LOCAL_LISTENER is set correctly:
alter system set LOCAL_LISTENER="(address=(protocol=tcp)(port=1521)(host=
Do the same for the 2nd instance where host is set to the
alter system set LOCAL_LISTENER="(address=(protocol=tcp)(port=1521)(host=
Now the correct address using the VIP hostname will be registered against the listeners in the cluster.
The client should be able to resolve all forms of the VIP host via their /etc/hosts file. i.e. short name and fully qualified.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-762330/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- impala客戶端連線客戶端
- ORACLE RAC中連線ScanIP報錯ORA-12545的問題解決Oracle
- mysql、redis 客戶端連線池MySqlRedis客戶端
- Redis客戶端連線數DevOpsRedis客戶端dev
- Java 客戶端 Jedis和JedisPool 連線池Java客戶端
- Oracle 19c中連線RMAN客戶端的連線方法Oracle客戶端
- 客戶端怎麼連線到伺服器?客戶端伺服器
- 使用 WebSocket 客戶端連線 MQTT 伺服器Web客戶端MQQT伺服器
- 使用 Java 客戶端透過 HTTPS 連線到 EasysearchJava客戶端HTTP
- Presto學習筆記——Go客戶端連線PrestoREST筆記Go客戶端
- gRPC學習記錄(六)--客戶端連線池RPC客戶端
- HTTP客戶端連線,選擇HttpClient還是OkHttp?HTTP客戶端client
- 4.2.14 啟用客戶端快速連線故障轉移客戶端
- ESP作為單連線中的TCP客戶端TCP客戶端
- php連結nsq客戶端PHP客戶端
- [重慶思莊每日技術分享]-ORACLE RAC中連線ScanIP報錯ORA-12545的問題解決Oracle
- 使用PLSQL客戶端登入ORACLE時報ORA-12502和ORA-12545錯誤的解決方案SQL客戶端Oracle
- 微服務整合Spring Cloud Alibaba Seata (二) 客戶端連線微服務SpringCloud客戶端
- 如何使用Redshift客戶端工具SQL Workbench來連線Redshift客戶端SQL
- 0039-如何使用PythonImpyla客戶端連線Hive和ImpalaPython客戶端Hive
- OceanBase學習之路7|透過 MySQL 客戶端連線 OceanBase 租戶MySql客戶端
- 掌握遠端連線,暢享Mac SSH客戶端Termius的便利之道Mac客戶端
- TCP協議服務端和客戶端的連線與通訊TCP協議服務端客戶端
- netty服務端監聽客戶端連線加入和斷開事件Netty服務端客戶端事件
- Qt TCP通訊客戶端斷開連線有哪些方法QTTCP客戶端
- 4.2.14.1 關於啟用客戶端快速連線故障轉移客戶端
- Android客戶端網路預連線優化機制探究Android客戶端優化
- 第三方客戶端連線網易郵箱客戶端
- python中socket建立客戶連線Python
- 某客戶系統tomcat連線池連線異常Tomcat
- netty建立數萬客戶端連線,並主動發訊息Netty客戶端
- Android客戶端網路預連線最佳化機制探究Android客戶端
- MQTT 客戶端自動重連實踐|構建可靠 IoT 裝置連線MQQT客戶端
- Golang 實現客戶端與伺服器端UDP協議連線通訊Golang客戶端伺服器UDP協議
- 低版本客戶端連線高版本資料庫報錯ORA-28040、ORA-01017客戶端資料庫
- MQTT 客戶端自動重連最佳實踐|構建可靠 IoT 裝置連線MQQT客戶端
- Redis處理客戶端連線的內部實現機制RXRedis客戶端
- 4.2.14.3 為Oracle呼叫介面客戶端啟用快速連線故障轉移Oracle客戶端
- 【LISTENER】Oracle分析連線監聽情況,判斷客戶端IP分佈Oracle客戶端