Oracle修改默认字符编码

查看Oracle数据库字符集:

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

USERENV('LANGUAGE')
--------------------------------------------------------------------------------
AMERICAN_AMERICA.WE8MSWIN1252

 

SQL> shutdown immediate; 

SQL> startup mount;

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;

SQL>shutdown immediate; 

SQL>startup;

 

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

USERENV('LANGUAGE')
----------------------------------------------------
AMERICAN_AMERICA.AL32UTF8

export NLS_LANG="SIMPLIFIED CHINESE_CHINA.AL32UTF8"  加入oracle用户变量即可

本文出自 “大王好帅” 博客,转载请与作者联系!

你可能感兴趣的:(oracle,字符集)