Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps

Monday, March 9, 2009

Couldn't set locale correctly

Srinivas pinged me about this error which comes when you login as applmgr on a server:

couldn't set locale correctly

I checked the $HOME/.profile file of the user and found an environment variable LANG:

LANG=/usr/lib/locale/en_US.UTF-8
export LANG

On manually setting this variable, we get the same error.

$ LANG=/usr/lib/locale/en_US.UTF-8
couldn't set locale correctly

AventX support had asked the DBAs to set this environment variable, as they were unable to register the license key.

The error was coming because the file en_US.UTF-8 didn't exist:

$ ls -ld /usr/lib/locale/en_US.UTF-8
/usr/lib/locale/en_US.UTF-8: No such file or directory

$ cd /usr/lib/locale
$ ls -ltr
total 52
-rw-r--r-- 1 root bin 1848 Dec 8 2004 lcttab
-rw-r--r-- 1 root bin 270 Dec 8 2004 geo
drwxr-xr-x 8 root bin 512 Mar 26 2008 C
lrwxrwxrwx 1 root root 3 Mar 26 2008 POSIX -> ./C
drwxr-xr-x 3 root bin 512 Mar 26 2008 iso_8859_15
drwxr-xr-x 4 root bin 512 Mar 26 2008 iso_8859_1
drwxr-xr-x 5 root bin 512 Mar 26 2008 common
drwxr-xr-x 3 root bin 512 Mar 26 2008 en.UTF-8
drwxr-xr-x 3 root bin 512 Mar 26 2008 en_CA
drwxr-xr-x 9 root bin 512 Mar 26 2008 en_CA.ISO8859-1
drwxr-xr-x 10 root bin 512 Mar 26 2008 en_CA.UTF-8
drwxr-xr-x 3 root bin 512 Mar 26 2008 en_US
drwxr-xr-x 9 root bin 512 Mar 26 2008 en_US.ISO8859-1
drwxr-xr-x 9 root bin 512 Mar 26 2008 en_US.ISO8859-15
drwxr-xr-x 3 root bin 512 Mar 26 2008 en_US.ISO8859-15@euro
drwxr-xr-x 3 root bin 512 Mar 26 2008 es
drwxr-xr-x 3 root root 512 Mar 26 2008 es.UTF-8
drwxr-xr-x 3 root bin 512 Mar 26 2008 es_MX
drwxr-xr-x 8 root bin 512 Mar 26 2008 es_MX.ISO8859-1
drwxr-xr-x 9 root bin 512 Mar 26 2008 es_MX.UTF-8
drwxr-xr-x 3 root bin 512 Mar 26 2008 fr
drwxr-xr-x 3 root bin 512 Mar 26 2008 fr.UTF-8
drwxr-xr-x 3 root bin 512 Mar 26 2008 fr_CA
drwxr-xr-x 8 root bin 512 Mar 26 2008 fr_CA.ISO8859-1
drwxr-xr-x 9 root bin 512 Mar 26 2008 fr_CA.UTF-8

I'll update this post once I learn more.

No comments: