Oracle 不安装Oracle客户端,使用PLSQL连接Oracle服务器

一.软件环境

1.Instant Clinet Package - basic
官方网址: http://www.oracle.com
下载地址: http://www.oracle.com/technetwork/topics/winsoft-085727.html
直接下载: http://download.oracle.com/otn/nt/instantclient/112030/instantclient-basic-nt-11.2.0.3.0.zip

二.环境配置

1.解压在任意目录,以E:/oracleclient为例;

2.在E:/oracleclient下创建network/admin目录,新建tnsnames.ora文件,内容如下:

LOCALNAME =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

LOCALNAME: 本地名称
ADDRESS: 服务器地址
PROTOCOL: 使用协议
HOST: IP地址
PORT: 监听端口
SERVICE_NAME: 数据库服务名称

3.安装PLSQL Developer客户端,工具->首选项->链接;

设置
Oracle home: E:/oracleclient
OCI 库: E:/oracleclient/oci.dll

你可能感兴趣的:(Oracle 不安装Oracle客户端,使用PLSQL连接Oracle服务器)