Oracle11gRAC更改字符集为ZHS16GBK的过程
短信预约 -IT技能 免费直播动态提醒
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>
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>
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
Oracle11gRAC更改字符集为ZHS16GBK的过程
下载Word文档到电脑,方便收藏和打印~
下载Word文档
猜你喜欢
2024-04-02
oracle 字符集修改 AL32UTF8 改为 ZHS16GBK
在使用ORACLE的过程中,会出现各种各样的问题,各种各样的错误,其中ORA-12899就是前段时间我在将数据导入到我本地机器上的时候一直出现的问题.不过还好已经解决了这个问题,现在分享一下,解决方案;出现ORA-12899,是字符集引起的,中文在UTF-8中
2014-09-09
2024-04-02
2024-04-02
MySQL更改默认字符集为utf-8的全过程
目录mysql更改默认字符集为utf-8第一步第二步第三步第四步(最关键步骤)总结MySQL更改默认字符集为utf-8第一步如果已经启动mysql服务端,需要在后台进程或者通过net stop MySQL版本号,关闭服务端。第二步找到
2022-12-26
如何更改Oracle字符集以及把ZHS16GBK换成UTF8
如何更改Oracle字符集以及把ZHS16GBK换成UTF8,很多新手对此不是很清楚,为了帮助大家解决这个难题,下面小编将为大家详细讲解,有这方面需求的人可以来学习下,希望你能有所收获。SQL> select name,value$ fro
2023-06-06
mysql如何通过my.ini更改默认字符集
目录通过my.ini更改默认字符集mysql5.6修改完mYnPlXtZZsy.ini字符集失效解决办法总结通过my.ini更改默认字符集这里通过my.ini文件来设置默认字符集打开 my.ini在 [mysqld] 下编程客栈面写上
2022-12-26
oracle更改字符集的方法是什么
要更改Oracle数据库的字符集,可以通过以下步骤来实现:确保在更改字符集之前备份数据库,以防发生意外情况。确定当前数据库的字符集。可以通过查询NLS_DATABASE_PARAMETERS视图来查看当前的字符集设置。使用ALTER DAT
2024-05-14
2024-04-02
MySQL修改字符集的实战教程
前言:
在 MySQL 中,系统支持诸多字符集,不同字符集之间也略有区别。目前最常用的字符集应该是 utf8 和 utf8mb4 了,相比于 utf8 ,utf8mb4 支持存储 emoji 表情,使用范围更广。本篇文章将会介绍 utf8
2022-05-27
2024-04-02
Ubuntu18.04更改apt源为阿里云源的详细过程
目录前言:Ubuntu18.04更改apt源为阿里云源ubuntu sudo update与upgrade的作用及区别总结前言:
看见Ubuntu新出了18.04版本感觉不错,装一个玩玩,虽然有很多教程可以参考,但我也给出一个不是很一样的方
2022-06-04
2024-04-02
Python中遍历字典过程中更改元素导致异常的解决方法
先来回顾一下Python中遍历字典的一些基本方法:
脚本:#!/usr/bin/python
dict={"a":"apple","b":"banana","o":"orange"} print "##########dict######
2022-06-04
2024-04-02