我在 azure 中有 2 个虚拟机,一个是数据库服务器,另一个是 Web 服务器。
我可以获得这些服务器的远程桌面连接,并且 Web 服务器可以连接到数据库
sqlplus user/password@internal_network_ip:port/sid
但是我无法从本地系统连接到 Cloud DB。
我试过
sqlplus user/password@internal_ip:8552/sid
ORA-12170: TNS:Connect timeout occurred
sqlplus user/[email protected] /cdn-cgi/l/email-protection:8552/sid -- oracle port
ORA-12170: TNS:Connect timeout occurred
sqlplus user/[email protected] /cdn-cgi/l/email-protection:54955/sid -- port for cloud system used when taking remote desktop connection
ORA-12547: TNS:lost contact
sqlplus user/password@server_hostname:8552/sid
ORA-12154: TNS:could not resolve the connect identifier specified
但是我无法连接到数据库
我哪里错了?
您很可能需要在已部署 Oracle DB 的云服务上打开一个端点。我建议您将公共端口设置为默认 Oracle 端口以外的端口。
See the Azure 文档网站 https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/有关如何创建端点的说明。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)