Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SYSDate, NLS_DATE_FORMAT, and default values
From Thomas Kyte Web site
If the client sets the NLS_* parameters -- they override the server in all
cases. In fact, if the client sets the NLS_LANG parameter -- that causes all
NLS_* settings on the server to be ignored and the defaults for that NLS_LANG
specified on the client on used.
Where that comes into play is typically if the client is windows and the server
is unix. The client install on windows set the NLS_LANG parameter in the
registry by default. This setting is different from the default you find for
unix. Any NLS_* settings you put in the init.ora will *not* be used by those
clients.
You have to set the NLS_DATE_FORMAT in the registry on the client
or
you need to put an "alter session set nls_date_format='yyyymmdd'" in your apps right after the connect
or
with Oracle8i, release 8.1 you can code:
create or replace trigger data_logon_trigger
after logon
ON DATABASE
begin
execute immediate
'alter session set nls_date_format = ''yyyymmdd'' ';
end;
/
as well. Received on Thu May 04 2000 - 00:00:00 CDT
![]() |
![]() |