The company uses an Oracle database, never used before, the recording pit about their own problems
After installing pl / sql, view database database Chinese show? Garbled, English and other digital display properly
According to the method in this blog solves the problem
the reason
Since the computer is not configured database character set environment variables, or is inconsistent with the database character set
Solution
-
Execute sql statement in pl / sql in
select userenv('language') from dual;
view native character set -
Add two configuration information in the environment variable
LANG = zh_CN.GBK (this looks like can be omitted, I did not add too successful, this is GBK coding, coding value different values here need to change with it)
the NLS_LANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK
-
If you restart the computer is not good
-
We can also
select * from V$NLS_PARAMETERS
view the native character set, wherein the first row, second row, value data in the ninth row第一行_第二行.第九行
format as stitching together the value of the environment variable NLS_LANG
Reproduced in: https: //my.oschina.net/imsorry/blog/3057362