Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
来源:互联网 发布:flash mx2004软件下载 编辑:程序博客网 时间:2024/06/05 05:42
今天在 x64 的 Win7 上重新安装了 Oralce 后,通过 PL/SQL 连接数据库时,提示如下错误信息
环境
windows7 64bit
Oracle win64 11gR2
PL/SQL v9.0
详细错误信息
- Initialization error
- Could not initialize "C:\oracle\product\11.2.0\dbhome_1\bin\oci.dll"
- Make sure you have the 32 bits Oracle Client installed.
- OCIDLL forced to C:\oracle\product\11.2.0\dbhome_1\bin\oci.dll
- LoadLibrary(C:\oracle\product\11.2.0\dbhome_1\bin\oci.dll) returned 0
问题原因
安装完后Oracle的 oci.dll 是64位的,而32位应用程序 PLSQL Developer 无法加载。
解决方案
1. 从 http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 下载Oracle Client Package。 我下载的是Instant Client for Microsoft Windows (32-bit) 【instantclient-basic-nt-11.2.0.2.0.zip】
2. 将 instantclient-basic-nt-11.2.0.2.0.zip 解压至 c:\oracle, oci.dll 所在目录为:c:\oracle\instantclient_11_2\
3. 设置环境变量
TNS_ADMIN=c:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK (注:NLS_LANG前半部分必须是AMERICAN_AMERICA,因为instant client不支持其他语言;而后半部分可以根据你数据库的字符集调整,如果数据库采用AL32UTF8,则可以设置AL32UTF8)
4. 启动PL/SQL Developer ,点击“取消”不要登录,菜单 --> Tools --> Perferences --> Connection 修改 Oracle_Home 和 OCI Library 的配置:
OracleHome: OraDb11g_home1
OCI library: C:\oracle\instantclient_11_2\oci.dll
OracleHome: OraDb11g_home1
OCI library: C:\oracle\instantclient_11_2\oci.dll
5. 重新启动 PL/SQL并登录对应的数据库,连接正常,问题成功解决!
这个方法本人亲自操作过,可行 欢迎评论
0 0
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- pl/sql链接64位oracle数据库报错Could not initialize oci.dll
- 使用ssh-keygen和ssh-copy-id三步实现SSH无密码登录
- [DFS]poj2676(2918)
- ECNA 2014_湖南多校赛2015.05.17 (待补)
- 【技术记录】MISC图片取证
- 工作与梦想中的工作:给计算机专业学生的建议
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- 具有语音识别功能的ZigBee传感器网络设计
- 第一章,Python简介
- 探秘Spring的PropertyEditor - Bieber的个人页面
- 欢迎使用CSDN-markdown编辑器
- 大数据生态圈
- 数字图像处理基本知识
- 下载
- Zigbee在二轮平衡小车调试中的应用