IT技术博客大学习 共学习 共进步
全部 移动开发 后端 数据库 AI 算法 安全 DevOps 前端 设计 开发者

ORACEL RAC 字符集

DBA Blog 2012-11-02 13:03:25 累计浏览 5,434 次
本机暂存

记录下ORACEL RAC 修改字符集的步骤:

   一:查看当前的字符集

   服务器端字符集:

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

   USERENV(\'LANGUAGE\')

   ----------------------------------------------------

   AMERICAN_AMERICA.ZHS16GBK

   客户端字符集:

   SQL>  select * from v$nls_parameters;

   二:修改:

   [root@hp131 ~]# su - oracle

   hp131-> sqlplus / as sysdba

   SQL*Plus: Release 10.2.0.4.0 - Production on Wed Oct 17 14:42:43 2012

   Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

   Connected to:

   Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

   With the Partitioning, Real Application Clusters, OLAP, Data Mining

   and Real Application Testing options

   SQL> shutdown immediate;

   Database closed.

   Database dismounted.

   ORACLE instance shut down.

   SQL> startup mount;

   ORACLE instance started.

   Total System Global Area 1895825408 bytes

   Fixed Size                  2084840 bytes

   Variable Size             436207640 bytes

   Database Buffers         1442840576 bytes

   Redo Buffers               14692352 bytes

   Database mounted.

   SQL> alter session set sql_trace=true;

   Session altered.

   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 UTF8;

   alter database character set INTERNAL_USE UTF8

   *

   ERROR at line 1:

   ORA-12720: operation requires database is in EXCLUSIVE mode

   关闭其中一个节点

   hp131-> srvctl stop nodeapps -n hp132

   SQL> alter system set cluster_database=false scope=spfile sid=\'wzticket1\';

   System altered.

   SQL> shutdown immediate;

   Database closed.

   Database dismounted.

   ORACLE instance shut down.

   SQL> startup nomount;

   ORACLE instance started.

   Total System Global Area 1895825408 bytes

   Fixed Size                  2084840 bytes

   Variable Size             436207640 bytes

   Database Buffers         1442840576 bytes

   Redo Buffers               14692352 bytes

   SQL> Alter database mount exclusive;

   Database altered.

   SQL> Alter system enable restricted session;

   System altered.

   SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;

   System altered.

   SQL> Alter database open;

   Database altered.

   SQL> alter database character set INTERNAL_USE UTF8;

   Database altered.

   SQL> update props$ set VALUE$=\'ZHS16GBK\' where NAME=\'NLS_NCHAR_CHARACTERSET\';

   1 row updated.

   SQL> commit;

   Commit complete.

   SQL> alter system set cluster_database=true scope=spfile sid=\'wzticket1\';

   System altered.

同分类推荐文章

  1. 使用deepseek进行Oracle恢复,引起重大故障 (2026-06-22 10:56:00)
  2. 接手一个只差临门一脚的数据库恢复 (2026-06-18 00:13:09)
  3. 我做了一个 AI 版的 StarRocks 升级风险扫描工具,直接帮我定位到一个风险 (2026-06-15 01:00:00)

查看更多 数据库 文章 →

建议继续学习

  1. Oracle MTS模式下 进程地址与会话信息 (累计阅读 14,406)
  2. 那些在11gR2中可能惹祸的新特性,一张列表帮助你摆脱升级11gR2带来的烦恼 (累计阅读 6,878)
  3. 性能测试工具sysbench简介 (累计阅读 6,026)
  4. 大于2GB的Listener.log和运行超过198天的主机上的Oracle实例 (累计阅读 5,862)
  5. 仅仅只备份是不够的 (累计阅读 5,824)
  6. Oracle Database 12c 新特性 - Native Top N 查询 (累计阅读 5,750)
  7. ORACLE最大可以存储多少数据量 (累计阅读 5,726)
  8. Oracle DBA的学习进阶成长树-从初出茅庐到高瞻远瞩 (累计阅读 5,601)
  9. 老托的Oracle 数据库Patch概念性小常识 (累计阅读 5,547)
  10. 查看oracle数据库用户下的所有空表 (累计阅读 5,503)