Oracle 参数 NLS_DUAL_CURRENCY 官方解释,作用,如何配置最优化建议

本站中文解释

NLS_DUAL_CURRENCY参数指定当前客户端环境中使用双货币(即,主货币和次货币)的货币符号。在一个双货币环境下,可以让数据库管理员在用户查询时,使用不同的货币符号来显示数据库内的货币数值。

NLS_DUAL_CURRENCY参数值必须以ISO货币代码格式表达,以及货币符号(如美元符号、欧元符号、日元符号等),其格式如下所示:

NLS_DUAL_CURRENCY = ‘XXX’,’Symbol’

XXX:3个字母的ISO货币码,表示货币的种类

Symbol:货币当地的符号(如:$或€等)

例如:NLS_DUAL_CURRENCY = ‘USD’,’ $’ 表示使用美元(美元的ISO代码为USD),以 $ 呈现美元符号

如何正确设置NLS_DUAL_CURRENCY参数:

1. 首先确定需要使用的货币种类;

2. 查询该货币的ISO货币代码,(如美元ISO代码为USD);

3. 确定货币符号;

4. 根据以上信息,设置NLS_DUAL_CURRENCY参数,让数据库环境中正确的使用货币;

5. 将设置好的参数值,通过ALTER SESSION语句,设置临时会话级参数,或使用init 文件中增加或修改参数;

6. 使用SQL*Plus重新启动数据库实例。

官方英文解释

NLS_DUAL_CURRENCY specifies the dual currency symbol (such as “Euro”) for the territory. The default is the dual currency symbol defined in the territory of your current language environment.
Property Description

Parameter type

String

Syntax

NLS_DUAL_CURRENCY = currency_symbol

Default value

Derived from NLS_TERRITORY

Modifiable

ALTER SESSION

Modifiable in a PDB

Yes

Range of values

Any valid format name up to 10 characters

Basic

No

Note:

The value of this initialization parameter NLS_DUAL_CURRENCY 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 参数 NLS_DUAL_CURRENCY 官方解释,作用,如何配置最优化建议