linux 修改oracle中文乱码

linux 安装oracle默认语言为:
AMERICAN_AMERICA.WE8MSWIN1252 

此语言中文展示位乱码。

通过oracle登录linux系统后进行如下操作:


修改方法(以改成UTF8为例)
以系统DBA权限登录sqlplus
$ sqlplus / as sysdba;
select userenv('language') from dual;
   如果是:AMERICAN_AMERICA.WE8MSWIN1252  则需要调整编码格式为:AL32UTF8
SQL> shutdown immediate;
SQL> startup mount;
SQL> alter system enable restricted session;
SQL> alter system set job_queue_processes=0;
SQL> alter database open;
SQL> alter database character set internal_use AL32UTF8;
SQL> shutdown immediate;
SQL> startup

SQL>alter system disable restricted session;



2.

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 你要的编码集;#比如ZHS16GBK
SQL> shutdown immediate;
SQL> startup;

你可能感兴趣的:(linux 修改oracle中文乱码)