Home > Blogroll, dba, sql > add a new language to Oracle

add a new language to Oracle

February 19th, 2008 Leave a comment Go to comments

I first thought of adding Klingon. Well, finally I added Romansh, which is the fourth official language in my country.

Ok, here we go :

$ $ORACLE_HOME/nls/lbuilder/lbuilder &

The Oracle Locale Builder tool is started.

File –> New… –> Language

You specify the language, the spelling for January, for Monday, etc… Most fields are mandatory. If you do not know about one field, like EBCDIC, just find one in the “Show existing definition…” Dialog

File –> Save as…

You save your nlt file

File –> Tools –> Generate NLB

Three NLB files are generated.

$ ls -l *.nl*
-rw-r--r-- 1 lsc users   934 2008-02-19 18:17 lx003eb.nlb
-rw-r--r-- 1 lsc users  3843 2008-02-19 18:17 lx003eb.nlt
-rw-r--r-- 1 lsc users   128 2008-02-19 18:17 lx0boot.nlb
-rw-r--r-- 1 lsc users   428 2008-02-19 18:17 lx0boot.nlt
-rw-r--r-- 1 lsc users 22528 2008-02-19 18:17 lx1boot.nlb

Copy all your the NLB files to your ORACLE_HOME/data/nls.

Restart your instance.

Let’s test it ;)


select 
  to_char(
    sysdate, 
    'fmday dd month yyyy','NLS_DATE_LANGUAGE=romansch'
  ) 
from dual;
TO_CHAR(SYSDATE,'FMDAYDDMONTHYY
-------------------------------
mardis 19 favrer 2008

Tags:
  1. February 19th, 2008 at 20:03 | #1

    Now EVERYONE in Switzerland can enjoy Oracle! :)

    How many fields did you have to define?

  2. February 19th, 2008 at 23:41 | #2

    well, ebcdic, default lanuage and ascii :-)

  3. February 20th, 2008 at 01:03 | #3

    Nice post although I would have like klingon better.

    http://www.google.com/intl/xx-klingon/

  4. February 20th, 2008 at 01:57 | #4

    Nah, Klingon is too popular. Romansh needs its defenders.

  5. February 20th, 2008 at 10:53 | #5

    the additional difficult with klingon is they do use a fairly different calendar The Klingon Calendar

  1. No trackbacks yet.
*