Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Set NLS_DATE in oracle
I have oracle installation on linux Oracle 9i now I need to set the
NLS_DATE to display the hour and minutes I have tried everytime
possible, but it seems that there is something else missing,Im not
using the spfile, only the init.ora, this is my configuration,
SQL> select name,value from v$parameter where name='nls_date_format';
nls_date_format
DD-MON-YYYY HH24:MI:SS
SQL> select sysdate from dual;
SYSDATE
Thank you
Maria
nls_date_format
DD-MON-YYYY HH24:MI:SS
SQL> select name,value from v$parameter2 where name='nls_date_format';
nls_date_format
DD-MON-YYYY HH24:MI:SS
SQL> select name,value from v$spparameter where name='nls_date_format';
nls_date_format
SQL> select * from v$nls_parameters where parameter='NLS_DATE_FORMAT';
NLS_DATE_FORMAT
DD-MON-RR
DD-MON-YYYY HH24:MI:SS
SQL> select name, value from v$system_parameter where
name='nls_date_format';
nls_date_format
DD-MON-YYYY HH24:MI:SS
this is the init.ora
nls_date_format='DD-MON-YYYY HH24:MI:SS' I have also bounced oracle counteless times and no luck, and this works per session, but I need on server wide
what do I need to do so that the select sysdate from dual will display
alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';
Session altered.
SQL> select sysdate from dual;
SYSDATE
![]() |
![]() |