返回顶部
首页 > 资讯 > 数据库 >Oracle11gRAC更改字符集为ZHS16GBK的过程
  • 956
分享到

Oracle11gRAC更改字符集为ZHS16GBK的过程

2024-04-02 19:04:59 956人浏览 薄情痞子
摘要

sql>conn / as sysdba SQL> show parameter cluster NAME     TYPE VALUE ---------

sql>conn / as sysdba


SQL> show parameter cluster


NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database     boolean TRUE
cluster_database_instances     integer 2
cluster_interconnects     string
SQL> select * from nls_database_parameters where parameter='NLS_CHARACTERSET';


PARAMETER
------------------------------
VALUE
--------------------------------------------------------------------------------
NLS_CHARACTERSET
AL32UTF8




SQL> shu immediate
Database closed.
Database dismounted.
oracle instance shut down.
SQL> startup mount
ORACLE instance started.


Total System Global Area 6.2934E+10 bytes
Fixed Size    2268712 bytes
Variable Size 6039798232 bytes
Database Buffers 5.6774E+10 bytes
Redo Buffers  118157312 bytes
Database mounted.
SQL> alter system enable restricted session;


System altered.


SQL> show parameter job_queue_processes; 


NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes     integer 1000
SQL> show parameter aq_tm_processes;


NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes     integer 1
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 ZHS16GBK;
alter database character set ZHS16GBK
*
ERROR at line 1:
ORA-12712: new character set must be a superset of old character set




SQL> alter database character set internal_use ZHS16GBK;
alter database character set internal_use ZHS16GBK
*
ERROR at line 1:
ORA-12720: operation requires database is in EXCLUSIVE mode




SQL> alter system set cluster_database=FALSE scope=spfile sid='*';


System altered.


SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup restrict
ORACLE instance started.


Total System Global Area 6.2934E+10 bytes
Fixed Size    2268712 bytes
Variable Size 6039798232 bytes
Database Buffers 5.6774E+10 bytes
Redo Buffers  118157312 bytes
Database mounted.
Database opened.
SQL> alter database character set internal_use ZHS16GBK;


Database altered.


SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.


Total System Global Area 6.2934E+10 bytes
Fixed Size    2268712 bytes
Variable Size 6039798232 bytes
Database Buffers 5.6774E+10 bytes
Redo Buffers  118157312 bytes
Database mounted.
Database opened.
SQL> select * from nls_database_parameters where parameter='NLS_CHARACTERSET';


PARAMETER
------------------------------
VALUE
--------------------------------------------------------------------------------
NLS_CHARACTERSET
ZHS16GBK




SQL> alter system set cluster_database=TRUE scope=spfile sid='*';


System altered.


SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> alter system set job_queue_processes=1000;
alter system set job_queue_processes=1000
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 8833
Session ID: 2271 Serial number: 3




SQL> startup mount
ORACLE instance started.


Total System Global Area 6.2934E+10 bytes
Fixed Size    2268712 bytes
Variable Size 6039798232 bytes
Database Buffers 5.6774E+10 bytes
Redo Buffers  118157312 bytes
Database mounted.
SQL> alter system set job_queue_processes=1000;


System altered.


SQL> show parameter aq


NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes     integer 0
SQL> alter system set aq_tm_processes=1;


System altered.


SQL> alter database open;


Database altered.


SQL> show parameter cluster_database


NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
cluster_database     boolean TRUE
cluster_database_instances     integer 2
SQL> select * from nls_database_parameters where parameter='NLS_CHARACTERSET';


PARAMETER
------------------------------
VALUE
--------------------------------------------------------------------------------
NLS_CHARACTERSET
ZHS16GBK




SQL> 

您可能感兴趣的文档:

--结束END--

本文标题: Oracle11gRAC更改字符集为ZHS16GBK的过程

本文链接: https://lsjlt.com/news/48301.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作