PLSQL Developer oracle remote connection configurations (interpretation)

First, install the Client the Instant 
1. Download the Instant Client (lightweight client), as a local Oracle environment. 

http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 

2. After decompression, on a path, such as: D: \ instantclient_11, created under instantclient_11 instantclient_11 \ network \ ADMIN two folders, and then create file tnsnames.ora, the most basic configuration is as follows:

APPORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 115.28.**.**)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = corcl)
    )
  )

APPORCL: Connection name, alias database connection, you can play yourself. 
HOST = 115.28 ..: behind the host database address ip. 

SERVICE_NAME: is the database name (the corresponding jdbc: oracle: thin: @ 10 ... **: 1521: corcl).

Second, the installation PLSQL Developer 
1. This machine is win10 (64-bit) is mounted in question does not appear PLSQL Developer 0900 version of the image. 11 as PLSQL Developer mismatch. 
PLSQL Developer 9 Download: http: //download.csdn.net/detail/dorothy1224/9759707

PLSQL Developer 11 (64-bit) Download: http: //download.csdn.net/detail/dorothy1224/9759727

2. After installation, log on to not go directly to the page in the tools-> preferences-> connection configuration Oracle Home (Oracle home directory) and OCI library (OCI library) (Tools - connection - Preferences), the configuration is as follows: 

3. Save the configuration above, restart PLSQL, log in, fill in the configuration database connection name above APPORCL, to correspond.

NOTE: The second step is completed, the third step may not need to configure the environment variables, if not restart plsql developer during normal use the following configuration

Third, configure the environment variables 

NLS_LANG
AMERICAN_AMERICA.AL32UTF8
或 SIMPLIFIED CHINESE_CHINA.ZHS16GBK

TNS_ADMIN
D:\instantclient_11\network\ADMIN

附: 
配置中遇到的问题: 
1. error 1723 
解决:PLSQL 和 instantclient的版本不对应。我的PLSQL 9和instantclient 32位的可以,用PLSQL 11就必须下载instantclient x64的(下载地址:http://download.csdn.net/detail/dorothy1224/9759899)。 
2. ORA-12504:TNS:监听程序在CONNECT_DATA中未获得SERVICE_NAME 
解决:我的是在登录的时候数据库名写的未对应配置中的连接名。
---------------------

Guess you like

Origin www.cnblogs.com/jijm123/p/11318945.html