Oracle 数据库字符集变更
在sqlplus(即Oracle XE的run SQL command line)中, 进行如下的操作来修改字符集:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts/sqlplus.sh
connect system/ 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 ZHS16GBK ;
shutdown immediate
startup
这样字符集的修改就完成了。
查看字符集 :
select * from nls_database_parameters where parameter in ('NLS_CHARACTERSET','NLS_NCHAR_CHARACTERSET')
NLS_CHARACTERSET : 当前数据库字符集。
NLS_NCHAR_CHARACTERSET : 国家字符集。