Home » RDBMS Server » Server Utilities » NLS_DATE_FORMAT in init.ora
NLS_DATE_FORMAT in init.ora [message #69194] |
Tue, 20 November 2001 01:26  |
Pui Hua
Messages: 3 Registered: November 2001
|
Junior Member |
|
|
Hi all,
I am currently using Oracle 8.1.6 and I am facing difficulty in my attempt to change the global date format in Oracle.
I had changed the NLS_DATE_FORMAT the init.ora file by appending this statement at the end of the file:
nls_date_format = 'yyyy-mm-yy hh24:mm:ss'
The database service is then restarted so that the changes will take effect. However, I noticed this setting (date format) only take effects when I logged in as system user; when I logged in as other user, I have to use the "alter session .." command to change the date format dynamically.
Can anyone suggest a way to alter date format to "yyyy-mm-dd" format at database level?
I understand that I can use the TO_DATE function in order to avoid such troubles; However, my program need to be able access both SQL & Oracle databases, thus I have to avoid using database-specific syntax such as TO_DATE or GetDate().
Any hints or suggestions are really appreciated !
Thanks & regards,
Pui Hua
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Jun 06 05:39:03 CDT 2025
|