PLSQL Developer/Oracle Chinese garbled problem solving

The first step is to view the server-side encoding select userenv('language') from dual;

How does PLSQL Developer/Oracle solve the Chinese garbled problem?

The second step, execute the statement select * from V$NLS_PARAMETERS to check whether the VALUE item corresponding to NLS_LANGUAGE in the PARAMETER item in the first line is the same as the value obtained in the first step.

How does PLSQL Developer/Oracle solve the Chinese garbled problem?

The third step, if it is not, you need to set the environment variable. The encoding used by the PLSQL client is inconsistent with the encoding on the server side. Garbled characters will appear when inserting Chinese.

How does PLSQL Developer/Oracle solve the Chinese garbled problem?

The fourth step, set the environment variable Computer->Properties->Advanced System Settings->Environment Variables->New

              Set variable name: NLS_LANG, variable value: the value found in step 1, mine is AMERICAN_AMERICA.ZHS16GBK

How does PLSQL Developer/Oracle solve the Chinese garbled problem?

The fifth step, restart PLSQL, insert data normally

How does PLSQL Developer/Oracle solve the Chinese garbled problem?

Guess you like

Origin blog.csdn.net/qq_39331713/article/details/112648324