Modify the character set of Oracle 10 Gb)

Source: Internet
Author: User

Modify the character set of Oracle 10 GB

Modify the database character set to zhs16gbk.
View server character sets
SQL> select * from V $ nls_parameters;
Modify:
$ Sqlplus/nolog
SQL> Conn/As sysdba
If the database server has been started, run shutdown immediate
To shut down the database server, and then execute the following command:
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
If the statement above the superset cannot be modified, use internal_use to skip the superset check:
SQL> alter database character set internal_use zhs16gbk;

Error at line 1:
ORA-12721: operation cannot execute when other sessions are active

If the preceding error is reported, select Sid, serial #, username, machine from V $ session;

Alter system kill session 'sid' serial # 'immediate; then

Alter system kill session '2017, 7' immediate; as shown in the following figure:

SQL> alter database character set internal_use zhs16gbk;
SQL> shutdown immediate
SQL> startup

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.