2 Day Developer > Working in a Global Environ... > Setting Up the Globalizatio... > Setting NLS Parameters
Setting NLS Parameters |
Previous |
Next |
National Language Support (NLS) parameters determine the locale-specific behavior on both the client and the server. NLS parameters can be specified several ways. In this guide, altering parameters for the user session and overriding the parameters in SQL functions are discussed. Both of these techniques are accomplished through the use of SQL statements.
You can alter the NLS parameters settings by:
Setting NLS parameters in an ALTER
SESSION
statement to override the default values that are set for the session in the initialization parameter file, or that are set by the client with environment variables. For example:
ALTER SESSION SET NLS_SORT = french;
Note that the changes that you make with the ALTER
SESSION
statement apply only to the current user session and are not present the next time you log in.
See Also:
|
Using NLS parameters within a SQL function to override the default values that are set for the session in the initialization parameter file, set for the client with environment variables, or set for the session by the ALTER
SESSION
statement. For example:
TO_CHAR(hiredate,'DD/MON/YYYY','nls_date_language = FRENCH')
See Also:
|
Additional methods for setting the NLS parameters include the use of NLS environment variables on the client, which may be platform-dependent, to specify locale-dependent behavior for the client and also to override the default values set for the session in the initialization parameter file. For example, on a Linux system:
% setenv NLS_SORT FRENCH
See Also: Oracle Database Express Edition Installation Guide for Linux or Oracle Database Express Edition Installation Guide for Microsoft Windows for information about setting globalization parameters and environmental variables |