oracle 11g rac 修改字符集

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle 11g rac 修改字符集相关的知识,希望对你有一定的参考价值。

系统版本:
Oracle Linux Server release 5.7
数据库版本:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
查看字符集:
SQL>select userenv(‘language‘) from dual;
USERENV(‘LANGUAGE‘)

AMERICAN_AMERICA.AL32UTF8
关闭RAC其中一个节点:
[[email protected] ~]#cd /u01/app/11.2.0/grid/bin/crsctl
[[email protected] ~]#./crsctl stop cluster
在另一个节点执行:
SQL>alter system set cluster_database=false scope=spfile;
关闭数据库:
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 ZHS16GBK;
Database altered.
恢复数据库为RAC:
SQL> alter system set cluster_database=true scope=spfile;
SQL> shutdown immediate;
SQL>startup;
SQL> execute sys.dbms_metadata_util.load_stylesheets;
启动另一节点cluster服务并验证:
[[email protected] ~]#./crsctl start cluster
查看字符集:
SQL>select userenv(‘language‘) from dual;
USERENV(‘LANGUAGE‘)

AMERICAN_AMERICA.ZHS16GBK

参考博文:http://blog.itpub.net/28939273/viewspace-1061440/

以上是关于oracle 11g rac 修改字符集的主要内容,如果未能解决你的问题,请参考以下文章

Oracle 11g RAC将归档从ASM修改到本地

Oracle 11g 字符集修改

oracle11g 修改字符集 修改为ZHS16GBK

oracle11g 修改字符集 修改为ZHS16GBK

Oracle11g R2 RAC 数据库安装

AIX 环境 Oracle 11g RAC 安装指南 | 资料