Oracle various character Set modifications

Source: Internet
Author: User
Tags sqlplus


Select * The From V$nls_parameter will show the values of Nls_characterset and Nls_nchar_characterset

The methods for modifying character set Nls_characterset and Nls_nchar_characterset values are as follows:


1, modify Nls_characterset:

sqlplus "/As SYSDBA"
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 utf8;--> indicates that the character set format is modified to UTF8
sql> SHUTDOWN IMMEDIATE
sql> STARTUP

Where internal_use means skipping the character set check;


2, modify Nls_nchar_characterset:

sqlplus "/As SYSDBA"
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 national CHARACTER SET internal_use UTF8;
sql> SHUTDOWN IMMEDIATE
sql> STARTUP


3. Modify the lang parameter under Linux:

VI /etc/sysconfig/i18n---> Modify lang's Parameters


4. Modify the Nls_lang parameters under Linux:

CD/

VI . Bash_profile

Modifying the parameter settings of export Nls_lang

After you have finished modifying the exit, enter the following command at the command line to reset the environment

. . bash_profile

Oracle various character Set modifications

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.