Your browser does not support JavaScript. This help page requires JavaScript to render correctly. About the NLS_TERRITORY Parameter
Skip Headers
Previous
Previous
 
Next
Next

About the NLS_TERRITORY Parameter

Specifies: Default conventions for:

Acceptable Values: Any territory name that Oracle supports. For a list, see Oracle Database Globalization Support Guide.

Default Value: Set by NLS_LANG, described in "About Locale and the NLS_LANG Parameter".

Sets default values of:

The following example shows how setting NLS_TERRITORY to JAPAN and AMERICA affects the currency symbol.

To try this example in SQL Developer, enter the statements and queries in the SQL Worksheet. For information about the SQL Worksheet, see "Running Queries in SQL Developer". The results shown here are from SQL*Plus; their format is slightly different in SQL Developer.

NLS_TERRITORY Affects Currency Symbol

  1. Note the current value of NLS_TERRITORY.

    For instructions, see "Viewing NLS Parameter Values".

  2. If the value in step 1 is not JAPAN, change it:

    ALTER SESSION SET NLS_TERRITORY=JAPAN;
    
  3. Run this query:

    SELECT TO_CHAR(SALARY,'L99G999D99') SALARY
    FROM EMPLOYEES
    WHERE EMPLOYEE_ID IN (100, 101, 102);
    

    Result:

    SALARY
    --------------------
              ¥24,000.00
              ¥17,000.00
              ¥17,000.00
     
    3 rows selected.
    
  4. Change the value of NLS_TERRITORY to AMERICA:

    ALTER SESSION SET NLS_TERRITORY=AMERICA;
    
  5. Repeat the query from step 3.

    Result:

    SALARY
    --------------------
              $24,000.00
              $17,000.00
              $17,000.00
     
    3 rows selected.
    
  6. Set NLS_TERRITORY to the value that it had at step 1.

Related Topics

Oracle Database Globalization Support Guide

About Territory Support

Changing NLS Parameter Values

About Individual NLS Parameters