ORA-12705: Cannot access NLS data files or invalid environment specified解决方法

原因

安装了多个Oracle相关软件,设置了不同的编码以及账户,安装了多个Oracle Client软件,在登录时可能会选择一个不正确的账户。

官方解释

点击查看Oracle官方解释

For ORA-12705 errors caused by invalid NLS_LANG settings, you need to verify that it is "unset" at the system-level:

  • Windows - The NLS_LANG must be unset in the Windows registry (re-named is best).  Look for the NLS_LANG subkey in the registry at \HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE, and rename it.
     
  • Linux/UNIX - Here you simply issue the Linux command "unset NLS_LANG"

解决方法

1、按【win + R】,输入regedit,按【Ctrl + F】查找所有NLS_LANG,将其设置为

SIMPLIFIED CHINESE_CHINA.ZHS16GBK

2、环境变量中加入NLS_LANG  值为SIMPLIFIED CHINESE_CHINA.ZHS16GBK 

 

3、按【win + R】输入cmd, 然后输入

set NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值