通过Windows 7 x64安装Oracle 11g,由于PLSQL通过delphi开发的,所以不支持访问x64oracle,解决办法如下:
1、本地完成安装[oracle 11g 64x];
2、安装32位Oracle客户端:Instant Client for Microsoft Windows (32-bit)
下载地址:http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
3、完成下载后,将Oracle Instant Client 解压至[Oracle]/product目录下;
如,D:\app\chao\product下;
4、拷贝D:\app\chao\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora文件到D:\app\chao\product\instantclient_11_2目录中;
5、本地完成安装PLSQL;
6、在PLSQL中设置Oracle和OCI设置:
Tools->Preferences->Oracle->Connection中Oracle Home和OCI library;
分别为:D:\app\chao\product\instantclient_11_2 和 D:\app\chao\product\instantclient_11_2\oci.dll;
7、设置环境变量:
变量名 变量值
Path D:\app\chao\product\instantclient_11_2
TNS_ADMIN D:\app\chao\product\instantclient_11_2
NLS_LANG SIMPLIFIED CHINESE_CHINA.ZHS16GBK