php 设置nls lang,NLS_LANG 怎么修改?

3 server side levels:  DATABASE, INSTANCE, SESSION    DATABASE - these are as specified when the database is created -             NLS_CHARACTERSET comes from the create database command itself;             all other settings are taken as from the 'current session'.               View the database settings and importantly database characterset             with:

SELECT * FROM NLS_DATABASE_PARAMETERS;               eg:               PARAMETER                      VALUE             ------------------------------ ------------------------------             NLS_LANGUAGE                   AMERICAN             NLS_TERRITORY                  AMERICA             NLS_CURRENCY                   $             NLS_ISO_CURRENCY               AMERICA             NLS_NUMERIC_CHARACTERS         .,             NLS_DATE_FORMAT                DD-MON-YY             NLS_DATE_LANGUAGE              AMERICAN             NLS_CHARACTERSET               US7ASCII             NLS_SORT                       BINARY

INSTANCE - As specified in the init.ora file.  Note you cannot override the             the database characterset.  View settings with:

SELECT * FROM NLS_INSTANCE_PARAMETERS;               eg:               PARAMETER                      VALUE             ------------------------------ ------------------------------             NLS_LANGUAGE                   AMERICAN             NLS_TERRITORY                  AMERICA             NLS_SORT             NLS_DATE_LANGUAGE             NLS_DATE_FORMAT             NLS_CURRENCY             NLS_NUMERIC_CHARACTERS             NLS_ISO_CURRENCY

This view will only display values for parameters that have been             explicitly set in the init.ora file.

SESSION -  These are the settings that are in force for the current session.             They are derived as follows:               a)  from the database settings, overridden by             b)  the instance settings, overridden by             c)  any alter session type commands.               Session parameters are viewed as below.  Note again there is no             concept of a session level characterset - this belongs only to the             database.

SELECT * FROM NLS_SESSION_PARAMETERS;

eg:               PARAMETER                      VALUE             ------------------------------ ------------------------------             NLS_LANGUAGE                   AMERICAN             NLS_TERRITORY                  AMERICA             NLS_CURRENCY                   $             NLS_ISO_CURRENCY               AMERICA             NLS_NUMERIC_CHARACTERS         .,             NLS_DATE_FORMAT                DD-MON-YY             NLS_DATE_LANGUAGE              AMERICAN             NLS_SORT                       BINARY

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值