Zero Downtime Upgrade of Oracle 10g to Oracle 11g Using GoldenGate — 1
Source Database
DB Name: zwc
Schemas: HR,OE,PM
Version: 10.2.0.4
RAC: No
OS Version: Red Hat Enterprise Linux Server release 5.9 x86_64
OGG Version: Oracle GoldenGate V11.2.1.0.6 for Oracle 10g on Linux x86-64
Target Database
DB Name: zwc
Schemas: HR,OE,PM
Version: 11.2.0.2
RAC: Yes
Nodes: 2
OS Version: Red Hat Enterprise Linux Server release 5.9 x86_64
OGG Version: Oracle GoldenGate V11.2.1.0.22 for Oracle 11g on Linux x86-64
On 10g Source Database
Check Size of Data
SQL> select owner,round(sum(bytes/1024/1024)) MB from dba_segments where owner not in ('SYS','SYSTEM') group by rollup (owner) order by owner;
OWNER MB
—————————— ———-
CTXSYS 5
DBSNMP 2
DMSYS 0
EXFSYS 4
HR 2
IX 2
MDSYS 41
OE 9
OLAPSYS 16
ORDSYS 1
OUTLN 1
PM 3
SCOTT 0
SH 56
SYSMAN 49
TSMSYS 0
WMSYS 7
XDB 49
244
Check Special Data-types
SQL> select distinct owner,data_type from dba_tab_cols where owner in ('HR','OE','PM') order by 1,2;
OWNER DATA_TYPE
—————————— ————————————
HR CHAR
HR DATE
HR NUMBER
HR VARCHAR2
OE ACTIONS_T
OE ACTION_V
OE CATEGORY_TYP
OE CHAR
OE CLOB
OE CORPORATE_CUSTOMER_TYP
OE CUSTOMER_TYP
OE CUST_ADDRESS_TYP
OE DATE
OE INTERVAL YEAR(2) TO MONTH
OE INVENTORY_LIST_TYP
OE INVENTORY_TYP
OE LINEITEMS_T
OE LINEITEM_V
OE NUMBER
OE NVARCHAR2
OE ORDER_ITEM_LIST_TYP
OE ORDER_LIST_TYP
OE ORDER_TYP
OE PHONE_LIST_TYP
OE PRODUCT_INFORMATION_TYP
OE PRODUCT_REF_LIST_TYP
OE PURCHASEORDER_T
OE RAW
OE REJECTION_T
OE SDO_ELEM_INFO_ARRAY
OE SDO_GEOMETRY
OE SDO_ORDINATE_ARRAY
OE SHIPPING_INSTRUCTIONS_T
OE SUBCATEGORY_REF_LIST_TYP
OE TIMESTAMP(6) WITH LOCAL TIME ZONE
OE VARCHAR2
OE WAREHOUSE_TYP
OE XDB$RAW_LIST_T
OE XMLTYPE
OE XMLTYPEEXTRA
OE XMLTYPEPI
PM ADHEADER_TYP
PM BFILE
PM BLOB
PM CLOB
PM DATE
PM NCLOB
PM NUMBER
PM ORDAUDIO
PM ORDDOC
PM ORDIMAGE
PM ORDIMAGESIGNATURE
PM ORDVIDEO
PM RAW
PM TEXTDOC_TAB
PM VARCHAR2
Check Cascade Delete Constraints
SQL> select owner,table_name,constraint_name,delete_rule,deferred,deferrable,status from dba_constraints where delete_rule<>'NO ACTION' and owner in ('HR','OE','PM');
OWNER TABLE_NAME CONSTRAINT_NAME DELETE_RU DEFERRED DEFERRABLE STATUS
—————————— —————————— —————————— ——— ——— ————– ——–
OE ORDER_ITEMS ORDER_ITEMS_ORDER_ID_FK CASCADE IMMEDIATE NOT DEFERRABLE ENABLED
OE ORDERS ORDERS_CUSTOMER_ID_FK SET NULL IMMEDIATE NOT DEFERRABLE ENABLED
OE CUSTOMERS CUSTOMERS_ACCOUNT_MANAGER_FK SET NULL IMMEDIATE NOT DEFERRABLE ENABLED
OE WAREHOUSES WAREHOUSES_LOCATION_FK SET NULL IMMEDIATE NOT DEFERRABLE ENABLED
OE ORDERS ORDERS_SALES_REP_FK SET NULL IMMEDIATE NOT DEFERRABLE ENABLED
Check Triggers
SQL> select table_owner,table_name,owner,trigger_name,status,trigger_type from dba_triggers where owner in ('HR','OE','PM');
TABLE_OWNER TABLE_NAME OWNER TRIGGER_NAME STATUS TRIGGER_TYPE
—————————— —————————— —————————— —————————— ——– —————-
HR EMPLOYEES HR SECURE_EMPLOYEES DISABLED BEFORE STATEMENT
HR EMPLOYEES HR UPDATE_JOB_HISTORY ENABLED AFTER EACH ROW
OE ORDER_ITEMS OE INSERT_ORD_LINE ENABLED BEFORE EACH ROW
OE PURCHASEORDER OE PURCHASEORDER$xd ENABLED BEFORE EACH ROW
OE OC_ORDERS OE ORDERS_TRG ENABLED INSTEAD OF
OE OC_ORDERS OE ORDERS_ITEMS_TRG ENABLED INSTEAD OF
Check Sequences
SQL> select sequence_owner,sequence_name,cycle_flag,increment_by,last_number from dba_sequences where sequence_owner in ('HR','OE','PM');
SEQUENCE_OWNER SEQUENCE_NAME C INCREMENT_BY LAST_NUMBER
—————————— —————————— – ———— ———–
HR LOCATIONS_SEQ N 100 3300
HR DEPARTMENTS_SEQ N 10 280
HR EMPLOYEES_SEQ N 1 207
OE ORDERS_SEQ N 1 1000
Check Services
SQL> select name,failover_method,enabled from dba_services;
NAME FAILOVER_METHOD ENA
—————————————————————- —————————————————————- —
SYS$BACKGROUND NO
SYS$USERS NO
seeddataXDB NO
seeddata NO
zwcXDB NO
zwc NO
Check Jobs
SQL> select job,schema_user,broken,what,interval from dba_jobs order by schema_user,job;
no rows selected
SQL> select owner,job_name,enabled,state from dba_scheduler_jobs order by owner,enabled,state;
OWNER JOB_NAME ENABL STATE
—————————— —————————— —– —————
EXFSYS RLM$SCHDNEGACTION TRUE SCHEDULED
EXFSYS RLM$EVTCLEANUP TRUE SCHEDULED
ORACLE_OCM MGMT_CONFIG_JOB TRUE SCHEDULED
ORACLE_OCM MGMT_STATS_CONFIG_JOB TRUE SCHEDULED
SYS FGR$AUTOPURGE_JOB FALSE DISABLED
SYS GATHER_STATS_JOB TRUE SCHEDULED
SYS AUTO_SPACE_ADVISOR_JOB TRUE SCHEDULED
SYS PURGE_LOG TRUE SCHEDULED
Check Character Set
SQL> select parameter,value from nls_database_parameters where parameter in ('NLS_CHARACTERSET','NLS_NCHAR_CHARACTERSET');
PARAMETER VALUE
—————————— ——————————————————————————–
NLS_CHARACTERSET ZHS16GBK
NLS_NCHAR_CHARACTERSET AL16UTF16
Install Oracle GoldenGate
Configuration Environment for GoldenGate
export GG_HOME=/ggs
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=zwc
export PATH=$ORACLE_HOME/bin:$GG_HOME:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$$ORACLE_HOME/lib32:$GG_HOME:$LD_LIBRARY_PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
Create GoldenGate Directories
[oracle@zwc ggs]$ ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.6 16211226 OGGCORE_11.2.1.0.6_PLATFORMS_130418.1829_FBO
Linux, x64, 64bit (optimized), Oracle 10g on Apr 18 2013 22:43:23
Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
GGSCI (zwc) 1> create subdirs
Creating subdirectories under current directory /ggs
Parameter files /ggs/dirprm: already exists
Report files /ggs/dirrpt: created
Checkpoint files /ggs/dirchk: created
Process status files /ggs/dirpcs: created
SQL script files /ggs/dirsql: created
Database definitions files /ggs/dirdef: created
Extract data files /ggs/dirdat: created
Temporary files /ggs/dirtmp: created
Stdout files /ggs/dirout: created
Create “diroby”,"dirdsc" directories for OGG obey scripts and discard filesrespectively
[oracle@zwc ggs]$ pwd
/ggs
[oracle@zwc ggs]$ mkdir diroby dirdsc
Zero Downtime Upgrade of Oracle 10g to Oracle 11g Using GoldenGate — 1的更多相关文章
- Oracle 10g AND Oracle 11g手工建库案例--Oracle 11g
Oracle 10g AND Oracle 11g手工建库案例--Oracle 11g 系统环境: 操作系统: RedHat EL6 Oracle: Oracle 10g and Oracle 11 ...
- Oracle 10g AND Oracle 11g手工建库案例--Oracle 10g
Oracle 10g AND Oracle 11g手工建库案例--Oracle 10g 系统环境: 操作系统: RedHat EL6 Oracle: Oracle 10g and Oracle 11 ...
- Zero Downtime Upgrade of Oracle 10g to Oracle 11g Using GoldenGate — 2
Prepare 10g Database for OGG Create GGS and GGS_MON Database Users SQL> create tablespace ggs_tbs ...
- Zero Downtime Upgrade of Oracle 10g to Oracle 11g Using GoldenGate — 3
DDL Setup Steps SQL> grant execute on utl_file to ggs; Grant succeeded. Create GLOBALS file [orac ...
- Zero Downtime Upgrade of Oracle 10g to Oracle 11g Using GoldenGate — 4
Target Side Setup Install OGG on Target Side Creates required directories for OGG [oracle@vzwc1 ggs] ...
- oracle 10g升级到11g
Linux 上Oracle RAC 10g 升级到 Oracle RAC 11g 了解如何在 Oracle Enterprise Linux 5 上逐步将 Oracle RAC 10g 第 2 版升级 ...
- Oracle 10g ORA-01034: ORACLE not available 错误
今天在开发系统的时候,刚开始还好好的,突然就遇到了一个错误 ORA-01034: ORACLE not available 感到莫名其妙.然后排查问题 监听器ok,各项服务ok. 最后解决办法如下: ...
- oracle数据库的迁移(从一台服务器到另一个台服务器,从oracle 10g到oracle 11g)
这个过程呢,还是蛮艰难的.... 一.最初我使用的是Navicat中的数据传输来迁移的,虽说整个数据库的迁移没有成功,但传输指定的对象时还是传输成功了.所以还是记录一下吧. 1.前提连接好数据库.在指 ...
- RHEL6 64位系统安装ORACLE 10g 64bit 数据库
记得去年4月份的时候,为公司部署测试环境和UAT环境时,在红帽RHEL6 64位系统安装ORACLE 10g 64位数据库时遇到了许多小问题,当时匆匆忙忙也没记录一下这些问题,前几天在虚拟机安装ORA ...
随机推荐
- Android Material风格的应用(二)--RecyclerView
添加RecyclerView Android Material风格的应用(一)--AppBar TabLayoutAndroid Material风格的应用(二)--RecyclerViewAndro ...
- js进阶 14-6 $.ajax()方法如何使用
js进阶 14-6 $.ajax()方法如何使用 一.总结 一句话总结:$.ajax([settings])settings可选.用于配置Ajax请求的键值对集合. 1.$.ajax()的特点是什么( ...
- Project Euler 516 5-smooth totients (数论)
题目链接: https://projecteuler.net/problem=516 题目: \(5\)-smooth numbers are numbers whose largest prime ...
- 代码高亮显示——google-code-prettify
先放着,搭建完HEXO博客再来写这篇. https://code.google.com/archive/p/google-code-prettify/
- GPUImage ==> 一个基于GPU图像和视频处理的开源iOS框架
Logo 项目介绍: GPUImage是Brad Larson在github托管的开源项目. GPUImage是一个基于GPU图像和视频处理的开源iOS框架,提供各种各样的图像处理滤镜,并且支持照相机 ...
- springmvc hibernate整合
今天复习一下SpringMVC+Hibernate的搭建,本来想着将Spring-Security权限控制框架也映入其中的,但是发现内容太多 了,Spring-Security的就留在下一篇吧,这篇主 ...
- OC学习篇之---Foundation框架中的NSObject对象
从这篇文章开始我们开始介绍Foundation框架. OC中的Foundation框架是系统提供了,他就相当于是系统的一套api,和Java中的一些系统jar很相似,又早起的一批人开发的,内部有很多现 ...
- 23种设计模式——Prototype模式
Prototype模式是提供自我复制的功能.包括浅拷贝和深拷贝. 一.Prototype模式的用途 场景1:游戏场景中有很多类似的敌人,它们的技能都一样,但是随着敌人出现的位置和不同,它们的能力也不太 ...
- 解密Arm中国:全球最具影响力的芯片公司中国布局浮出水面
经济观察报 记者 陈伊凡 沈怡然 李华清 对于Arm与中国合资公司事宜,5月4日下午,Arm授权的代表邮件回复<经济观察报>称:“合资公司目前刚开始运营”,“我们的重点是让这个新的合资公司 ...
- 在 Java 中如何进行 BASE64 编码和解码
BASE64 编码是一种常用的字符编码,在很多地方都会用到.JDK 中提供了非常方便的 BASE64Encoder 和 BASE64Decoder,用它们可以非常方便的完成基于 BASE64 的编码和 ...