Oracle Character Set modified to Utf-8__oracle

Source: Internet
Author: User
Tags sqlplus

The character set and service side of the Oracle client are consistent, otherwise there will be garbled problems. changing the client character set

To connect to a server, you can query client settings:

SELECT * from V$nls_parameters;

Set Nls_lang = American_america in environment variable. UTF8 Changing the service-side character set

Through the sqlplus of the command window, log on with the system user, and then execute the following command:

>conn user name as SYSDBA;
>shutdown immediate; 
>startup Mount; 
>alter system enable restricted session;
>alter system set job_queue_processes=0;
>alter system set aq_tm_processes=0;
>alter database open;
>alter database character set UTF8;
or
>alter database character set Internal_use UTF8;
>shutdown immediate;
>startup;

At this point, whether it is sqlplus Insert query, or pl/sql insert query, will not appear garbled.

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.