标签:
Not all modules that work with Python in CPython implementation will work on other implementations. If such module use system specific calls, or binds to some .dll/.so file it will not work on other Python implementation. cx_Oracle is one os such modules: it binds to Oracle client (there are cx_Oracle versions for various Oracle versions and various operational systems).
I think you should use JDBC driver if you want to access Oracle from Jython. Then you can use JDBC calls, or use zxJDBC
Jython module that makes JDBC drivers available via DB API calls. I used both JDBC (with zxJDBC
) and cx_Oracle in programs that can work from CPython and Jython. To see it in action look to my recipe to dump Oracle db schema to text
Running cx_Oracle under jython
标签:
原文地址:http://www.cnblogs.com/z1500592/p/5877743.html