ORACLE客户端语言设置,SQLPLUS乱码解决方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORACLE客户端语言设置,SQLPLUS乱码解决方法相关的知识,希望对你有一定的参考价值。

客户端环境参数

NLS_LANG = LANGUAGE_TERRITORY.CHARACTER_SET 

说明如下

Parameter                   Description

LANGUAGE              Specifies the language and conventions for displaying messages, day name, and month name.

TERRITORY               Specifies the territory and conventions for calculating week and day numbers.

CHARACTER_SET    Controls the character set used for displaying messages.

翻译

language(语言)          指定语言并将显示信息、日期、月份转化为这种语言的惯用方式

territory(地区)            指定地区并将计算星期日期转为这种地区的惯用方式。

character_set(字符集) 控制字符集用于显示信息。


**如下设置为美国英语_美国_AL32UTF8字符集**

export NLS_LANG=AMERICAN_AMERICA.AL32UTF8


下表为常用设置

Operating System LocaleNLS_LANG   Value
Arabic (U.A.E.)ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256
BulgarianBULGARIAN_BULGARIA.CL8MSWIN1251
CatalanCATALAN_CATALONIA.WE8MSWIN1252
Chinese (PRC)SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Chinese (Taiwan)TRADITIONAL CHINESE_TAIWAN.ZHT16MSWIN950
CroatianCROATIAN_CROATIA.EE8MSWIN1250
CzechCZECH_CZECH REPUBLIC.EE8MSWIN1250
DanishDANISH_DENMARK.WE8MSWIN1252
Dutch (Netherlands)DUTCH_THE NETHERLANDS.WE8MSWIN1252
English (United Kingdom)ENGLISH_UNITED KINGDOM.WE8MSWIN1252
English (United States)AMERICAN_AMERICA.WE8MSWIN1252
EstonianESTONIAN_ESTONIA.BLT8MSWIN1257
FinnishFINNISH_FINLAND.WE8MSWIN1252
French (Canada)CANADIAN FRENCH_CANADA.WE8MSWIN1252
French (France)FRENCH_FRANCE.WE8MSWIN1252
German (Germany)GERMAN_GERMANY.WE8MSWIN1252
GreekGREEK_GREECE.EL8MSWIN1253
HebrewHEBREW_ISRAEL.IW8MSWIN1255
HungarianHUNGARIAN_HUNGARY.EE8MSWIN1250
IcelandicICELANDIC_ICELAND.WE8MSWIN1252
IndonesianINDONESIAN_INDONESIA.WE8MSWIN1252
Italian (Italy)ITALIAN_ITALY.WE8MSWIN1252
JapaneseJAPANESE_JAPAN.JA16SJIS
KoreanKOREAN_KOREA.KO16MSWIN949
LatvianLATVIAN_LATVIA.BLT8MSWIN1257
LithuanianLITHUANIAN_LITHUANIA.BLT8MSWIN1257
NorwegianNORWEGIAN_NORWAY.WE8MSWIN1252
PolishPOLISH_POLAND.EE8MSWIN1250
Portuguese (Brazil)BRAZILIAN PORTUGUESE_BRAZIL.WE8MSWIN1252
Portuguese (Portugal)PORTUGUESE_PORTUGAL.WE8MSWIN1252
RomanianROMANIAN_ROMANIA.EE8MSWIN1250
RussianRUSSIAN_CIS.CL8MSWIN1251
SlovakSLOVAK_SLOVAKIA.EE8MSWIN1250
Spanish (Spain)SPANISH_SPAIN.WE8MSWIN1252
SwedishSWEDISH_SWEDEN.WE8MSWIN1252
ThaiTHAI_THAILAND.TH8TISASCII
Spanish (Mexico)MEXICAN SPANISH_MEXICO.WE8MSWIN1252
Spanish (Venezuela)LATIN AMERICAN SPANISH_VENEZUELA.WE8MSWIN1252
TurkishTURKISH_TURKEY.TR8MSWIN1254
UkrainianUKRAINIAN_UKRAINE.CL8MSWIN1251
VietnameseVIETNAMESE_VIETNAM.VN8MSWIN1258


以上是关于ORACLE客户端语言设置,SQLPLUS乱码解决方法的主要内容,如果未能解决你的问题,请参考以下文章

sql server2005远程连接oracle11g查询结果中文乱码,怎么解决?

设置 Oracle,Sqlplus,Linux 设置为UTF8 专治中文乱码 ,查看表的创建过程

解决SqlPlus前台程序出现中文乱码的问题

oracle sql developer 查询乱码和文件打开乱码问题

oracle 用Sqlplus连接的时候中文出现乱码

解决oracle中sqlplus工具输错字符乱码,空格乱码的问题