windows python 与oracle 链接 python remote connect oracle
import cx_Oracle
db = cx_Oracle.connect('test/test@192.168.0.43/mydb')
#用户名/密码@目的地址/数据库名
print db.version
cursor = db.cursor()
sql = 'select * from v$database'
cursor.execute(sql)
rs = cursor.fetcha
原创
2017-08-27 15:43:08 ·
307 阅读 ·
0 评论