如何使用 sqlplus 或 sql 开发人员云连接连接到 Azure Oracle 12c 数据库
How to connect to Azure Oracle 12c Database using sqlplus or sql developer cloud connection
我在 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/password@xxxx.something.net:8552/sid -- oracle port
ORA-12170: TNS:Connect timeout occurred
sqlplus user/password@xxxx.something.net: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 数据库的云服务上打开端点。我建议您将 public 端口设为默认 Oracle 端口以外的端口。
有关如何创建端点的说明,请参阅 Azure documentation site。
我在 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/password@xxxx.something.net:8552/sid -- oracle port
ORA-12170: TNS:Connect timeout occurred
sqlplus user/password@xxxx.something.net: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 数据库的云服务上打开端点。我建议您将 public 端口设为默认 Oracle 端口以外的端口。
有关如何创建端点的说明,请参阅 Azure documentation site。