oracle plsql initial connection error solutions

windows7 64bit

The Oracle  win64 11gR2 (two files)

PL/SQL v9.0

Detailed error messages

[plain]  view plain  copy
 
 
 

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  

problem causes

Oracle's oci.dll after the installation is 64-bit, and 32-bit application can not be loaded PLSQL Developer.

solution

1. From  http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html  download Oracle Client Package. I downloaded the 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 to extract the oracle installation directory E: \ oracle \ installdir \ product, 
3. Set Environment Variables
    TNS_ADMIN=E:\oracle\installdir\product\11.2.0\dbhome_1\NETWORK\ADMIN
    NLS_LANG = AMERICAN_AMERICA.ZHS16GBK (Note: NLS_LANG first half must be AMERICAN_AMERICA, because the instant client does not support other languages; and the second half may be adjusted according to your database character set, if the database using AL32UTF8, you can set AL32UTF8)
4. Start PL / SQL Developer, click "Cancel" do not log in, the menu -> Tools -> Perferences -> Connection modify Oracle_Home and OCI Library configuration:
    OracleHome: OraDb11g_home1
    OCI Library: E: \ the Oracle \ installdir \ Product \ instantclient_11_2 \ oci.dll

Guess you like

Origin www.cnblogs.com/qinyios/p/11069180.html