主要原因可能是目标数据库是集群部署,可以咨询一下DBA python 用sqlalchemy 连接Oracle数据库的时候报了下面这个错误: sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) ORA-12505: TNS: 监听程序当前无法识别连接描述符中所给出的 SID (Background on this error at: http://sqlalche.me/e/4xp6) ...
cx_Oracle.DatabaseError: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor 执行代码 # -*- coding: utf-8 -*- # @Time : 2019-10-27 13:57 # @Author : YiviS # @File : oracle.py # @Software: PyCharm import cx_Oracle as orcl print("cx_Oracle.vers...
执行到conn = cx_Oracle.connect("c##scott", "tiger", dsn)会报错:DatabaseError: ORA-12505: TNS: 监听程序当前无法识别连接描述符中所给出的 SID listner.ora文档内容如下: # listener.ora Network Configuration File: C:\app\413022472\product\12.2.0\dbhome_1\network\admin\listener.ora # Generated...