Oracle11g changed the character set al32utf8 to zhs16gbk

Source: Internet
Author: User

Database character set (al32utf8) and client character set (zhs16gbk) are different.

Character Set conversion may cause unexpected results.
Note: You can set the client character set through the nls_lang environment variable or the nls_lang registry key in

HKEY_LOCAL_MACHINE/software/Oracle/key_oradb11g_home

Simplified chinese_china.zhs16gbk contains american_america.al32utf8.
This is not a problem of modifying the character set of the client. The character set of the database to be modified:
SQL> Conn/As sysdba
SQL> shutdown immediate;
SQL> startup Mount
SQL> alter system enable restricted session;
SQL> alter system set job_queue_processes = 0;
SQL> alter system set aq_tm_processes = 0;
SQL> alter database open;
SQL> alter database character set zhs16gbk;
ORA-12712: new character set must be a superset of old Character Set
Note: The new character set must be a superset of the old one. In this case, we can skip the superset check and make changes:
SQL> alter database character set internal_use zhs16gbk;
-- We can see that this process is exactly the same as the internal process of the alter database character set operation. That is to say, the help provided by internal_use is that the Oracle database bypasses the validation of the subset and superset.

SQL> select * from V $ nls_parameters;
SQL> shutdown immediate;
SQL> startup
SQL> select * from V $ nls_parameters;
When you install oracle11g in the future, remember to select Custom installation and set up the character set in advance.

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.