Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 855
Daniel Williams Avatar asked Jul 26 '11 20:07

Daniel Williams


1 Answers

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.

like image 129
Daniel Williams Avatar answered Nov 06 '22 21:11

Daniel Williams