cx_Oracle.DatabaseError: Error while trying to retrieve text for error ORA-01804-CSDN博客

网站介绍:文章浏览阅读4.6k次。**问题:**使用cx_Oracle连接oracle时报错cx_Oracle.DatabaseError: Error while trying to retrieve text for error ORA-01804sample code:import cx_Oracleconn = cx_Oracle.connect(user,pwd, self.ois_tns)**解决:**排查服务器执行该代码的Linux用户下的 .bash_profile中,关于oracle的环境变量设置情况,如下:ex_error while trying to retrieve text for error ora-01804