Modify the character set of the Oracle database (UTF8 → ZHS16GBK) and utf8zhs16gbk

Source: Internet
Author: User

Modify the character set of the Oracle database (UTF8 → ZHS16GBK) and utf8zhs16gbk

Modify the character set of the Oracle database (UTF8 → ZHS16GBK)

1. C: \ Users \ Administrator> sqlplus/nolog

2. Log On As sysdba

SQL> conn sys/root as sysdba

3. Call the database by mount

SQL> startup mount

4. Set the session

SQL> ALTER SYSTEM ENABLE RESTRICTED SESSION;

SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES = 0;

SQL> ALTER SYSTEM SET AQ_TM_PROCESSES = 0;

5. Start the database

SQL> alter database open;

6. Modify Character Set

SQL> ALTER DATABASE character set INTERNAL_USE ZHS16GBK;

7. Close and restart

SQL> shutdown immediate;

SQL> startup

 

Of course, it is best not to modify the character set easily, because it will have a direct impact on the database data,

In a formal environment, unpredictable losses may occur.

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.