Specify NLS-Settings during Oracle installation under Windows

nlsoracleoracle-11g-r2oracle-12c

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 in NLS_INSTANCE_PARAMETERS at the time of database creation and cannot be changed later. Reasoning given in link above is that NLS_DATABASE_PARAMETERS is used by the data dictionary to validate CHECK constraints and changing these parameters could violate those constraints.

NLS_LANGUAGE and NLS_TERRITORY need to be set to the desired values in your parameter file at the time the CREATE DATABASE statement is issued for the values to be stored in NLS_DATABASE_PARAMETERS.