Oracle Database Change Character Set

Source: Internet
Author: User

In the data migration needs to make the source and target database of the character set, version and other information unified ...

Here is the setting for a database that requires the same action on both sides.

[Email protected]> Select Userenv (' language ') from dual;

USERENV (' LANGUAGE ')
----------------------------------------------------
American_america. Zhs16gbk


[Email protected]> startup Mount
ORACLE instance started.
Total System Global area 638853120 bytes
Fixed Size 2255952 bytes
Variable Size 255853488 bytes
Database buffers 373293056 bytes
Redo buffers 7450624 bytes
Database mounted.


[Email protected]> ALTER SESSION SET sql_trace=true;
Session altered.
[Email protected]> ALTER SYSTEM SET job_queue_processes=0;
System altered.
[Email protected]> ALTER SYSTEM SET aq_tm_processes=0;
System altered.
[Email protected]>
[Email protected]>
[Email protected]> ALTER SYSTEM ENABLE RESTRICTED SESSION;
System altered.


[Email protected]> ALTER DATABASE open;
Database altered.
[Email protected]> ALTER DATABASE character set Internal_use we8mswin1252;
Database altered.
[Email protected]> alter system disable restricted session;
System altered.
[Email protected]> execute sys.dbms_metadata_util.load_stylesheets;
PL/SQL procedure successfully completed.


[Email protected]> Select Userenv (' language ') from dual;
USERENV (' LANGUAGE ')
--------------------------------------------------------------------------------
American_america. we8mswin1252

To view the changes, we need to change the previously modified parameters back:


[Email protected]> alter system set JOB_QUEUE_PROCESSES=30;
System altered.
[Email protected]> alter system set Aq_tm_processes=1;

Reboot (forced restart in experimental environment)
[Email protected]> startup force;
ORACLE instance started.
Total System Global area 638853120 bytes
Fixed Size 2255952 bytes
Variable Size 255853488 bytes
Database buffers 373293056 bytes
Redo buffers 7450624 bytes
Database mounted.
Database opened.

Complete ~

Oracle Database Change Character Set

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.