schema change + ogg 变更手册
Check OGG until no data queuing in replication process:
testRO:
a)login test5 –l oggmgr
b)ogg
c)#ggsci> lag *
check lag=0
{note: when check lag result = 0, proceed next step] [GGSCI的lag命令可以查询复制延迟, 如: GGSCI> lag <replicat>]
(At EOF, no more records to process.)
Stop OGG replication process: [目标段停下replication]
testRO:
a)login test5 –l oggmgr
b)ogg
c)ggsci>stop rpttestpr
Deactivate the current configuration file on primary server
a)login test4 –l oggmgr [原端删除trandata,并且使用初始化配置重启extractor]
Choose testPR
ggsci> dblogin userid gguser, password gguser_123q
a)ggsci>delete trandata testdata.*
b)ggsci>stop er *!
cd /testprdb/ogg/dirprm/
cp ertestpr.prm ertestpr.201701
cp ertestpr_sc.prm ertestpr.prm
c)Activate the new configuration file “newfilename1
ggsci> start er *
Schema change on testpr [表结构变更,原库和目标库都做]
a) login test4 -l oracle
Choose testpr
$cd /testprdb/change/schema/test/2016_10_09_test_4_4_3
$appl_schema_change.sh
b) check log for any errors (vi */*/*/rollout/log/01*.log)
Schema change on testro
a) login test5 -l oracle
Choose testRO
$cd /testrodb/change/schema/test/2016_10_09_test_4_4_3
$appl_schema_change.sh
b) check log for any errors (vi */*/*/rollout/log/01*.log)
Schema change on testhis
a) login test4 -l oracle
Choose testhis
$cd /testhisdb/change/schema/hdb/2016_10_10_test_4_3_18
$appl_schema_change.sh
b) check log for any errors (vi */*/*/rollout/log/01*.log)
Disable FK and check constraints in read-only DB:nGenROA
login test5 -l OGGMGR [目标段 禁用主建检查和外建检查]
Choose testRO
cd /home/oracle/ogg/RO/scripts
SQL>@gen_dcons_test.sql
SQL>@dcons.sql
SQL>exit
Activate the current configuration file on primary server (testPR)
a)login test4 –l oggmgr [重新启动原端的extractor,并重新加入trandata ]
Choose testPR
ggsci> dblogin userid gguser, password gguser_123q
a)ggsci>add trandata testdata.*
b)ggsci> stop er *!
cd /testprdb/ogg/dirprm/
cp ertestpr.201701 ertestpr.prm
c)Activate the new configuration file “newfilename1
ggsci> start er *
Check OGG until no data queuing in replication process:
testRO: [重新启动目标段的extractor,观察lag ]
a)login test5 –l oggmgr
b)ogg
c)ggsci>start rpttestpr
c)#ggsci>lag *
check lag=0
d)stats rpttestpr
ggsci>STATS RPTMCSPR latest,totalsonly *.*
{note: when check lag result = 0, proceed next step]
schema change + ogg 变更手册的更多相关文章
- AppBoxFuture(四). 随需而变-Online Schema Change
需求变更是信息化过程中的家常便饭,而在变更过程中如何尽可能小的影响在线业务是比较头疼的事情.举个车联网监控的例子:原终端设备上传车辆的经纬度数据,新的终端设备支持同时上传速度数据,而旧的车辆状态表 ...
- Online Schema Change for MySQL
It is great to be able to build small utilities on top of an excellent RDBMS. Thank you MySQL. This ...
- Oracle GoldenGate OGG管理员手册(较早资料)
第一章 系统实现简述 前言 编写本手册的目的是为系统管理员以及相关操作人员提供 Oracle Goldengat 软 件的日常维护和使用的技术参考: 3 ORACLE 第二章 OGG 日常维护操作 ...
- Oracle GoldenGate OGG管理员手册
第一章 系统实现简述 前言 编写本手册的目的是为系统管理员以及相关操作人员提供 Oracle Goldengat 软 件的日常维护和使用的技术参考: 3 ORACLE 第二章 OGG 日常维护操作 ...
- Online, Asynchronous Schema Change in F1
F1: A Distributed SQL Database That Scales http://disksing.com/understanding-f1-schema-change ma ...
- 【MySQL 5.7 Reference Manual】15.4.2 Change Buffer(变更缓冲)
15.4.2 Change Buffer(变更缓冲) The change buffer is a special data structure that caches changes to se ...
- MySQL 5.7 Reference Manual】15.4.2 Change Buffer(变更缓冲)
15.4.2 Change Buffer(变更缓冲) The change buffer is a special data structure that caches changes to se ...
- MongoDB 变更流(Change Stream)介绍
1. 什么是Change Stream Change Stream 是MongoDB用于实现变更追踪的解决方案,类似于关系数据库的触发器,但原理不完全相同: | | Change Stream | 触 ...
- 【OGG】OGG基础知识整理
[OGG]OGG基础知识整理 一.GoldenGate介绍 GoldenGate软件是一种基于日志的结构化数据复制软件.GoldenGate 能够实现大量交易数据的实时捕捉.变换和投递,实现源数据库与 ...
随机推荐
- How to deploy openbr on linux server very shorly---- linuxmint13/ubuntu12.04 AMD64/debian7
SO FAST ON A SERVER!!!! There are serveral packages that you have to install: 1. openbr 0.6.0 packag ...
- Drupal与大型网站架构(译)- Large-Scale Web Site Infrastructure and Drupal
Drupal与大型网站架构(译)- Large-Scale Web Site Infrastructure and Drupal Linuxjournal 网站经典文章翻译,原文地址: Large-S ...
- 成都传智播客JDBC视频及讲师介绍
成都传智播客java讲师,也许,你跟他很熟,你或者听过他的课,或者跟他争论过什么,又或者你们在一起共事,再者你们只是偶尔擦肩而过.在小编的印象中郭老师完全没有架子,和他相处会让你觉得不是面对一个老师, ...
- 文件对话框WPF(5)----文件浏览对话框
废话就不多说了,开始... WPF中文件浏览对话框的实现可以利用Windows API Code Pack,它是一个用于访问Windows Vista/7 特性的托管代码函数库,但并没有包含在.NET ...
- 当我们在谈论kmeans(3)
本系列意在长期连载分享,内容上可能也会有所删改: 因此如果转载,请务必保留源地址,非常感谢! 博客园:http://www.cnblogs.com/data-miner/(暂时公式显示有问题) ...
- HTML5之canvas细节详谈
一.canvas基础 1.canvas是HTML5 的新标签,其默认宽高为300*150. canvas 元素本身是没有绘图能力的.所有的绘制工作必须在 JavaScript 内部完成. ...
- c#dalegate invoke及AsyncCallback使用
public delegate void AsyncDelegate(); private AsyncDelegate asyncDl; asyncDl = new AsyncDeleg ...
- Tip of the Day
Did you know ... ? You can view all statements within the method where certain exceptions can be cau ...
- expressJS - 准备活动
安装 nodeJS 1. package.json 2. CommonJS, AMD, ES6 3. Babel
- java操作mongodb——连接数据库
import com.mongodb.MongoClient; MongoClient mongoClient = new MongoClient(); 连接MongoDB实例,默认为localhos ...