我试图连接到我创建的AWS RDS。我使用SQL Developer添加连接。我使用了Oracle的默认SYSTEM用户。通过添加以下条目,我已经配置了我的tnsnames和侦听器文件。
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = final.c3ixwyhkuph6.ap-south-1.rds.amazonaws.com)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
)
)
FINAL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 'final.c3ixwyhkuph6.ap-south-1.rds.amazonaws.com')(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = final)
)
)
LISTENER_FINAL =
(ADDRESS = (PROTOCOL = TCP)(HOST = final.c3ixwyhkuph6.ap-south-1.rds.amazonaws.com)(PORT = 1521))
如您在此屏幕截图中所见
AWS RDS Description Screenshot
主机名是“ final.c3ixwyhkuph6.ap-south-1.rds.amazonaws.com”,端口号是1521。此外,此处的SID是“ final”。这些已由我上面的TNSNAMES和LISTENER条目正确添加。
但是,当我尝试连接时,会显示以下内容
状态失败-测试失败:IO错误:网络适配器无法建立连接。
错误的根源是什么?