【问题标题】:cx_oracle jupyter notebook NLS_LANG errorcx_oracle jupyter notebook NLS_LANG 错误
【发布时间】:2019-09-08 04:28:36
【问题描述】:

在 sqlplus 脚本中,我这样做了

unset NLS_LANG

如何在 jupyter notebook 中为 cx_oracle 做同样的事情?

我正在关注这个例子并得到了错误。

How can I access Oracle from Python?

DatabaseError: ORA-12705: Cannot access NLS data files or invalid environment specified

【问题讨论】:

    标签: python pandas dataframe cx-oracle


    【解决方案1】:

    我之前遇到过同样的错误,我在下面的代码中运行了一个 alter 命令来设置语言。确保你事后提交。

    c.execute(u'ALTER SESSION SET NLS_LANGUAGE=American')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-11-05
      • 2016-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-23
      • 1970-01-01
      相关资源
      最近更新 更多