import cx_Oracle
con = cx_Oracle.connect('username/password@[ipaddress or hostname]/SID')
# for example con = cx_Oracle.connect('scott/tiger@127.0.0.1/orcl')
ver = con.version.split(".")
print ver
con.close()
con = cx_Oracle.connect('username/password@[ipaddress or hostname]/SID')
# for example con = cx_Oracle.connect('scott/tiger@127.0.0.1/orcl')
ver = con.version.split(".")
print ver
con.close()
No comments:
Post a Comment