标签:
查看字符集:
select * from v$nls_parameters;
select * from nls_database_parameters;
修改字符集:
sqlplus "/as sysdba"
shutdown immediate;
startup mount;
alter session set sql_trace=true;
alter system enable restricted session;
alter system set job_queue_processes=0;
alter system set aq_tm_processes=0;
alter database open;
SQL> ALTER DATABASE character set INTERNAL_USE ZHS16GBK; --修改字符集AL32UTF8->ZHS16GBK
SQL> shutdown immediate; --再次关闭数据库
SQL> STARTUP --启动数据库
SQL> select * from v$nls_parameters where parameter = ‘NLS_CHARACTERSET‘;
==============================
client端字符集修改
在 /home/oracle与 /root用户目录下的.bash_profile中
添加或修改 export NLS_LANG="AMERICAN_AMERICA.UTF8" 语句
关闭当前ssh窗口。
标签:
原文地址:http://www.cnblogs.com/sprinng/p/4534132.html