BadImageFormatException when Oracle client library is raised

Source: Internet
Author: User

Program Tip error:

BadImageFormatException is raised when trying to load an Oracle client library. This problem occurs if you are running in 64-bit mode with the 32-bit Oracle client component installed.

The scene appears:

The VS2008 c/s application is generated by connecting the Oracle database with ADO.

Solution Summary:

Installing the Instantclient_11_2 file

Implementation steps:

1. Extract the instantclient_11_2 to the Oracle Client installation directory. Note that the directory to be placed is ... app\administrator\product\11.2.0 as shown:

2. Modify the component configuration

In the extracted folder Instantclient_11_2 root, create a new folder named Network, and then in the root directory of the network folder, create a new folder named Admin.

Copy all the files in the Oracle Client installation directory ... app\administrator\product\11.2.0\client_1\network\admin to the previously created Admin folder.

3. Modify the environment variable path

Edit the system variable path, place the ... \app\administrator\product\11.2.0\instantclient_11_2 directory at the front of the PATH variable,

Remember to copy the past and add a semicolon to differentiate it from the values of other path variables. The system can be restarted at the end.

Win7 Reference chart:

WIN10 Reference Chart:

Reference: https://jingyan.baidu.com/article/a24b33cd3d121219fe002b00.html

BadImageFormatException when Oracle client library is raised

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.