2013-09-27 68 views

回答

8

有:cx_Oracle

# Install --> You should have oracle installed otherwise exception will be raised 

pip install cx_Oracle 

import cx_Oracle 

con = cx_Oracle.connect('pythonhol/[email protected]/orcl') 
print con.version 

con.close() 

http://www.orafaq.com/wiki/Python

http://www.oracle.com/technetwork/articles/dsl/python-091105.html

+0

谢谢!非常有用:) – aIKid

+0

我真的需要Oracle客户端才能使其工作吗?不像直接的JDBC连接那么简单? TY。 –