This article is a mirror article of machine translation, please click here to jump to the original article.

View: 15618|Reply: 0

[Source] PL/SQL initialization error Could not initialize

[Copy link]
Posted on 8/14/2016 10:18:45 PM | | |
[Window Title]
PL/SQL Developer

[Content]
Initialization error
Could not initialize "C:\oracle\test\product\11.2.0\dbhome_1\bin\oci.dll"
Make sure you have the 32 bits Oracle Client installed.

OracleHomeKey:
OracleHomeDir: C:\oracle\test\product\11.2.0\dbhome_1
Found: oci.dll
Using: C:\oracle\test\product\11.2.0\dbhome_1\bin\oci.dll
LoadLibrary(C:\oracle\test\product\11.2.0\dbhome_1\bin\oci.dll) returned 0

[OK]


Cause of the problem
After installation, Oracle's oci.dll is 64-bit, while the 32-bit application PLSQL Developer fails to load.
solution
1. Download the Oracle Client Package from http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html. I downloaded Instant Client for Microsoft Windows (32-bit) [instantclient-basic-nt-11.2.0.2.0.zip]
2. Unzip the instantclient-basic-nt-11.2.0.2.0.zip as H:\Oracleinstantclient and the oci.dll directory is: H:\Oracleinstantclient\instantclient_12_1\
3. Set the environment variables
    TNS_ADMIN=c:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN
    NLS_LANG=AMERICAN_AMERICA. ZHS16GBK (If it already exists in the registry, it can be dispensed with, it generally already exists in the registry when installing Oracle)
4. Launch PL/SQL Developer, click "Cancel" to modify the configuration of Oracle_Home and OCI Library from the menu --> Tools --> Perferences --> Connection:
    OracleHome: Install your own OracleHome, such as: E:\app\Chen\product\11g\dbhome
    OCI library: H:\Oracleinstantclient\instantclient_12_1\oci.dll


5. Restart PL/SQL and log in to the corresponding database, the connection is normal, and the problem is successfully solved!





Previous:Win8 installation 11gR2[INS-13001] environment does not meet the minimum requirements
Next:Any Oracle user and password can log in with sysdba
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com