oracle编码转换:AL32UTF8->ZHS16GBK

首先查询数据库编码:

select userenv('language') from dual;

得到:




【更改编码】


--修改Oracle数据库字符集为utf-8:

SQL>conn / as sysdba;

SQL>shutdown immediate;

SQL>startup mount;

SQL>alter system enable restricted session;

SQL>alter system set job_queue_processes=0;

SQL>alter system set aq_tm_processes=0;

SQL>alter database open;

SQL>alter database character set internal_use utf8; --zhs16gbk

 

SQL>shutdown immediate;

SQL>startup;


再次执行:

oracle编码转换:AL32UTF8->ZHS16GBK_第1张图片



-- 下面直接复制:

--修改Oracle数据库字符集为utf-8:

conn / as sysdba;

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; --zhs16gbk

 

shutdown immediate;

startup;





你可能感兴趣的:(oracle编码,ZHS16GBK)