如何在LAN连接中使用SQL开发人员从另一台计算机连接Oracle 11G数据库 [英] How to connect Oracle 11G database using SQL developer from another computer in a LAN connection

查看:256
本文介绍了如何在LAN连接中使用SQL开发人员从另一台计算机连接Oracle 11G数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库和学习Oracle 11G中非常新。所以,我对此没有深入的了解。

I am very new in database and learning Oracle 11G. So, I do not have deep knowledge on it.

我的实验室里有几台电脑通过局域网连接。 Oracle 11G安装在计算机-A(192.18.100.115)中。现在我想使用我的实验室中的其他计算机的数据库通过安装到所有计算机的SQL Developer。

I have several computers in my lab connected via LAN. Oracle 11G is installed in computer-A(192.18.100.115). Now I want to use the database from other computers in my Lab via SQL Developer that is installed into all Computers.

您能解释一下吗?


  1. 我需要在电脑A从其他计算机授予访问权限?

  2. 在其他计算机上需要做什么才能从计算机A访问?

我将感激,如果任何一个给我一个适当的解决方案。

I will be grateful if any one gives me a proper solution.

推荐答案



  1. 我需要在计算机A从其他计算机访问?


您需要确保 LISTENER 已启动并正在运行以接受远程连接请求。 Listener.ora 是用于配置Oracle数据库侦听器的SQL * Net配置文件。您通常会在 ORACLE_HOME\NETWORK\ADMIN 目录中找到。

You need to make sure the LISTENER is up and running to accept remote connection requests. Listener.ora is a SQL*Net configuration file used to configure Oracle Database Listeners. You will usually find that in ORACLE_HOME\NETWORK\ADMIN directory.

例如,

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
      )
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = ORCL)
      (ORACLE_HOME = /u01/app/oracle/product/11.2.0)
      (SID_NAME = ORCL)
    )
  )

正如你提到的主机 192.18.100.115 ,您需要将其放在主机名中。

As you mentioned your host 192.18.100.115, you need to put it in the hostname.



  1. 在其他计算机上需要做什么才能从计算机A访问?


您只需安装 Oracle数据库客户端。如果您只想连接到远程DB服务器,则只能安装即时客户端

You just need to install Oracle database client. If you only want to connect to the remote DB server, you could install only Instant client.

如果您使用的是SQL Developer,可以使用:

If you are using SQL Developer, then you could use:


  • 基本连接类型

  • Basic connection type


  • TNS连接类型

  • TNS connection type

在基本连接类型中,您需要在连接属性本身中提供所有连接详细信息。要使用TNS连接类型,您需要配置 ORACLE_HOME\NETWORK\ADMIN 目录中的 tnsnames.ora 文件。

In basic connection type, you need to provide all the connection details in the connection properties itself. For using TNS connection type, you need to configure the tnsnames.ora file present in ORACLE_HOME\NETWORK\ADMIN directory.

这篇关于如何在LAN连接中使用SQL开发人员从另一台计算机连接Oracle 11G数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆