Solve the problem of inserting Chinese garbled characters in PLSQL Developer

http://blog.csdn.net/guowd/article/details/50989109

PLSQL Developer inserts Chinese garbled characters, as shown in the figure
  
This is caused by the inconsistency between Oracle server-side character encoding and Oracle client-side character encoding.

Check the Oracle server-side character encoding, use

select userenv('language') from dual;
select * from v$nls_parameters a where a.PARAMETER = 'NLS_CHARACTERSET';

as follows:

       

By looking in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\, NLS_LANG The character set used by the client can be known by the specific key value, as shown in the figure: It



seems that there is no problem here. According to the online prompt, check the PL/SQL Developer tool: Help - Support Information - Information tab. Under "Character Sets", there is an item: "NLS_LANG", its value is empty, but the registration has been checked above The key value of the table NLS_LANG item is correct, which means that the PL/SQL Developer tool has not loaded the information into the registry.



It seems that the environment variable needs to be added. In the environment variable - system variable, add the variable NLS_LANG, fill in the character set (SIMPLIFIED CHINESE_CHINA.ZHS16GBK) used by the Oracle server found above, and then exit PL/SQL Developer Then re-open the login into Oracle.




Re-insert Chinese into the Oracle database and query again, it should no longer become a question mark!

Guess you like

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