Oracle 参数 NLS_DATE_LANGUAGE 官方解释,作用,如何配置最优化建议
本站中文解释
NLS_DATE_LANGUAGE参数是指定客户端使用的全字母日期语言。这个参数的值可以是支持的任何日语、英语、法语或德语。
正确设置:
将NLS_DATE_LANGUAGE参数设置为你选择的语言,例如英语,可以使用以下语句设置:
ALTER SESSION SET NLS_DATE_LANGUAGE = ‘American’;
官方英文解释
NLS_DATE_LANGUAGE
specifies the language to use for the spelling of day and month names and date abbreviations (a.m., p.m., AD, BC) returned by the TO_DATE
and TO_CHAR
functions.
Property | Description |
---|---|
Parameter type |
String |
Syntax |
|
Default value |
Derived from |
Modifiable |
|
Modifiable in a PDB |
Yes |
Range of values |
Any valid |
Basic |
No |
Note:
The value of this initialization parameter NLS_DATE_LANGUAGE
is used to initialize the session value of this parameter, which is the actual value referenced by the SQL query processing. This initial value is overridden by a client-side value if the client uses the Oracle JDBC driver or if the client is OCI-based and the NLS_LANG
client setting (environment variable) is defined. The initialization parameter value is, therefore, usually ignored.
See Also:
-
Oracle Database
Globalization Support Guide for more information about this parameter -
Oracle Database SQL
Language Reference for information on theTO_DATE
function. -
Oracle Database SQL
Language Reference for information on theTO_CHAR
function.