Modify character set commands of Oracle databases in Linux

Source: Internet
Author: User
Common scenarios: When you back up the Oracle database from the server and restore the Oracle database to a local machine, you will often encounter inconsistency in the character encoding of the database.

Common scenarios: When you back up the Oracle database from the server and restore the Oracle database to a local machine, you will often encounter inconsistency in the character encoding of the database.

Homepage → Database Technology

Background:

Read News

Modify character set commands of Oracle databases in Linux

[Date: 2014-05-10] Source: Linux community Author: Linux [Font:]

Common scenarios: When the Oracle database is backed up from the server and then restored to the local machine, the character encoding of the database is inconsistent, you can run the following command to modify the character encoding of the local Oracle database, and then restore the Oracle database to the local machine.

Operation Command:

[Oracle @ gpdb ~] $ Sqlplus/nolog

SQL> conn/as sysdba;

SQL> select userenv ('language') from dual;

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 INTERNAL_USE US7ASCII;

SQL> SHUTDOWN IMMEDIATE;

SQL> STARTUP;

SQL> select userenv ('language') from dual;

Common Oracle character sets include ZHS16GBK, AL32UTF8, and US7ASCII.

Modify Oracle character set in Linux: WE8ISO8859P1 to ZHS16GBK

  • 0
  • Install Oracle 11g in Linux

    Oracle random function DBMS_RANDOM

    Related information: Oracle Database Character Set modification: Oracle Database Character Set

    Image Information

    View All comments in this article (0)

    Comments

    Latest Information

    Popular this week

    Introduction to Linux community-advertisement service-website map-help Info-contact us
    The articles published on this site (LinuxIDC) do not mean that they agree with the statement or description. They only provide more information and do not constitute any suggestions.


    Copyright©2006-2014 Linux community All rights reserved Zhejiang ICP backup No. 06018118

    ,

    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.