PLSQL Developer 12远程连接数据库(本地未安装)

第一步:下载安装 PLSQL Developer 12

    百度云:链接:https://pan.baidu.com/s/1wWHkIpryqcDb_pdSl4Ksow 密码:zvzz


第二步:下载Oracle客户端 Instant Client

    链接:http://www.oracle.com/technetwork/cn/database/features/instant-client/index-092699-zhs.html


第三步:配置监听器

    解压下载的Oracle客户端-->instantclient目录下新建文件夹\network\admin\

    方法1:将Oracle数据库配置(/app/oracle12c/product/12.2.0/dbhome_1/network/admin)拷贝到该文件夹下

    方法2:手动创建

    listener.ora

    SID_LIST_LISTENER =
     (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\app\oracle12c\product\12.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\app\oracle12c\product\12.2.0\dbhome_1\bin\oraclr12.dll")
    )
  )
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = Oracle服务器ip)(PORT = 1521))    
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )

  )


tnsnames.ora

LISTENER_ORCL =

  (ADDRESS = (PROTOCOL = TCP)(HOST = Oracle服务器ip)(PORT = 1521))

ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
      (SID = ORCL)
      (PRESENTATION = RO)
    )

  )

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Oracle服务器ip)(PORT = 1521))
    (CONNECT_DATA =
      (SERVICE_NAME = orcl)    #Oracle 全局数据库名
    )

  )


sqlnet.ora

SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
#远程无法连接数据库 在数据库服务器sqlnet.ora中加上这段
SQLNET.ALLOWED_LOGON_VERSION=8   


第四步:PLSQL Developer客户端配置(暂不登录)

配置==>首选项==>连接

Oracle主目录:...\instantclient_11_2 (Oracle客户端所在路径)

OCI库:...\instantclient_11_2\oci.dll (Oracle客户端主目录中的oci.dll文件)

PLSQL Developer 12远程连接数据库(本地未安装)_第1张图片


应用,确定,然后就能登录远程数据库了!!!

感谢阅读!

你可能感兴趣的:(Oracle)