简体   繁体   English

使用 Sql Developer 连接远程 Oracle 19c 数据库

[英]Connecting Remote Oracle 19c Database using Sql Developer

I have installed Oracle 19 c server in system A. i can access Oracle Pluggable Database using Sql Developer with local host.我已经在系统 A 中安装了 Oracle 19 c 服务器。我可以使用带有本地主机的 Sql Developer 访问 Oracle Pluggable Database。 but want to access that Database from System B,in System B only installed Sql Develper.但想从系统 B 访问该数据库,在系统 B 中只安装了 Sql Develper。

1)what need to Change in System A for Remote access? 1)需要在系统A中进行哪些更改才能进行远程访问? 2)Do need any another files or Software other than sql developer to Connect Remote Oracle Database in System B? 2) 除了 sql developer 还需要其他文件或软件来连接系统 B 中的远程 Oracle 数据库吗? if need which have to install ?如果需要哪些必须安装?

You need to set up a listener, by default Oracle will use your host name and port 1521. You need network connectivity from your client (system B) to your server (system A).您需要设置一个侦听器,默认情况下 Oracle 将使用您的主机名和端口 1521。您需要从客户端(系统 B)到服务器(系统 A)的网络连接。 You would generally set up a tnsnames.ora file on the client so that you can refer to your database using a tns alias, this isn't necessary but can be very handy.您通常会在客户端上设置一个 tnsnames.ora 文件,以便您可以使用 tns 别名来引用您的数据库,这不是必需的,但会非常方便。 In SQL Developer in the client, when you create the connection for the database you would chose your new tnsnames entry or use the basic option and fill out the host etc.在客户端的 SQL Developer 中,当您为数据库创建连接时,您将选择新的 tnsnames 条目或使用基本选项并填写主机等。

System B should have a way to connect to database on system A. It is the network .系统 B 应该有办法连接到系统 A 上的数据库。它是网络

As SQL Developer doesn't require Oracle Client, you should be able to connect fairly easy.由于 SQL Developer 不需要 Oracle 客户端,因此您应该能够相当轻松地进行连接。 Though, you have to know certain details about the database itself.但是,您必须了解有关数据库本身的某些详细信息。

  • create new database connection创建新的数据库连接
  • enter username and password输入用户名和密码
  • use "Basic" connection type and provide使用“基本”连接类型并提供
    • host name (name of the database server; if you don't know it, use its IP address)主机名(数据库服务器的名称;如果您不知道,请使用其 IP 地址)
    • port (usually 1521)端口(通常是 1521)
    • SID or Service name SID 或服务名称

That should be all.这应该是全部。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM