oracle字符集AL16UTF16改为ZHS16GBK

Posted 摩西摩西点点

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle字符集AL16UTF16改为ZHS16GBK相关的知识,希望对你有一定的参考价值。

AL16UTF16一个汉字占3个字节

ZHS16GBK一个汉字占2个字节

sql> conn / as sysdba;
sql> shutdown immediate;
database closed.
database dismounted.
oracle instance shut down.
sql> startup mount;
oracle instance started.
total system global area  135337420 bytes
fixed size                          452044 bytes
variable size                     109051904 bytes
database buffers              25165824 bytes
redo buffers                      667648 bytes
database mounted.
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 UTF-8;
sql> shutdown immediate;
sql> startup;

 


------------------------
10g:UTF8 到ZHS16GBK
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 NATIONAL CHARACTER SET AL16UTF16; 更改国际字符集
===========
ALTER DATABASE CHARACTER SET ZHS16GBK; 更改本地字符集
或者
ALTER DATABASE character set INTERNAL_USE ZHS16GBK;
===========
SHUTDOWN IMMEDIATE;
STARTUP ;








































以上是关于oracle字符集AL16UTF16改为ZHS16GBK的主要内容,如果未能解决你的问题,请参考以下文章

Oracle 11g修改字符集AL32UTF8为ZHS16GBK

怎样将oracle中zhs16gbk字符集改为utf8mb4

oracle修改字符集把utf8修改成AMERICAN _ AMERICA. ZHS16GBK

调整oracle数据库编码

CSSCAN 输出的处理

PL/SQL database character set(AL32UTF8) and Client character set(ZHS16GBK) are different