Python 3.3-与Oracle数据库连接 [英] Python 3.3 - Connect with Oracle database
本文介绍了Python 3.3-与Oracle数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否存在python 3.3与Oracle数据库连接的模块?哪个最容易使用?像mysql模块之类的东西,仅适用于Oracle.
Is there a module for python 3.3 to connect with Oracle Databases? Which is the easiest to use? Something like the mysql module, only works with Oracle.
最好是10g版本,但11g版本就可以了.
Preferably version 10g, but 11g will do just fine.
推荐答案
有: 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/welcome@127.0.0.1/orcl')
print con.version
con.close()
http://www.orafaq.com/wiki/Python
http://www.oracle.com/technetwork/articles/dsl/python-091105.html
这篇关于Python 3.3-与Oracle数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文