简体   繁体   English

PL/SQL Developer 初始化错误

[英]PL/SQL Developer Initialization error

I want use PL/SQL Developer我想使用 PL/SQL Developer

first my oracle directory首先是我的 oracle 目录

C:\oracle\product\10.2.0\client_1\BIN

I use windows10 and environment variable setting我使用windows10和环境变量设置

ORACLE_HOME C:\oracle\product\10.2.0\client_1

Path C:\oracle\product\10.2.0\client_1\BIN but execute Initialization error. Path C:\oracle\product\10.2.0\client_1\BIN但执行初始化错误。

Initialization error
Could not load "C:\oracle\product\10.2.0\client_1\bin\oci.dll"

OracleHomeKey: SOFTWARE\ORACLE\KEY_OraClient10g_home1
OracleHomeDir: C:\oracle\product\10.2.0\client_1
Found: oci.dll
Using: C:\oracle\product\10.2.0\client_1\bin\oci.dll
LoadLibrary(C:\oracle\product\10.2.0\client_1\bin\oci.dll) return 0
  1. download oracle instant client (64 bits for latest version of PL/SQL; 32 bits for old version)下载 oracle 即时客户端(PL/SQL 最新版本为 64 位;旧版本为 32 位)
  2. extract to a folder.解压到一个文件夹。 for example: c:\oracle\instantclient例如: c:\oracle\instantclient
  3. open PL/SQL developer--> Configure--> Preferences --> Oracle Connection打开 PL/SQL developer--> Configure--> Preferences --> Oracle Connection
  4. under OCI library, keyin OCI.DLL file path in the text box: c:\oracle\instantclient\oci.dll在OCI库下,在文本框中键入OCI.DLL文件路径: c:\oracle\instantclient\oci.dll
  5. click OK and restart PL/SQL单击确定并重新启动 PL/SQL

I was getting below error while connecting to database from PL/SQL developer (in windows10 64 bit).从 PL/SQL 开发人员(在 windows10 64 位中)连接到数据库时出现以下错误。

Initialization error Could not initialize "C:\app<username>\product\12.2.0\dbhome_1\bin\oci.dll"初始化错误 无法初始化“C:\app<用户名>\product\12.2.0\dbhome_1\bin\oci.dll”

Make sure you have the 32 bits Oracle Client installed.确保您已安装 32 位 Oracle 客户端。

OracleHomeKey: 
OracleHomeDir: C:\app\<username>\product\12.2.0\dbhome_1
Found: oci.dll
Using: C:\app\<username>\product\12.2.0\dbhome_1\bin\oci.dll
LoadLibrary(C:\app\<username>\product\12.2.0\dbhome_1\bin\oci.dll) 
return 0

To resolve this issue, refer to the below documentation provided by Oracle to install the Oracle Instant Client.要解决此问题,请参阅 Oracle 提供的以下文档来安装 Oracle Instant Client。 If your windows is 64 bit, then download the 32 bit Oracle Instant Client from below link -如果您的 Windows 是 64 位,请从以下链接下载 32 位 Oracle Instant Client -

Oracle guide甲骨文指南

Link to download the Oracle Instant Client - (Download the BASIC and SDK and SQL*Plus Package) Oracle Instant Client下载链接 - (下载 BASIC 和 SDK 以及 SQL*Plus 包)

Take all the above three packages in one directory and extract the same and add the path of extracted directory in system environment variable PATH and OCI_LIB32 .将以上三个包全部放在一个目录下,解压后在系统环境变量 PATH 和OCI_LIB32中添加解压目录的路径。

If OCI_LIB32 is not present then create the same.如果OCI_LIB32不存在,则创建相同的。

Try to connect to database from PLSQL developer, if you getting error as 'ORACLE initialization or shutdown in progress' then go through the below link尝试从 PLSQL 开发人员连接到数据库,如果出现“ORACLE 初始化或关机正在进行中”错误,请通过以下链接

Good Luck :)祝你好运 :)

I meet the same error on my new windows 10 computer.我在新的 Windows 10 计算机上遇到了同样的错误。 At last i found that i missed the Microsoft Visual Studio 2013 Redistributable .最后我发现我错过了Microsoft Visual Studio 2013 Redistributable After i install it, the error gone.安装后,错误消失了。

检查环境变量 %PATH%

I had the similar problem and these steps did helped me我有类似的问题,这些步骤确实帮助了我

steps:脚步:

  • Download oracle instant client (64 bits for latest version of PL/SQL; 32 bits for old version)下载 oracle 即时客户端(PL/SQL 最新版本为 64 位;旧版本为 32 位)
  • Extract to a folder.解压到一个文件夹。 for example: c:\oracle\instantclient例如:c:\oracle\instantclient
  • Open PL/SQL developer--> Configure-->Preferences--> Oracle Connection打开 PL/SQL developer--> Configure-->Preferences--> Oracle Connection
  • Under OCI library, keyin OCI.DLL file path in the text box: c:\oracle\instantclient\oci.dll在OCI库下,在文本框中键入OCI.DLL文件路径:c:\oracle\instantclient\oci.dll
  • Click OK and restart PL/SQL done单击确定并重新启动 PL/SQL 完成

Most of the cases this happens大多数情况下会发生这种情况

  1. If you dont have any oracle client如果您没有任何 oracle 客户端

In this case, you can download instant client and put it in C drive, then copy the path of the oci.dll file path and put it in the OCI library text field in the PL SQL Dev config option在这种情况下,您可以下载即时客户端并将其放入C盘,然后复制oci.dll文件路径的路径并将其放入PL SQL Dev config选项中的OCI库文本字段中

  1. If you have multiple oracle home如果你有多个 oracle home

If you have multiple homes reflecting, then check the correct oracle home from the Oracle Home drop down in PLSQL Dev config option.如果您有多个家庭反映,则从 PLSQL Dev 配置选项中的 Oracle Home 下拉菜单中检查正确的 oracle home。

Attached the image of the config screen for easy reference.附上配置屏幕的图像以方便参考。

在此处输入图像描述

下载oracle客户端后使用PL/SQL连接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM