python cx oracle expecting string, unicode or buffer object

喜夏-厌秋 提交于 2019-12-01 14:38:06

If you are running into this problem, most likely the cause is that you are not passing in arguments required by the underlying dbapi call.

In my case I added additional arguments of user, password and dsn to the create_engine call along with existing ones, which got passed to cx_oracle call and it worked.

something like this should work

create_engine(u'oracle+cx_oracle://localhost:1521/orcl', echo=True, user='<>', password='<>', dsn='<>')
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!