【发布时间】:2019-07-30 06:47:30
【问题描述】:
我尝试使用python连接oracle12c数据库,以下是我执行的步骤:
-
在 anaconda 提示符下安装了 cx_Oracle。
pip install cx_Oracle -
下面是我用python脚本写的代码。
import cx_Oracle dsnStr = cx_Oracle.makedsn("192.168.1.92", "1521", "orcl") con = cx_Oracle.connect(user="xxxxx", password="xxxxx", dsn=dsnStr)```
在 Spyder 中运行上述命令后,出现以下错误:
DatabaseError: 尝试检索错误 ORA-01804 的文本时出错
Oracle 和 PostgreSQL,都安装在 Windows 10 机器上。
任何帮助将不胜感激。
【问题讨论】:
标签: python python-3.x oracle oracle12c