Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Date Format in Oracle 11g XE

goodluck247Nov 19 2014 — edited Nov 21 2014

Hello everyone,

I have installed Oracle11XE and noticed that it has the following date format:

      SQL> SHOW PARAMETER NLS_DATE_FORMAT

      NAME                                 TYPE        VALUE

      ------------------------------------ ----------- --------

      nls_date_format                      string      RR-MM-DD

I know that I can change the format for the session, like this:

     alter session set nls_date_format = 'DD-MON-YY';

I also know that to change the system parameter I need to do the following:

     alter system set nls_date_format = 'DD-MON-YY' scope=spfile; 

     then restart the database.

However, after I do the latter, the date format is still:

     SQL> select sysdate from dual;

     SYSDATE

     --------

     14-11-19

Could someone tell me why this is happening and correct this?..

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2014
Added on Nov 19 2014
3 comments
2,285 views