1. 安装PLSQL软件;
2. 安装Oracle Client; http://www.oracle.com/technetwork/topics/winsoft-085727.html
3. 解压Oracle Client的安装包至特定路径;
4. Oracle Client程序文件所在文件夹内创建 /NETWORK/ADMIN目录;
5. 在/NETWORK/ADMIN下创建文件tnsnames.ora;
6. 文件内容样例如下:
ORCL11G=
(DESCRIPTION =
(ADDRESS = (PROTOCOL =
TCP)(HOST = 118.186.xx.xx)(PORT =
1521))
(CONNECT_DATA =
(SERVER
= DEDICATED)
(SERVICE_NAME = orcl)
)
)
ORCL11G 是你起的名字,随意,IP,port要填写正确。
7.设置PLSQL的Option
在Options页右下角配置Oracle Instant Client的路径,以下是设置路径样例:
Oracle
Home输入D:\software\oracle-instantclient\instantclient_11_2
OCI
library输入D:\software\oracle-instantclient\instantclient_11_2\oci.dll
8.重启PLSQl即可。
参考网络连接文章:
http://kazake.blog.51cto.com/2155462/1336622
http://www.2cto.com/database/201210/164772.html
http://dw008.blog.51cto.com/2050259/934741