Python 3.3 - 与Oracle数据库连接

aIK*_*Kid 5 python oracle python-3.3

是否有一个用于连接Oracle数据库的python 3.3模块?哪个最容易使用?像mysql模块之类的东西,只适用于Oracle.

优选版本10g,但11g会做得很好.

Joy*_*ind 10

有: 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()
Run Code Online (Sandbox Code Playgroud)

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

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