After oralce is re-installed on Windows 7x7, the following error message is displayed when you connect to the database through PL/SQL.
Environment
64-bit Windows 7
Oracle win64 11gr2
PL/SQL v9.0
Detailed error message
[Plain]View
Plaincopy
- Initialization error
- Cocould 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
The cause of the problem is that Oracle's OCI. dll is 64-bit after installation, and the 32-bit application PLSQL developer cannot load it. Solution 1. Download oracle from http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Client package. I downloaded the Instant Client for Microsoft Windows (32-bit) unzip instantclient-basic-nt-11.2.0.zip] 2. unzip the instantclient-basic-nt-11.2.0.2.0.zip to c: \ oracle, OCI. dll Directory: C: \ oracle \ instantclient_11_2 \ 3. set the environment variable tns_admin = c: \ oracle \ product \ 11.2.0 \ dbhome_1 \ Network \ ADMIN nls_lang = american_america.zhs16gbk (
Note: The first half of nls_lang must be american_america, Because instant client does not support other languages. The latter half can be adjusted based on the character set of your database. If the database uses al32utf8, you can set al32utf8.4) Start PL/SQL developer and click "cancel". Choose "Tools"> "perferences"> "connection" to modify the configurations of ORACLE_HOME and OCI Library:
Oraclehome: oradb11g_home1
OCI Library: C: \ oracle \ instantclient_11_2 \ OCI. dll5. restart PL/SQL and log on to the corresponding database. The connection is normal. The problem is solved successfully!