安装windows操作系统时,32位PL/SQL连接报错问题 make sure you have the 32 bits oracle client installed

windows64位操作系统中安装64为oracle数据库,pl/sql连接不支持向下兼容

1、启动pl/sql时datebase栏为空

   问题:没有获取到数据库服务列表

   解决方案:

  1、下载32位Oracle客户端,下载地址http://www.oracle.com/technetwork/topics/winsoft-085727.html,我下载的是instantclient-basic-nt-11.2.0.2.0.zip.

2、解压到磁盘中,我解压的目录为D:\software\oracle\instantclient_12_2

3、启动pl/sql点击取消按钮,主界面打开,点击tools--->perferences

设置oracle home值:这个值可以随意设置,我录入的是oracle安装文件名

设置OCI library:D:\software\oracle\instantclient_12_2\oci.dll

点击apply,在点确认,关闭pl/sql

4、配置环境变量:

新增:TNS_ADMIN:此目录为安装的oracle配置监听的目录,即tnsnames.ora文件所在目录,我的目录为:D:\app\Administrator\product\11.2.0\dbhome_2\NETWORK\ADMIN

新增:NLS_LANG:AMERICAN_AMERICA.UTF8  防止中文乱码

猜你喜欢

转载自blog.csdn.net/zhousq8929/article/details/84375217