windows7 下安装64位oracle用PL/SQL Developer连接报错问题

PLSQL Developer 连接Oracle X64版。 报错如下:

  1. [Window Title]
  2. (Not logged on)
  3. [Content]
  4. Initialization error
  5. Could not initialize "C:\oracle\product\10.2.0\client_1\bin\oci.dll"
  6. Make sure you have the 32 bits Oracle Client installed.
  7. OracleHomeKey:
  8. OracleHomeDir: C:\oracle\product\10.2.0\client_1
  9. Found: oci.dll
  10. Using: C:\oracle\product\10.2.0\client_1\bin\oci.dll
  11. LoadLibrary(C:\oracle\product\10.2.0\client_1\bin\oci.dll) returned 0

原因:因为PLSQL developer 没有支持64位的版本

解决方法:

1.下载oracle提供的32 bit client,下载地址:http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html?ssSourceSiteId=ocomen

下载完成后解压随意目录:如:D:\instantclient_11_2

2.启动PL/SQL→Tools→Preferences→Oracle→Connection,设置Oracle Home和OCI Library

Oracle Home ------D:\instantclient_11_2

OCI Library--------D:\instantclient_11_2\ocl.dll

3.对系统的环境变量进行配置

主要需要以下两项:

变量名:TNS_ADMIN.

变量值:Oracle安装目录中的 ....../product/11.2.0/dbhome_1/NETWORK/ADMIN.

变量名:NLS_LANG.

变量值:AMERICAN_AMERICA(数据库字符编码 ).

(另外以下是安装Oracle就需要配置的,否则可能会有TNS协议适配器错误)

变量名:oracle_sid

变量值:Oracle的数据库实例

其中数据库字符编码可以通过进入SQL PLUS   select userenv(‘language’) from dual;来查询。

这样重新启动一下PLSQL Developer,然后就能访问了。

转载于:https://www.cnblogs.com/gugnv/archive/2012/02/01/2335090.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值