ORA-12705: 无法访问 NLS 数据文件或指定的环境无效
我刚刚在我的笔记本电脑上安装了 Oracle 即时客户端,当我尝试通过 C# 中的 ODBC 连接时得到这个。该机器过去安装过 9.2 和 10.2。
为什么会出现这个错误呢?在我的连接字符串中,我可以告诉它忽略 Oracle NLS 设置吗?
I just installed the Oracle instant client on my laptop, and get this when I try to connect via ODBC in C#. The machine has had 9.2 and 10.2 installed in the past.
Why does this error appear? In my connection string, can I tell it to ignore the Oracle NLS settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
下找到名为 NLS_LANG 的注册表项,
解决方案是在HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
并将其重命名为其他名称。我在最后加了一个“x”。该密钥是完整安装 Oracle 后留下的。即时客户端 ODBC 现在可以正常工作。
The solution was to find the registry key named NLS_LANG under:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE
and rename it to anything else. I put an "x" at the end. This key is left over from a full install of Oracle. The instant client ODBC works properly now.
我遇到了同样的问题,在我的机器上,NLS_LANG 密钥不在
ORACLE
中,但在这里:HKEY_LOCAL_MACHINE\SOFTWARE\oracle\KEY_OraClient11g_home1_32bit
通过附加“_X”重命名它,问题解决了:-)
I had the same problem, at my machine the NLS_LANG key was not in
ORACLE
, but here:HKEY_LOCAL_MACHINE\SOFTWARE\oracle\KEY_OraClient11g_home1_32bit
Renamed it by appending "_X", problem solved :-)
当我尝试导入表时,我对 Oracle 的 obiee 管理工具遇到了同样的问题,但仅限于
32位电脑。发现32位电脑将nls_lang键存储在注册表的两个位置,一处位于ORACLE键下,另一处位于oracle home键下。如上所述,从 ORACLE 键重命名了该键,这解决了我的问题。在我的 64 位电脑上没有 nls_lang
ORACLE 下的 key,这可能就是为什么我在 64 位电脑上没有遇到同样的问题。
用这个网址更新了我的 oracle sr ...
i had same problem with oracle's obiee admin tool, when i tried to import tables, but only on
32bit pc's. found that the 32bit pc's stored the nls_lang key in two places in the registry, one under the ORACLE key and another one under the oracle home key. renamed the one from the ORACLE key as noted above and this fixed my problem. on my 64bit pc there was no nls_lang
key under ORACLE, and thats probably why i didn't have the same problem on the 64bit pc's.
updated my oracle sr with this url...