加入收藏 | 设为首页 | 会员中心 | 我要投稿 湖南网 (https://www.hunanwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

plsql首次毗连oracle报错办理方案

发布时间:2021-01-26 16:54:16 所属栏目:站长百科 来源:网络整理
导读:windows7 64bit Oracle?win64 11gR2(两个文件) PL/SQL v9.0 具体错误信息 [plain]? view plain? copy ? ? ? Initialization?error?? Could?not?initialize?"C:oracleproduct11.2.0dbhome_1binoci.dll"?? Make?sure?you?have?the?32?bits?Oracle?Clie

windows7 64bit

Oracle?win64 11gR2(两个文件)

PL/SQL v9.0

具体错误信息

[plain]? view plain? copy ? ? ?

Initialization?error??

Could?not?initialize?"C:oracleproduct11.2.0dbhome_1binoci.dll"??

Make?sure?you?have?the?32?bits?Oracle?Client?installed.??

OCIDLL?forced?to?C:oracleproduct11.2.0dbhome_1binoci.dll??

LoadLibrary(C:oracleproduct11.2.0dbhome_1binoci.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 解压至oracle安装目次下 E:oracleinstalldirproduct,? 3. 配置情形变量 ? ??TNS_ADMIN=E:oracleinstalldirproduct11.2.0dbhome_1NETWORKADMIN ? ??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: E:oracleinstalldirproductinstantclient_11_2oci.dll

(编辑:湖南网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读