Chinese garbled solution after installing oracle10g XE

Source: Internet
Author: User
Tags character set sqlplus

After installing Oracle 10G XE version, because of the default character set reason, Chinese is garbled, by adjusting character set, solve Chinese garbled problem.

C:\users\guan>sqlplus
Sql*plus:release 10.2.0.1.0-production on Saturday November 2 23:56:23 2013
Copyright (c) 1982, +, Oracle. All rights reserved.
Enter User-name:sys as Sysdba
Enter Password:

After landing, execute the following command:

sql> shutdown immediate;
Sql> Startup Mount
ORACLE instance started.

Total System Global area 805306368 bytes
Fixed Size 1289996 bytes
Variable Size 218104052 bytes
Database buffers 583008256 bytes
Redo buffers 2904064 bytes
Database mounted.
Sql> alter session set Sql_trace=true;

Session altered.

Sql> alter system enable restricted session;

System altered.

Sql> alter system set job_queue_processes=0;

System altered.

Sql> alter system set aq_tm_processes=0;

System altered.

sql> ALTER DATABASE open;

Database altered.
Sql> ALTER DATABASE character set Internal_use Al32utf8;

Database altered.

sql> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
Sql> Startup
ORACLE instance started.

Total System Global area 805306368 bytes
Fixed Size 1289996 bytes
Variable Size 218104052 bytes
Database buffers 583008256 bytes
Redo buffers 2904064 bytes
Database mounted.
Database opened.

There is a workaround if you install the Save data

To view the character set of a server segment:

The result of select Userenv (' language ') from dual is AMERCIAN_AMERICA.ZHS16GBK

Related to the database character set is just the ZHS16GBK field, no problem at all

To view the client's character set:

Look for Hkey_local_machine/software/oracle/key_oradb10g_service/nls_lang in the registry, and manually change to the same configuration as the server side Amercian_ America.zhs16gbk

Re-landing Sqlplus, there is a perfect Chinese

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.