Two issues with Python connecting Oracle data

Source: Internet
Author: User
Tags win32

Environment Win7 (+) + Python 2.7.5 +cx_oracle-5.1.3-11g.win-amd64-py2.7

1. dll is not a valid Win32 application

Import cx_oracle after running an error "DLL is not a valid Win32 application"

After finding out that Oracle's client is using a 32-bit, 64-bit client, the OCI.DLL in the directory will be installed

Copy a copy of the market Python lib/libsite-packages directory.

2, interfaceerror:unable to acquire Oracle environment handle

On the internet for a long time mostly said to set up Oracle_home, but after looking at the environment variables found in the path has a client

The path is gone, and then the OCI.DLL is removed from the libsite-packages, and the result ok!

Two issues with Python connecting Oracle data

Related Article

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.