pl / sql Chinese show? garbage problem

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

  1. Execute sql statement in pl / sql in select userenv('language') from dual;view native character setresult

  2. 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

  1. If you restart the computer is not good

  2. We can also select * from V$NLS_PARAMETERSview 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

Guess you like

Origin blog.csdn.net/weixin_33727510/article/details/91897085