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

后端 未结 7 1942
死守一世寂寞
死守一世寂寞 2020-12-01 18:14

The other day I got this annoying oracle error: ORA-12705: Cannot access NLS data files or invalid environment specified. Funny thing I wasn\'t trying to access NLS data fil

相关标签:
7条回答
  • 2020-12-01 18:55

    I have Oracle 10g XE and Windows 7. I resolved this as follows:

    Go to Control panel > Regional and language options > Format and set your language.

    0 讨论(0)
  • 2020-12-01 19:07

    There are two possible causes:

    An attempt was made to issue an ALTER SESSION statement with an invalid NLS parameter or value.

    The NLS_LANG environment variable contains an invalid language, territory, or character set.

    Fix:

    Unset the NLS_LANG environment variable

    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"

    0 讨论(0)
  • 2020-12-01 19:08

    In my case, I was creating a database adapter in the oracle weblogic console, solve the problem by doing the following configuration. Windows -> control panel -> region: 1. Change the format to English (United States) date format M / d / yy and 2. Change my address to the United States. Perform this configuration because my machine was configured with the Spanish language, then restart the computer and I worked without problems.

    0 讨论(0)
  • 2020-12-01 19:13

    You can also just set the NLS config in your oracle settings

    0 讨论(0)
  • 2020-12-01 19:15

    In case if above solutions not helped, can try my solution. I just replaced my latest version of Ojdbc14.jar to an older version Ojdbc5.jar. It helped me to solve my issue.

    0 讨论(0)
  • 2020-12-01 19:18

    After addition of path in Environment variable of Oracle Instant client the Oracle SQLPLUSW goes to Oracle Instant client and for that client it required to set NLS LANG AS American_America.UTF8

    0 讨论(0)
提交回复
热议问题