-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Could not connect to RAC DB outside the Host through SQL Developer with CMAN #2951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please share following details:
|
2.[oracle@racnodepc1-cman ~]$ cmctl show services CMCTL for Linux: Version 19.0.0.0.0 - Production on 09-APR-2025 12:29:59 Copyright (c) 1996, 2019, Oracle. All rights reserved. Current instance CMAN_racnodepc1-cman.example.info is already started CMCTL:CMAN_racnodepc1-cman.example.info> show all |
Let us try to ease the filtering rules and make it work. Once it is working, if you want, we can add filtering rules based on your environment. Please execute following steps on corresponding containers and share the status: Login to CMAN container and execute following:
Let me know if you are seeing any issue. |
[oracle@racnodepc1-cman ~]$ cmctl shutdown CMCTL for Linux: Version 19.0.0.0.0 - Production on 16-APR-2025 09:00:55 Copyright (c) 1996, 2019, Oracle. All rights reserved. Current instance CMAN_racnodepc1-cman.example.info is already started [oracle@racnodepc1-cman admin]$ cat cman.ora CMAN_racnodepc1-cman.example.info = CMCTL for Linux: Version 19.0.0.0.0 - Production on 16-APR-2025 09:08:34 Copyright (c) 1996, 2019, Oracle. All rights reserved.
|
CMAN README is having wrong remote listener. The CMAN README mentioned the IP to be used is 10.0.20.15 but DNS container resolve the racnodepc1-cman to 10.0.20.166 and because of that ping was failing from RAC to CMAN. SQL> show parameter remote_list NAME TYPE VALUE remote_listener string racnodepc1-scan:1521,racnodepc Thanks a lot @psaini79 |
@srivallisudha , thanks for confirming it worked. We will fix the README.md and update you to grab the changes. |
Followed the documentation https://github.com/oracle/docker-images/blob/main/OracleDatabase/RAC/OracleRealApplicationClusters/docs/developers/README.md
to setup the rac db with 19c.
[root@rac-samples containerfiles]# podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0a107e854d3b localhost/oracle/rac-dnsserver:latest /bin/sh -c exec $... 4 hours ago Up 4 hours (healthy) rac-dnsserver
3cf5709f6793 localhost/oracle/rac-storage-server:latest 4 hours ago Up 4 hours (healthy) racnode-storage
2f72e18fd687 localhost/oracle/database-rac:19c 4 hours ago Up 4 hours (healthy) racnodep1
85e280b1e5e3 localhost/oracle/database-rac:19c 4 hours ago Up 4 hours (healthy) racnodep2
8575c0856506 localhost/oracle/client-cman:19.3.0 /bin/sh -c exec $... 2 hours ago Up 2 hours (healthy) 0.0.0.0:1521->1521/tcp racnodepc1-cman
able to connect inside the cman pod
[oracle@racnodepc1-cman ~]$ sqlplus sys/***@//racnodepc1-scan.example.info:1521/ORCLCDB as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Wed Mar 26 08:17:35 2025
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.25.0.0.0
SQL> exit
From sql developer tried to connect with HOST - ip address of the machine
Are there any configuration changes required to access from outside
one observation is inside the cman pod status is below.
[oracle@racnodepc1-cman /]$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 26-MAR-2025 09:04:34
Copyright (c) 1991, 2019, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=57891aa261a6)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
Linux Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 2: No such file or directory
Inside the racnodep1 updated the remote_listener but still not able to access.
[oracle@racnodep1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Wed Mar 26 08:30:34 2025
Version 19.25.0.0.0
Copyright (c) 1982, 2024, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.25.0.0.0
SQL> SHOW PARAMETER remote_listener;
NAME TYPE VALUE
remote_listener string racnodepc1-scan:1521,(DESCRIPT
ION=(ADDRESS_LIST=(ADDRESS=(PR
OTOCOL=TCP)(HOST=racnodepc1-cm
an)(PORT=1521))))
SQL> alter system set remote_listener='racnodepc1-scan:1521,racnodepc1-cman:1521' scope=both;
System altered.
SQL> alter system register;
System altered.
Please let me know if any changes required to access this rac db from outside
The text was updated successfully, but these errors were encountered: