Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 
 

Setting nls_date_format and ORA-02096
 

Oracle Error Tips by Stephanie Filio of  Burleson Consulting

Many times users go to forums because they are unable to set parameters in a particular instance, in this case, setting the nls_date_format.  Here is a good example on nls_date_format from Oracle DBA Forums:

Question:  I am using Oracle9i. Why it is unable to set nls_date_format?

SQL> STARTUP PFILE=F:\ORACLE\ORA90\DATABASE\INITJAM.ORA
ORACLE instance started.

Total System Global Area 118255568 bytes
Fixed Size 282576 bytes
Variable Size 83886080 bytes
Database Buffers 33554432 bytes
Redo Buffers 532480 bytes
Database mounted.
Database opened.
SQL> SHOW USER
USER is "SYS"
SQL> alter system set nls_date_format='Month DD, yyyy' SCOPE=MEMORY;
alter system set nls_date_format='Month DD, yyyy' SCOPE=MEMORY
*
ERROR at line 1:
ORA-02096: specified initialization parameter is not modifiable with this
option


SQL> alter system set nls_date_format='Month DD, yyyy';
alter system set nls_date_format='Month DD, yyyy'
*
ERROR at line 1:
ORA-02096: specified initialization parameter is not modifiable with this
option


SQL> alter system set nls_date_format='Month DD, yyyy' SCOPE=BOTH;
alter system set nls_date_format='Month DD, yyyy' SCOPE=BOTH
*
ERROR at line 1:
ORA-02096: specified initialization parameter is not modifiable with this
option


SQL> alter system set nls_date_format='Month DD, yyyy' SCOPE=SPFILE;
alter system set nls_date_format='Month DD, yyyy' SCOPE=SPFILE
*
ERROR at line 1:
ORA-02096: specified initialization parameter is not modifiable with this
option
 

Answer:  nls_date_format isn't system changeable without a restart; this is why you couldn't do it with MEMORY, BOTH, or no options (default BOTH).

The last one with SCOPE=SPFILE is failing because you're not using an spfile; you're opening your database with a PFILE instead.

Change the value in your init.ora if you want to start using an init file (PFILE).

Furthermore, another user advised that both the db_cache_size and db_block_buffers should be set by either changing the values of db_cache_size and db_block_buffers in SPFILE using the ALTER SYSTEM command, or by re-creating the SPFILE using the CREATE SPFILE command.

To reset these parameters to their default values, also try:

alter system reset xxx scope = spfile sid = '*' 

Also see these related notes with examples on setting nls_date_format:

 


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

U-Custom startspan -->Hit Counter