Monday, September 14, 2020

Connecting to Oracle DB from Python;

Make you cx_Oracle is installed on the machine;
if not do
> pip install cx_Oracle on windows command if working on Windows machine


import cx_Oracle
conn=cx_Oracle.connect('username/password@host:post/ServiceName')
print (conn.version)

No comments: