Cx_oracle Python Module installation

Source: Internet
Author: User

1. Need to download two packages from Oracle website

2. Download and extract to a directory, such as:/oracle

3. Configure according to the BUILD.txt steps after decompression:


Cat. Bash_profile # bash_profile# Get the aliases andfunctionsif [- F ~/.BASHRC]; Then. ~/. bashrcfi#UserSpecific environment andStartup Programsoracle_home=/Oracle/Instantclient_11_2path=$PATH: $HOME/bin: $ORACLE _homeld_library_path=$LD _library_path: $ORACLE _home: $ORACLE _home/sdkexport ld_library_pathexport PATH
Configure Bash_profile


Python Build
Python Install

3.3 If the following error occurs, you will need to install python-devel-2.6.6-64.el6.x86_64

CX_ORACLE.C:6: -: Error:python.h:no Suchfile ordirectorycx_oracle.c:7: A: Error:datetime. H:no suchfile ordirectorycx_oracle.c:8: -: Error:structmember.h:no Suchfile orDirectoryinch fileIncluded fromCX_ORACLE.C:142: buffer.c: -: error:expected specifier-Qualifier-list before ' Pyobject ' buffer.c:inch function' Cxbuffer_init ': buffer.c: -: Error: ' Udt_buffer ' has no member named ' obj ' buffer.c:inch function' cxbuffer_copy ': buffer.c: -: warning:implicit declaration of function' Py_xincref ' buffer.c: -: Error: ' Udt_buffer ' has no member named ' obj ' buffer.c: $: Error: ' Udt_buffer ' has no member named ' obj ' buffer.c: $: Error: ' Udt_buffer ' has no member named ' obj '
View Code

Cx_oracle Python Module installation

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: 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.