Oracle Chinese character garbled problem causes and solutions

Oracle Chinese characters garbled problem causes and solutionshttp

://blog.csdn.net/gccr/article/details/1907303

http://xxwinnie.iteye.com/blog/564151

ORACLE modify the character set encoding of the database to UTF-8 method

http://jingyan.baidu.com/article/4b07be3c7dfb3248b380f3ef.html

select * from database_properties a where a.PROPERTY_NAME in('NLS_CHARACTERSET','NLS_NCHAR_CHARACTERSET') ;
select * from v$nls_parameters t where t.PARAMETER in ('NLS_CHARACTERSET ','NLS_NCHAR_CHARACTERSET');

1 NLS_CHARACTERSET ZHS16GBK Character set
2 NLS_NCHAR_CHARACTERSET UTF8 NCHAR Character set
1 NLS_CHARACTERSET ZHS16GBK
2 NLS_NCHAR_CHARACTERSET UTF8
select userenv('language') from dual;
SIMPLIFIED CHINESE_CHINA. ZHS16GBK

ubuntu terminal oracle sqlplus Chinese display garbled problem
Classification: Oracle
is very simple, because the NLS_LANG environment variable in your environment is English or other by default, you only need to add export NLS_LANG="SIMPLIFIED CHINESE_CHINA.UTF8"
to the /etc/profile file. If it is UTF8, then you The encoding of the terminal settings should also be the same. If gb2312 is given, then your terminal should also be gb2312
. Then every time you restart the operating system, the sqlplus started by the terminal you open is in Chinese. Of course, the premise is that your ubuntu must be Already support Chinese environment [@more@]ubuntu terminal oracle sqlplus Chinese display garbled problem

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326634499&siteId=291194637