How to modify the character set of Oracle 9i to utf8 (Chinese)

Source: Internet
Author: User
1. If Oracle 9i is installed, the default value in the National charset is al16utf16.
If you want to change al16utf16 to utf8
Follow the previous method
Update SYS. Props $
Set Value $ = 'utf8' where name = ''nls _ nchar_characterset '';
The charset information is not fully reflected in Oracle.
Therefore, when inserting data in a table, the value is set to al16utf16, and only the default space is set to utf8 ..

2, so we should change it like this
$ Sqlplus '/As sysdba'
SQL> shutdown immediate;
SQL> startup Mount exclusive;
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 National Character Set utf8;
SQL> shutdown immediate;
SQL> startup;

You can use the preceding method, but 'ora-12717: cannot alter database national character set when may appear.
Message like nclob data exists

There are two ways to solve this problem

One is to use the internal_use keyword to modify the region settings, and the other is to use re-create, but re-create is a bit complicated, so use internal_use,
$ Sqlplus '/As sysdba'
SQL> shutdown immediate;
SQL> startup Mount exclusive;
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 National Character Set internal_use utf8;
SQL> shutdown immed

If you follow the above steps, the National charset region settings will be fine.

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.