成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

CentOS Data Guard數(shù)據(jù)庫(kù)更改字符集備庫(kù)需要單獨(dú)操作

系統(tǒng) Linux
CentOS Data Guard下面的操作均在Primary上,不會(huì)影響到Standby DB,備庫(kù)需要單獨(dú)操作。數(shù)據(jù)庫(kù)更改字符集:源字符集CentOS Data Guard目標(biāo)字符集WE8ISO8859P1 --> AL32UTF8AL16UTF16 --> AL16UTF16

在向大家詳細(xì)介紹CentOS Data Guard 之前,首先讓大家了解下CentOS Data Guard ,然后全面介紹CentOS Data Guard ,希望對(duì)大家有用。[實(shí)驗(yàn)]CentOS Data Guard環(huán)境下修改數(shù)據(jù)庫(kù)字符集 環(huán)境.

  1. VMWARE  
  2. OS:CentOS 5.3  
  3. Primary:Oracle 10.2.0.1.0  
  4. Standby:Oracle 10.2.0.1.0 

CentOS Data Guard下面的操作均在Primary上,不會(huì)影響到Standby DB,備庫(kù)需要單獨(dú)操作。數(shù)據(jù)庫(kù)更改字符集:源字符集CentOS Data Guard目標(biāo)字符集WE8ISO8859P1 --> AL32UTF8AL16UTF16 --> AL16UTF16

<方法一>:由于目標(biāo)CentOS Data Guard字符集不是源字符集的超集,所以導(dǎo)致失敗

  1.   Startup nomount;  
  2.   Alter database mount exclusive;  
  3.   Alter system enable restricted session;  
  4.   Alter system set job_queue_processes=0;**  
  5.   Alter database open;  
  6.   Alter database character set AL32UTF8; 


在***一步報(bào)錯(cuò),內(nèi)容為目標(biāo)字符集不是源字符集的超集過(guò)程:

  1. SQL> shutdown immediate;  
  2. Database closed.  
  3. Database dismounted.  
  4. ORACLE instance shut down.  
  5. SQL> startup nomount;  
  6. ORA-32004: obsolete and/or deprecated parameter(s) specified  
  7. ORACLE instance started.  
  1. Total System Global Area  272629760 bytes  
  2. Fixed Size                  1218920 bytes  
  3. Variable Size              92276376 bytes  
  4. Database Buffers          176160768 bytes  
  5. Redo Buffers                2973696 bytes  
  6. SQL> Alter database mount exclusive;  
  1. Database altered.  
  2. SQL> Alter system enable restricted session;  
  3. System altered.  
  4. SQL> Alter system set job_queue_processes=0;  
  5. System altered.  
  6. SQL> Alter database open;  
  7. Database altered.  
  8. SQL> Alter database character set AL32UTF8;  
  9. Alter database character set AL32UTF8  
  10. ERROR at line 1:  
  11. ORA-12712: new character set must be a superset of old character set  
  1. SQL> host  
  2. [oracle@Primary ~]$ oerr ora 12712  
  3. 12712, 00000, "new character set must be a superset of old character set"  
  4. // *Cause: When you ALTER DATABASE ... CHARACTER SET, the new  
  5. //         character set must be a superset of the old character set.  
  6. //         For example, WE8ISO8859P1 is not a superset of the WE8DEC.  
  7. // *Action: Specify a superset character set.  

 CentOS Data Guard<方法二>:成功,但此方法非常危險(xiǎn),可能會(huì)造成數(shù)據(jù)庫(kù)崩潰
SQL> show user;
USER is "SYS"
SQL> select status from v$instance; 
STATUS
OPEN
SQL> update props$ set value$ = 'AL32UTF8' where name = 'NLS_CHARACTERSET';
 
1 row updated.SQL> update props$ set value$ = 'AL16UTF16' where name = 'NLS_NCHAR_CHARACTERSET';1 row updated.SQL> commit;Commit complete.
 
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
/home/oracle>sqlplus / as sysdba;
 
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 15 17:15:47 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
 
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
 
Total System Global Area  272629760 bytes
Fixed Size                  1218920 bytes
Variable Size              92276376 bytes
Database Buffers          176160768 bytes
Redo Buffers                2973696 bytes
Database mounted.
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 AL32UTF8;
 
Database altered.
 
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
/home/oracle>sqlplus / as sysdba;
 
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 15 17:21:15 2009
 
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
 
Connected to an idle instance.
 
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
 
Total System Global Area  272629760 bytes
Fixed Size                  1218920 bytes
Variable Size              92276376 bytes
Database Buffers          176160768 bytes
Redo Buffers                2973696 bytes
Database mounted.
Database opened.
 
SQL>select * from v$nls_parameters;
1 NLS_LANGUAGE SIMPLIFIED CHINESE
2 NLS_TERRITORY CHINA
3 NLS_CURRENCY ?
4 NLS_ISO_CURRENCY CHINA
5 NLS_NUMERIC_CHARACTERS .,
6 NLS_CALENDAR GREGORIAN
7 NLS_DATE_FORMAT DD-MON-RR
8 NLS_DATE_LANGUAGE SIMPLIFIED CHINESE
9 NLS_CHARACTERSET WE8ISO8859P1
10 NLS_SORT BINARY
11 NLS_TIME_FORMAT HH.MI.SSXFF AM
12 NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
13 NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
14 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
15 NLS_DUAL_CURRENCY ?
16 NLS_NCHAR_CHARACTERSET AL16UTF16
17 NLS_COMP BINARY
18 NLS_LENGTH_SEMANTICS BYTE
19 NLS_NCHAR_CONV_EXCP FALSE
CentOS Data Guard成功更改!

【編輯推薦】

  1. CentOS plproxy查詢安裝pgsql編譯源碼
  2. CentOS VNC試驗(yàn)用的工控機(jī)不支持鼠標(biāo)
  3. CentOS gcc安裝問(wèn)題的解決方法
  4. CentOS系統(tǒng)是Linux常見版本之一
  5. CentOS PPPOE安裝配置客戶端軟件和前提條件
責(zé)任編輯:佚名 來(lái)源: CSDN
相關(guān)推薦

2010-04-21 09:49:10

Oracle數(shù)據(jù)庫(kù)字符

2010-04-13 12:23:34

Oracle數(shù)據(jù)庫(kù)

2019-05-10 08:27:12

MySQL數(shù)據(jù)庫(kù)字符集

2010-04-13 13:24:04

Oracle數(shù)據(jù)庫(kù)

2010-04-23 10:18:42

Oracle數(shù)據(jù)庫(kù)字符

2010-05-10 11:50:33

Oracle數(shù)據(jù)庫(kù)字符

2009-11-20 17:06:49

Oracle數(shù)據(jù)庫(kù)字符

2011-05-18 10:36:21

數(shù)據(jù)庫(kù)數(shù)據(jù)導(dǎo)入

2019-09-11 15:13:57

Oracle數(shù)據(jù)庫(kù)存儲(chǔ)

2019-09-10 07:58:01

字符集MySQL數(shù)據(jù)庫(kù)

2010-07-27 09:38:11

DB2數(shù)據(jù)庫(kù)設(shè)計(jì)

2011-05-12 09:43:28

MySQL數(shù)據(jù)庫(kù)服務(wù)器字符集設(shè)置

2009-09-18 15:19:19

LINQ to SQL

2011-08-15 21:17:38

Oracle數(shù)據(jù)庫(kù)字符集

2021-10-26 08:00:00

數(shù)據(jù)庫(kù)架構(gòu)技術(shù)

2010-05-14 16:49:43

MySQL 數(shù)據(jù)庫(kù)

2011-03-16 16:40:00

DB2數(shù)據(jù)庫(kù)字符集設(shè)置

2023-08-27 22:33:04

數(shù)據(jù)庫(kù)機(jī)制Oceanbase

2010-04-30 10:16:22

Oracle字符集

2018-11-12 15:15:32

MySQL數(shù)據(jù)庫(kù)命令
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)

主站蜘蛛池模板: 日韩h | 成人国产精品一级毛片视频毛片 | 丁香久久| 久久久久久久久久久丰满 | 99re6在线 | 欧美一级片在线观看 | av国产精品 | 成人福利影院 | 日韩午夜| 久久精品色欧美aⅴ一区二区 | 在线国产一区 | 亚洲一区二区三区四区五区午夜 | 国产精品成人一区二区三区夜夜夜 | 欧美在线激情 | 91精品国产综合久久久久久丝袜 | 亚洲精品国产成人 | 亚洲综合大片69999 | 狠狠撸在线视频 | 成人欧美日韩一区二区三区 | 黄色在线免费观看视频 | 国产精品成人69xxx免费视频 | 国产精品不卡一区 | 亚洲一区二区三区高清 | 一区二区三区四区免费观看 | 翔田千里一区二区 | 奇色影视| 日韩www视频 | 在线三级网址 | 青青草在线播放 | 久久久区 | 求个av网址| 九九99九九精彩46 | 久久久精品在线 | 97色在线视频 | 91精品国产综合久久小仙女图片 | 97超碰人人 | 亚洲精品乱码久久久久久按摩 | 中国一级特黄真人毛片免费观看 | 色综合桃花网 | 综合久久av | 久热精品视频 |