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

About the NLS_CALENDAR Parameter

Specifies: Calendar system for the database.

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

Default Value: Gregorian

The following example shows how setting NLS_CALENDAR to 'English Hijrah' and Gregorian affects the displayed system date.

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_CALENDAR Affects Displayed SYSDATE

  1. Note the current value of NLS_CALENDAR.

    For instructions, see "Viewing NLS Parameter Values".

  2. If the value of NLS_CALENDAR in step 1 is not 'English Hijrah', change it:

    ALTER SESSION SET NLS_CALENDAR='English Hijrah';
    
  3. Run this query:

    SELECT SYSDATE FROM DUAL;
    

    Result:

    SYSDATE
    -------------------------
    29 Ramadan           1429
    
  4. Change the value of NLS_CALENDAR to 'Gregorian':

    ALTER SESSION SET NLS_CALENDAR='Gregorian';
    
  5. Run this query:

    SELECT SYSDATE FROM DUAL;
    

    Result:

    SYSDATE
    ---------
    30-SEP-08
    
  6. Set NLS_CALENDAR to the value that it had at step 1.

Related Topics

Oracle Database Globalization Support Guide

About Calendar Formats

Changing NLS Parameter Values

About Individual NLS Parameters