Oracle client Character Set settings

Source: Internet
Author: User


Programmers often need to connect to the database to talk about the oracle database client and server Character Set consistency problem, which can solve Chinese garbled characters, other character garbled problems mainly refer to in sqlplus, I do not test other similar toad/plsql statements, but I feel that as long as the character set is consistent, there will be no gibberish issues. My testing environment: win7 64bit, oracle11g 32bit client, oracle Server: oracle 10.2.0.1.0; www.2cto.com 1. first method to view server Character Set: select userenv ('langue') from dual second method: select * from NLS_DATABASE_PARAMETERS assume that the server Character Set queried is AMERICAN_AMERICA.US7ASCII 2. the first method to set the client Character Set: regedit-> HKEY_LOCAL _ MACHINE-> SOFTWARE-> ORACLE-> key_javaslient11g_home1-> NLS_LANG: Back up the key value of NLS_LANG (to prevent errors) and then change it to AMERICAN_AMERICA.US7ASCII (consistent character set with the database) www.2cto.com is applicable in most cases. Method 2: Modify the environment variable my computer-> right-click-> properties-> advanced system-> advanced-> environment variable-> New User variable new user variable name: the value of the NLS_LANG variable is AMSERICAN_AMERICA.US7ASCII (consistent with the database query). It is suitable for multiple installations to delete the key-value pairs of oracle nodes in the registry. No tests are performed for those that have not deleted the registry, we recommend that you use the first method. If anyone can test it, we recommend sharing it. Author: yylp521

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.