Oracle 設定環境變數NLS_LANG(用戶端的環境變數)

來源:互聯網
上載者:User

NLS_LANG格式:

NLS_LANG=LANGUAGE_TERRITORY.Client CHARACTERSET

1、NLS_LANG 參數組成

NLS_LANG參數由以下部分組成:

NLS_LANG=<Language>_<Territory>.<Clients Characterset>

NLS_LANG各部分含義如下:

LANGUAGE指定:

 Oracle訊息使用的語言

 日期中月份和日顯示

TERRITORY指定

 貨幣和數字格式

 地區和計算星期及日期的習慣

CHARACTERSET:

控制用戶端應用程式使用的字元集

在Oracle NLS_LANG設定中通常設定或者等於用戶端(如Windows)字碼頁

或者對於unicode應用設定為UTF8

查看當前oracle使用的CHARACHERSET:

select * from v$nls_parameters where parameter='NLS_CHARACTERSET';

查看instance字元集Language與Territory:

select * from nls_instance_parameters; 

NLS_LANGUAGE 

NLS_TERRITORY 

查看這兩項

2、查看NLS_LANG設定:

env|grep NLS_LANG

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.