Oracle connect

pip7kids at gmail.com pip7kids at gmail.com
Wed Sep 30 11:25:40 EDT 2015


Hi 
New to Python and just downloaded 3.5
Trying to connect to Oracle but failing - eg

import cx_oracle
connstr = 'userid/password@@99.999.9.99:PORT/SID' 
connection = cx_oracle.connect(connstr)                   
cursor = connection.cursor()                              
cursor.execute("SELECT * FROM MYTABLE WHERE ROWNUM <=100")
cursor.close()
connection.close()

Getting error No module named 'cx_oracle'

Any examples or should I use an earlier version of Python.

Regards



More information about the Python-list mailing list