When x64 PL/SQL is connected to oralce, the prompt "cocould not initialize OCI. dll" is displayed.

Source: Internet
Author: User

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

  1. Initialization error
  2. Cocould not initialize "C: \ oracle \ product \ 11.2.0 \ dbhome_1 \ bin \ OCI. dll"
  3. Make sure you have the 32 bits Oracle client installed.
  4. Ocidll forced to c: \ oracle \ product \ 11.2.0 \ dbhome_1 \ bin \ OCI. dll
  5. 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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.