简体   繁体   English

如何使用sqlplus或sql开发人员云连接连接到Azure Oracle 12c数据库

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

I have 2 VM in azure one is a DB server and the other is a web server. 我有2个VM,其中一个是DB服务器,另一个是Web服务器。

I can get remote desktop connection for both these servers and web server can connect to Database wih 我可以获得这些服务器的远程桌面连接,并且Web服务器可以连接到数据库wih

sqlplus user/password@internal_network_ip:port/sid

But however I cannot connect to Cloud DB from my local system. 但是,我无法从本地系统连接到Cloud DB。 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? 我要去哪里错了?

You most likely need to open an endpoint on the cloud service into which your Oracle DB has been deployed. 您很可能需要在已部署Oracle DB的云服务上打开一个端点。 I would recommend you make the public port something other than the default Oracle port. 我建议您将公共端口设置为默认Oracle端口以外的其他端口。

See the Azure documentation site for instructions on how to create endpoint. 有关如何创建终结的说明,请参见Azure文档站点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Oracle 12c无法使用sqlplus连接到数据库 - Oracle 12c cannot connect to database with sqlplus 在Oracle 12c上全新安装时,无法将SQL Developer连接到数据库 - Cannot connect on SQL developer to a database on fresh installation on oracle 12c 是否可以使用Hibernate连接到oracle 12c可插拔数据库? - Is it possible to connect to oracle 12c pluggable database using Hibernate? Oracle sqlplus 12c错误与查询 - Oracle sqlplus 12c error with queries 如何使用Oracle SQLPlus使用SSH连接类型连接到数据库? - How to connect to a database using SSH connection type using Oracle SQLPlus? Sql Developer 可以连接Oracle Database 12c 和TNS 但是不能连接basic - Sql Developer can conect Oracle Database 12c with TNS but can not connected with basic Oracle数据库12c尝试连接时出错:网络适配器无法建立连接 - Oracle database 12c Error while trying to connect: The Network Adapter could not establish the connection 在新安装的 Oracle 12c 中无法连接到数据库 - Cannot connect to database in new installation of Oracle 12c 如何在Microsoft Azure中使用“ Oracle的Oracle Database 12c标准版”映像 - How to use “Oracle Database 12c Standard Edition by Oracle” image in Microsoft Azure 如何在Oracle RAS(Oracle 12c)中使用应用程序用户创建jdbc连接 - how to create a jdbc connection using application user in Oracle RAS (Oracle 12c)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM