View and modify Oracle Server Character Set

Source: Internet
Author: User

View and modify the character set on the Oracle server:

Method 1:

1) view the server character set:

Select * from V $ nls_parameters;

Select * From nls_database_parameters;

Select * From SYS. Props $;

2) modify the server character set (sys user ):

First Run: Update props $ set value $ = 'we8iso8859p1 'Where name = 'nls _ characterset ';

Update props $ set value $ = 'China' where name = 'nls _ language ';

Commit (COMMIT), and then restart the database;

3) Use a client tool (PL/SQL develop or Pb etc .) query the database. If garbled characters are displayed, first query the character set of the database, and then modify the value of the nls_lang field from the Registry, which may be american_america.we8iso8859p1 or simplified chinese_china.zhs16gbk or Na.

Method 2:

Alter system enable restricted session;

Alter database orcl Character Set zhs16gbk;

Alter database orcl National Character Set zhs16gbk;

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.