Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How set Date format Globally
Hi,
or set NLS_DATE_FORMAT in the registry (32 bits) or oracle.ini (16 bits) in
all clients.
Best Regards,
Nabila Mekkaoui
DBA Oracle
-----Message d'origine-----
De : Vladimir Begun [mailto:jester_at_whale.sunbay.crimea.ua]
Envoyé : mercredi 11 juillet 2001 09:56
À : Multiple recipients of list ORACLE-L
Objet : Re: How set Date format Globally
On Jul 11, 2001 at 12:35:21AM, Rangachari Sundar wrote:
> Hi,
>
> I have a requirement. Everytime when i make a session to the database i
want the
> Date Format to beas follows
>
> 'yyyy-mm-dd hh:mi:ss'
>
> The existing default format is 'dd-mon-yyyy' and so I tried the following
steps.
>
> ALTER SESSION set NLS_DATE_FORMAT='yyyy-mm-dd hh:mi:ss' and put that in
the
> login.sql it worked fine for my every client session.
>
> How can I set it globally so that everytime when I make a session to
database
> from any client It should be 'yyyy-mm-dd hh:mi:ss'.
Set NLS_DATE_FORMAT in init.ora
Would be cool to use dbms_session.set_nls in your logon trigger but it does not work correctly. See bug 1574885, if it's published already. (it was not). Search over metalink for examples.
-- Vladimir Begun | There's a lesson here. Generalizations are http://vbegun.net/ | generally useless unless used. http://vbegun.net/wap/ | -- Larry Wall in me_at_vbegun.net | <199911192159.NAA23536_at_kiev.wall.org> -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Vladimir Begun INET: jester_at_whale.sunbay.crimea.ua Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INF/MEKKAOUI INET: nmekkaoui_at_lth.sonatrach.dz Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Jul 11 2001 - 06:15:07 CDT
![]() |
![]() |