修改ORACLE数据库的字符集命令

10/19/2009来源:Oracle教程人气:4708

以DBA身份进入SQLPLUS

SQL> sqlplus sys/sys 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 AL32UTF8;(ZHS16GBK)
SQL> shutdown immediate;
SQL> startup;

这样就可以讲Oracle的字符集修改为UTF8,如果需要修改为GBK只需将alter database character set internal_use AL32UTF8;(ZHS16GBK)这句最后的AL32UTF8修改为ZHS16GBK即可。