Skip to content

Could not connect to RAC DB outside the Host through SQL Developer with CMAN #2951

Closed
@srivallisudha

Description

@srivallisudha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions