zoukankan      html  css  js  c++  java
  • veridata实验举例(6)验证agent启动先后顺序是否对捕获update操作有影响

    veridata实验举例(6)验证agent启动先后顺序是否对捕获update操作有影响

    续接veridata实验系列  上篇:“veridata实验举例(5)改动主键上的列值。update操作会被拆分成两条语句”,地址:点击打开链接

    环境:

    Item

    Source System

    Target System

    Platform

    Red Hat Enterprise

    Linux Server release 5.4

    Red Hat Enterprise

    Linux Server release 5.4

    Hostname

    gc1

    gc2

    Database

    Oracle 10.2.0.1

    Oracle 11.2.0.1

    Character Set

    ZHS16GBK

    ZHS16GBK

    ORACLE_SID

    PROD

    EMREP

    Listener Name/Port

    LISTENER/1521

    LISTENER/1521

    Goldengate User

    ogg

    ogg


    情况一:agent被关闭,gc1、gc2出现数据不同步现象时,启动agent

    1、gc1、gc2关闭agent

    GGSCI(gc1) 6> info all

    Program    Status      Group       Lag          Time Since Chkpt

    MANAGER    RUNNING                                          

    GGSCI(gc1) 7> stop mgr

    Manager process is required by other GGSprocesses.

    Are you sure you want to stop it (y/n)?

    y

    Sending STOP request to MANAGER ...

    Request processed.

    Manager stopped.

    GGSCI(gc1) 8> info all

    Program    Status      Group       Lag           Time Since Chkpt

    MANAGER    STOPPED                

    2、gc1完毕update操作

    SQL> update TCUSTMER set city='HA'where cust_code='JJ';

    3、启动agent。查看veridata报告

    图例:



    --veridata捕捉到了gc1上的update操作

    --同理在gc2上实验,veridata相同捕捉到update操作信息。实验与gc1上相同

     

    情况二:agent正常开启,gc1、gc2出现数据不同步现象时

    1、gc1、gc2开启agent

    2、gc1完毕update操作

    SQL>update TCUSTMER set city='BEIJING'where cust_code='ZC';

    3、查看veridata报告

    图例:


    --veridata捕捉到了gc1上的update操作

    --同理在gc2上实验,veridata相同捕捉到update操作信息,实验与gc1上相同

     

    小结:

    通过以上实验验证,对照于数据库同步,agent启动的先后顺序,不会对veridata捕获update造成影响。


    声明:
             原创作品,出自 “深蓝的blog” 博客。同意转载。转载时请务必注明出处(http://blog.csdn.net/huangyanlong)。

             关于涉及版权事宜。作者有权追究法律责任。


  • 相关阅读:
    jquery仿淘宝规格颜色选择效果
    JQuery实现的模块交换动画效果
    javascript检查移动设备是否支持重力方向感应
    Mysql数据库备份和还原常用的命令
    Mysql备份还原数据库之mysqldump实例及参数详细说明
    php抽象类和接口
    Ubuntu下lamp(PHP+Mysql+Apache)搭建+完全卸载卸载方法
    Ubuntu 麒麟版下安装:Apache+php5+mysql+phpmyadmin.
    Ubuntu下安装Wine&WineQQ+Phpstorm+wps+svn+vim(计划任的使用)+flashplayer+curl扩展
    GitHub Linux下使用方法
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/5079705.html
Copyright © 2011-2022 走看看