How to connect to Azure Oracle 12c Database using sqlplus or sql developer cloud connection

五迷三道 提交于 2019-12-06 11:50:20

问题


I have 2 VM in azure one is a DB server and the other is a web server.

I can get remote desktop connection for both these servers and web server can connect to Database wih

sqlplus user/password@internal_network_ip:port/sid

But however I cannot connect to Cloud DB from my local system. I tried

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

However I cannot connect to the Database

Where am I going wrong?


回答1:


You most likely need to open an endpoint on the cloud service into which your Oracle DB has been deployed. I would recommend you make the public port something other than the default Oracle port.

See the Azure documentation site for instructions on how to create endpoint.



来源:https://stackoverflow.com/questions/30591569/how-to-connect-to-azure-oracle-12c-database-using-sqlplus-or-sql-developer-cloud

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!