1. Install Instant Client
1. Download Instant Client (a lightweight client) as a local Oracle environment.
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
(This address requires login and can be downloaded here: http://download.csdn.net/download/dorothy1224/ 9759766 )
2. After decompression, put it in a path, such as: D:\instantclient_11, create two folders of instantclient_11\network\ADMIN under instantclient_11, and then create the 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, the alias for connecting to the database, you can start it yourself.
HOST = 115.28. . : After host is the database address ip.
SERVICE_NAME : is the database name (corresponding to jdbc:oracle:thin:@10. . .**:1521:corcl).
2. Configure environment variables
NLS_LANG
AMERICAN_AMERICA.AL32UTF8
或 SIMPLIFIED CHINESE_CHINA.ZHS16GBK
TNS_ADMIN
D:\instantclient_11\network\ADMIN
3. Install PLSQL Developer
1. This machine is win10 (64-bit). When installing PLSQL Developer 9, there is no version mismatch like PLSQL Developer 11.
PLSQL Developer 9 download address: http://download.csdn.net/detail/dorothy1224/9759707
PLSQL Developer 11 (64-bit) Download address: http://download.csdn.net/detail/dorothy1224/9759727
2. After installation, go directly to the page without logging in, and configure Oracle Home (Oracle home directory) and OCI library (OCI library) in tools->preferences->connection (tools-preferences-connection), the configuration is as follows:
3. After saving the above configuration, restart PLSQL, log in, and fill in the connection name APPORCL configured above in the database, to correspond.
Attachment:
Problems encountered in configuration:
1. Error 1723
solution: The versions of PLSQL and instantclient do not correspond. My PLSQL 9 and instantclient 32-bit can be used, but with PLSQL 11, I must download instantclient x64 (download address: http://download.csdn.net/detail/dorothy1224/9759899 ).
2. ORA-12504: TNS: The listener did not get SERVICE_NAME in CONNECT_DATA
Solution: Mine is the connection name written in the database name that does not correspond to the configuration when logging in.