Python 3.3 - Connecting to an Oracle Database

Is there a module for python 3.3 for connecting to Oracle databases? Which one is the easiest to use? Something like the mysql module, only works with Oracle.

Version 10g is preferred, but 11g will be great.

+4
source share
1 answer

There is: 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

+8
source

All Articles