change date format [message #481999] |
Tue, 09 November 2010 00:24  |
elaiyavel
Messages: 114 Registered: April 2008
|
Senior Member |
|
|
Hi,
I want to change the date format at database level in 10g express edition.
When i try to run the command,
ALTER SYSTEM SET NLS_DATE_FORMAT='DD/MM/YYYY',
it throws error like specified initialisation parametr is not modifiabale with this option.
what are the other ways to chnage the database date format to the desired one.?
Thanks,
Elaiyavel .
|
|
|
Re: change date format [message #482001 is a reply to message #481999] |
Tue, 09 November 2010 00:35   |
 |
Michel Cadot
Messages: 68767 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
ALTER SYSTEM SET NLS_DATE_FORMAT='DD/MM/YYYY' SCOPE=SPFILE
and restart.
But there should be no reason to do so; explain why you need this.
Regards
Michel
[Edit: a word missing]
[Updated on: Tue, 09 November 2010 01:27] Report message to a moderator
|
|
|
|
|
|
Re: change date format [message #482019 is a reply to message #482016] |
Tue, 09 November 2010 02:41   |
elaiyavel
Messages: 114 Registered: April 2008
|
Senior Member |
|
|
The 3rd party applicatuon that is used to write data to oracle database is using the date format 'DD/MM/YYYY',
I need to set this format in the database, so that no error is thrown. We are not allowed to convert the date formats in 3rd party application.
|
|
|
|
Re: change date format [message #482161 is a reply to message #482022] |
Wed, 10 November 2010 03:26   |
elaiyavel
Messages: 114 Registered: April 2008
|
Senior Member |
|
|
i have set the date format at session level and continuing my development.
ALTER SYSTEM SET NLS_DATE_FORMAT='DD/MM/YYYY' SCOPE=SPFILE -- is successful
i donot have admin access to restart the database to have the change successful. I have raised the request for admin access. will keep you posted.
|
|
|
|
|
|
Re: change date format [message #482178 is a reply to message #482166] |
Wed, 10 November 2010 04:26   |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
ramoradba wrote on Wed, 10 November 2010 09:53whats wrong on that ?
Well, its a surprise to me that a priv as powerful as alter system is available outside the DBA team, doubly so given that a number of things you can do with it (like this exact example) need a restart to take effect.
Just my 2 cents, but I raised my eyebrow at that one too.
Edit: slow browser, LF beat me to it
[Updated on: Wed, 10 November 2010 04:27] Report message to a moderator
|
|
|
|
Re: change date format [message #482640 is a reply to message #482180] |
Mon, 15 November 2010 03:07   |
elaiyavel
Messages: 114 Registered: April 2008
|
Senior Member |
|
|
sorry to activate a old post,
I have re-started the database,but still i'm unable to get the correct format.
Ran the command;
alter system set nls_date_format ='DY Mon DD HH24:MI:SS YYYY' scope=spfile;
re-started the database:
I'm getting date in the old format as "dd-mm-yyyy"
|
|
|
Re: change date format [message #482651 is a reply to message #482640] |
Mon, 15 November 2010 03:54   |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
Then the application is overriding the data format, and changing it at database level doesn't help you.
Have you tried setting the nls_date_format environment variable yet, as Littlefoot suggested?
|
|
|
|
|
|