Is there an easy way to specify NLS parameters for the database during the installation?
We want to install a new database (environment: Windows). For testing purpose we need NLS settings for nls_language and nls_territory that differ from the default values (German instead of American). To avoid the process of dropping an recreating the database with changed init.ora I would like to specify those setting during a fresh installation on a VM.
I found no settings in the setup dialogue. Is there any way to achieve this?
environment: Oracle Database Enterprise Edition, available versions 11.2 or 12.1.
Best Answer
From the Oracle forums: https://community.oracle.com/thread/777001
It appears that
NLS_DATABASE_PARAMETERS
is essentially a permanent copy of the values inNLS_INSTANCE_PARAMETERS
at the time of database creation and cannot be changed later. Reasoning given in link above is thatNLS_DATABASE_PARAMETERS
is used by the data dictionary to validateCHECK
constraints and changing these parameters could violate those constraints.NLS_LANGUAGE
andNLS_TERRITORY
need to be set to the desired values in your parameter file at the time theCREATE DATABASE
statement is issued for the values to be stored inNLS_DATABASE_PARAMETERS
.