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.fetchall() for x in rs: print x cursor.close() db.close()
windows python 与oracle 链接 python remote connect oracle
最新推荐文章于 2024-02-19 10:17:26 发布