Running Cx_oracle under Jython

Source: Internet
Author: User

Not all modules this work with Python in CPython implementation would work on the other implementations. If Such module use the system specific calls, or binds to some. dll/.so file it won't work on the other Python implementation. Cx_oracle is one OS such modules:it binds to Oracle client (there be cx_oracle versions for various Oracle versions and various operational systems).

I Think you should the use of JDBC driver if you want to access the Oracle from Jython. Then you can use the JDBC calls, or use the zxJDBC Jython module that makes JDBC drivers available via DB API calls. I used both JDBC (with zxJDBC ) and cx_oracle in programs the can work from CPython and Jython. To see it on action look to my recipe to dump Oracle DB schema to text

Running Cx_oracle under Jython

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.