导入Oracle数据库包
import cx_Oracle #导入Oracle包
conn = cx_Oracle.connect('scott/tiger') #scott是Oracle用户名 , tiger是Oracle密码
其他跟连接MySQL相差不大
导入Oracle数据库包
import cx_Oracle #导入Oracle包
conn = cx_Oracle.connect('scott/tiger') #scott是Oracle用户名 , tiger是Oracle密码
其他跟连接MySQL相差不大