Oracle Database on Linux solutions Chinese garbled

Question: In a client with SQL Developer, SQL Plus are normal, but on a Linux server Chinese is garbled. Normal data, scripts, and code has Chinese is not normal.

Program:

  • Language database query: select userenv ( 'language') from dual
  • View the current user's language echo $ NLS_LANG (or echo $ LANG, this will affect the current application language for all users)
  • Together provided .profile or .bash_profile export NLS_Lang = <result of step>
  • source .profile make the configuration take effect immediately
  • Check the environment variable NLS_LANG again, it should have been changed.

 

Guess you like

Origin www.cnblogs.com/rockniu2/p/11347591.html