CHANGE THE DEFAULT NLS_DATE_FORMAT oracle 10g & 11g


ALTER SYSTEM SET NLS_DATE_FORMAT='DD-MM-YYYY' SCOPE=SPFILE;
ALTER SYSTEM SET NLS_DATE_FORMAT='DD-MM-YYYY' SCOPE=SPFILE
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE specified at startup

select INSTANCE_NAME from v$instance;
INSTANCE_NAME
----------------
AZDB2
create spfile='/oracle/10g/dbs/spfileAZDB2.ora' from pfile='/oracle/10g/dbs/initAZDB2.ora';
select INSTANCE_NAME from v$instance;
INSTANCE_NAME
----------------
AZDB2
ALTER SYSTEM SET NLS_DATE_FORMAT='DD-MM-YYYY' SCOPE=SPFILE;
System altered.

sqlplus "/ as sysdba"
shut immediate;
startup;

SELECT value FROM v$nls_parameters WHERE parameter ='NLS_DATE_FORMAT';
VALUE
----------------------------------------------------------------
DD-MM-YYYY
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: