Database Character Set

Source: Internet
Author: User

1. View the database character set


Client Character Set environment select * from Nls_instance_parameters, which originates from V$parameter,

represents the setting of the client's character set, possibly a parameter file, an environment variable, or a registry
The
session Character set environment select * from Nls_session_parameters, which originates from V$nls_parameters, represents the session's own settings, which may be the session's environment variable or alter session completion, If the session does not have a special setting, it will be consistent with nls_instance_parameters. The character set of the

Client requires consistency with the server to correctly display non-ASCII characters for the database. If multiple settings exist, the ALTER session> environment variable > Registry > Parameter file

Character set requires consistency, but language settings are different and language settings are recommended in English. If the character set is ZHS16GBK, then Nls_lang can be AMERICAN_AMERICA.ZHS16GBK.

2, modify character set
8i or later can be modified by ALTER DATABASE to modify the character set, but also limited to the subset to the superset, it is not recommended to modify the props$ table, it will likely lead to serious errors.  

Startup nomount;
Alter database Mount exclusive;
Alter system enable restricted session;
Alter system set job_queue_process=0;
Alter database open;
Alter database Character set ZHS16GBK;

3. How to view database version

SELECT * FROM V$version

Contains version information, core version information, bit information (32-bit or 64-bit), etc.

As for the bit information, on the Linux/unix platform, you can view it through file, as

File $ORACLE _home/bin/oracle

This article is from the "KINGDBA" blog, make sure to keep this source http://kingdba.blog.51cto.com/801693/1615848

Database Character Set

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.