Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

oracle

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 files

like image 367
Doug Flower Avatar asked Oct 08 '11 23:10

Doug Flower


1 Answers

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"

like image 106
Shawn Bower Avatar answered Oct 04 '22 17:10

Shawn Bower