How to query and modify Oracle character sets

Source: Internet
Author: User

It is not very common to query the character set modification Character Set of oracle.

Query the character set of Oracle

Method 1

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

Userenv ('language ')

------------------

American_america.we8iso8859p1

Method 2

SQL> select * from V $ nls_parameters;

Parameter Value

--------------------------------------------

Nls_language American

Nls_territory America

Nls_currency $

Nls_iso_currency America

Nls_numeric_characters .,

Nls_calendar Gregorian

Nls_date_format DD-MON-RR

Nls_date_language American

Nls_characterset we8iso8859p1

Nls_sort binary

Nls_time_format HH. Mi. ssxff AM

Nls_timestamp_format DD-MON-RR HH. Mi. ssxff AM

Nls_time_tz_format HH. Mi. ssxff am tzr

Nls_timestamp_tz_format DD-MON-RR HH. Mi. ssxff am tzr

Nls_dual_currency $

Nls_nchar_characterset al16utf16

Nls_comp binary

Nls_length_semantics byte

Nls_nchar_conv_excp false

Modify Character Set

Connect system/Oracle10g as sysdba;

Update props $ set value $ = 'utf8' where name = 'nls _ characterset ';

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 internal_use utf8;

Alter database National Character Set internal_use utf8;

Shutdown immediate;

Startup;

This is not very common. Please note.

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.