pyhton 连接 oracle
-
pip install cx_Oracle
-
https://oracle.github.io/odpi/doc/installation.html
- 大概步骤就是下载解压文件, 然后配置环境变量
-
测试连接
import cx_Oracle dsn = cx_Oracle.makedsn(host='127.0.0.1', port=1521, sid='your_sid') conn = cx_Oracle.connect(user='your_username', password='your_password', dsn=dsn) conn.close()