Pergunta

Estou tendo um problema com meu ambiente RAC.Estou usando RedHat 6, Oracle 11.2.0.4 SE.Tenha uma configuração RAC de 2 nós usando ASM.

Ao me conectar usando o SQL Developer, posso me conectar ao meu serviço (dev1.xxxx-dmz.local) se me conectar diretamente a qualquer um dos nós do cluster, mas quando tento usar o nome do cluster, recebo a seguinte mensagem

Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection

Eu tenho o seguinte cluster CSYA-OR com 3 endereços IP (172.28.1.191, 192, 193) csya-orarac1 (172.28.1.91) csya-orarac1-vip (172.28.1.95) csya-orarac2 (172.28.1.2.2.2.2.2.2.2.2.2.2.2.2.2.28.1.95) csya-orac2-vip (172.28.1.96)

saída

$ORACLE_GRID/bin/srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node csya-orarac2
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node csya-orarac1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node csya-orarac1

$ORACLE_GRID/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node csya-orarac2
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node csya-orarac1
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node csya-orarac1

csya-orarac1

./lsnrctl status listener

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-MAY-2015 12:05:16
Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                08-MAY-2015 11:30:10
Uptime                    0 days 0 hr. 35 min. 6 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/csya-orarac1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.28.1.91)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.28.1.95)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "dev1.xxxx-dmz.local" has 1 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
Service "dev1XDB.xxxx-dmz.local" has 1 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
The command completed successfully

csya-orarac1

./lsnrctl status listener_scan2
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-MAY-2015 12:06:48


Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_SCAN2
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                08-MAY-2015 11:30:04
Uptime                    0 days 0 hr. 36 min. 44 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/11.2.0/grid/log/diag/tnslsnr/csya-orarac1/listener_scan2/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN2)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.28.1.192)(PORT=1521)))
Services Summary...
Service "dev1.xxxx-dmz.local" has 2 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
  Instance "dev12", status READY, has 1 handler(s) for this service...
Service "dev1XDB.xxxx-dmz.local" has 2 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
  Instance "dev12", status READY, has 1 handler(s) for this service...
The command completed successfully

csya-orarac1

./lsnrctl status listener_scan3

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-MAY-2015 12:10:50

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_SCAN3
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                08-MAY-2015 11:30:05
Uptime                    0 days 0 hr. 40 min. 44 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/11.2.0/grid/log/diag/tnslsnr/csya-orarac1/listener_scan3/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN3)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.28.1.191)(PORT=1521)))
Services Summary...
Service "dev1.xxxx-dmz.local" has 2 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
  Instance "dev12", status READY, has 1 handler(s) for this service...
Service "dev1XDB.xxxx-dmz.local" has 2 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
  Instance "dev12", status READY, has 1 handler(s) for this service...
The command completed successfully

csya-orarac1

nslookup csya-or-cluster
Server:         172.28.1.42
Address:        172.28.1.42#53

Name:   csya-or-cluster.xxxx-dmz.local
Address: 172.28.1.191
Name:   csya-or-cluster.xxxx-dmz.local
Address: 172.28.1.193
Name:   csya-or-cluster.xxxx-dmz.local
Address: 172.28.1.192

csya-orarac2

./lsnrctl status listener_scan1

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-MAY-2015 12:07:51

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_SCAN1
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                08-MAY-2015 11:30:02
Uptime                    0 days 0 hr. 37 min. 49 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File         /u01/app/11.2.0/grid/log/diag/tnslsnr/csya-orarac2/listener_scan1/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.28.1.193)(PORT=1521)))
Services Summary...
Service "dev1.xxxx-dmz.local" has 2 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
  Instance "dev12", status READY, has 1 handler(s) for this service...
Service "dev1XDB.xxxx-dmz.local" has 2 instance(s).
  Instance "dev11", status READY, has 1 handler(s) for this service...
  Instance "dev12", status READY, has 1 handler(s) for this service...
The command completed successfully

csya-orarac2

nslookup csya-or-cluster
Server:         172.28.1.42
Address:        172.28.1.42#53

Name:   csya-or-cluster.xxxx-dmz.local
Address: 172.28.1.193
Name:   csya-or-cluster.xxxx-dmz.local
Address: 172.28.1.191
Name:   csya-or-cluster.xxxx-dmz.local
Address: 172.28.1.192

posso me conectar localmente usando sqlplus com o seguinte de qualquer nó

sqlplus system/xxxxxxx@csya-or-cluster.xxxx-dmz.local:1521/dev1.xxxx-dmz.local

os parâmetros do ouvinte em csya-orarac1 são definidos como

SQL> show parameter _listener

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
local_listener                       string      (DESCRIPTION=(ADDRESS_LIST=(AD
                                                 DRESS=(PROTOCOL=TCP)(HOST=xxxx
                                                 -orarac1.xxxx-dmz.local)(PORT=
                                                 1521))))
remote_listener                      string      csya-or-cluster.xxxx-dmz.local
                                                 :1521

os parâmetros do ouvinte em csya-orarac2 são definidos como

SQL> show parameter _listener

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
local_listener                       string      (DESCRIPTION=(ADDRESS_LIST=(AD
                                                 DRESS=(PROTOCOL=TCP)(HOST=csya
                                                 -orarac2.xxxx-dmz.local)(PORT=
                                                 1521))))
remote_listener                      string      csya-or-cluster.xxxx-dmz.local
                                                 :1521

arquivo hosts em ambos os nós

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.28.92   rhproxy.xxxxxxxxx.com

#Public Host Names
172.28.1.91     csya-orarac1.xxxx-dmz.local csya-orarac1
172.28.1.92     csya-orarac2.xxxx-dmz.local csya-orarac2

#Private Host Names
172.28.97.91    csya-orarac1-priv.xxxx-dmz.local csya-orarac1-priv
172.28.97.92    csya-orarac2-priv.xxxx-dmz.local csya-orarac2-priv

#Virtual Host Names
172.28.1.95     csya-orarac1-vip.xxxx-dmz.local csya-orarac1-vip
172.28.1.96     csya-orarac2-vip.xxxx-dmz.local csya-orarac2-vip

172.28.1.229    rhproxy rhproxy.xxxxxxxxxx.com

espero que um de vocês possa ver o que está errado. Já vi outras pessoas terem problemas semelhantes online, mas nenhuma das soluções postadas parece funcionar para mim.

obrigado

Foi útil?

Solução

O problema era que os endereços VIP não podiam ser acessados ​​pela porta 1521 devido à nossa política de firewall.Esses IPs agora são permitidos e o problema foi resolvido.graças a Balazs por toda a ajuda.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a dba.stackexchange
scroll top