Oracle client garbled-modifying the character set of the Oracle client

Source: Internet
Author: User

How to modify the character set of the Oracle client:

1: You can change the registry key value to set permanently, similar to the following key values:
HKEY_LOCAL_MACHINE/software/Oracle/home0,
Like Simplified Chinese
Nls_lang = simplified chinese_china.zhs16gbk

 

2: view the current character set parameter settings of the database

SQL> select userenv ('language') from dual;

Userenv ('language ')
----------------------------------------------------
Simplified chinese_china.zhs16gbk

 

3: Open the CMD window, garbled

C:/Documents and Settings/Administrator> set nls_lang = american_america.al32utf8

C:/Documents and Settings/Administrator> sqlplus

SQL * Plus: Release 9.2.0.1.0-production on Saturday April 10 10:59:53 2010

Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.

Enter the User name: Scott
Enter the password:

Connect:
Oracle9i Enterprise Edition Release 9.2.0.1.0-Production
With the partitioning, OLAP and Oracle Data Mining options
Jserver release 9.2.0.1.0-Production

SQL> select e-mapreduce, ename, Sal from e-mapreduce where e-mapreduce = 7779;

Empno ename Sal
--------------------------------------------------
7779 million rows hooks 6080

 

 

4: open another cmd window. Normally

C:/Documents and Settings/Administrator> set nls_lang = simplified chinese_china.zhs16gbk

C:/Documents and Settings/Administrator> sqlplus

SQL> select e-mapreduce, ename, Sal from e-mapreduce where e-mapreduce = 7779;

Empno ename Sal
------------------------------
7779 yang ping 6080

 

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.