Python 的 cx_Oracle 模块
导入 cx_Oracle 模块 1 import cx_Oracle # 导入模块 连接数据库 1 2 3 db = cx_Oracle.connect('user', 'password', 'host:port/SID') #建立连接,3个参数分开写 print db.version ##输出 10.2.0.1.0 测试成功 自动提交 1 2 db.autocommit=True #开启自动提交 db.autocommit=False #关闭自动