- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2014-4-16 20:09:10
ODM FINDING:
please check:
Bug 10385510 - JDBC TCPS connections via SCAN listeners fail when one of the listeners is down (Doc ID 10385510.8)
JDBC TCPS Connections Do Not Failover For SCAN Listeners (Doc ID 1289244.1)
JDBC thin 11.2.0.1 and 11.2.0.2 connections over TCPS fail with the following error when one of the SCAN
listeners and associated VIP are disabled/stopped and do not fail over to the
other available SCAN listeners.
IO Error: The Network Adapter could not establish the connection
ORA-12541: TNS No Listener
JDBC TCP connections and sqlplus/OCI connections work as expected and failover correctly.
CAUSE
JDBC TCPS connections do not failover using SCAN listeners.
The following bug addresses the problem:
Bug 10385510 - JDBC TCPS CONNECTIONS DO NOT FAILOVER USING SCAN LISTENERS
SOLUTION
Apply patch 10385510
or
Upgrade to JDBC 11.2.0.3 or higher where the issue is fixed.
Intermittent ORA-12541 when Connecting via SCAN listener in RAC (Doc ID 1547757.1)
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.
SYMPTOMS
When using scan name to connect to a RAC database RACPROD on a 2 node production cluster, intermittently getting ORA-12541: "TNS:no listener".
CAUSE
Case I. An instance named RACPROD is running on the TEST server, its remote_listener is wrongly set to <SCAN>:1521 which is pointing to the production cluster, causing it registered with scan listeners. Client connections made via LISTENER_SCAN<n> are diverted to this instance. With IP 127.0.0.1 registered, this is no listener listener on this IP, hence error ORA-12541 reported.
[grid@srvprod1 ~]$ lsnrctl services LISTENER_SCAN1
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 16-APR-2013 17:45:20
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
Services Summary...
Service "RACPROD" has 3 instance(s).
Instance "RACPROD", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:44 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))) <<<< this is the problem.
Instance "RACPROD1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:53 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.1.1)(PORT=1521)))
Instance "RACPROD2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:80 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.1.1.2)(PORT=1521)))
Case II. Another possible cause for ORA-12541 for client connection using the <SCAN>:1521 from a client machine, while the scan listeners running fine on the cluster is the network setup blocking the connection.A simple test like the following will show the error:
$ telnet <SCAN> 1521
Trying 10.1.1.10...
Connected to scan.example.com (10.1.1.10). Connection refused
Trying 10.1.1.11...
Connected to scan.example.com (10.1.1.11). Connection refused
Trying 10.1.1.12...
Connected to scan.example.com (10.1.1.12). Connection refused
In this case, ORA-12541 is constantly reported for the connections made from client machine, when the same connection string has no issue from the cluster node itself.
SOLUTION
Case I. Unset the remote_listener for the single instance RACPROD on the TEST server. If the remote_listener is required, set it to proper value, not pointing to the production cluster.
alter system set remote_lisetener='' scope=both;
Case II. Please engage network admin to modify the network configuration and allow connection to the SCAN IP from outside the cluster nodes. |
|