veridata实验例(3)验证veridata发现insert操作不会导致同步

续接:《veridata实验举例(2)验证表BONUS与表SALGRADE两节点同步情况》,地址:点击打开链接

环境:

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

1、关闭gc2的REPLICAT进程

GGSCI(gc2) 2>
stop RORA_1

Sending STOP request to REPLICAT RORA_1 ...

Request processed.

GGSCI(gc2) 3> info all

Program    Status      Group       Lag           Time Since Chkpt

MANAGER    RUNNING

EXTRACT    RUNNING     EORA_1      00:00:00      00:00:06

EXTRACT    RUNNING     PORA_1      00:00:00      00:00:05

REPLICAT   STOPPED     RORA_1      00:00:00      00:00:06

2、gc1插入一行数据

SQL>insert into tcustmerVALUES('ZX','XING','SHIJIAZ','CN');

1 row created.

SQL>COMMIT;

Commit complete.

3、使用veridata验证gc1、gc2同步情况

veridata实验例(3)验证veridata发现insert操作不会导致同步-LMLPHP

4、查看veridata生成报告

通过View By Compare Pair看出整体的变化图:

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvaHVhbmd5YW5sb25n/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">

针对实验的job进行查看,例如以下图:

veridata实验例(3)验证veridata发现insert操作不会导致同步-LMLPHP

点击“View”能够查看到具体内容:

veridata实验例(3)验证veridata发现insert操作不会导致同步-LMLPHP

5、同步处理

GGSCI(gc2) 6>
start RORA_1

Sending START request to MANAGER ...

REPLICAT RORA_1 starting

GGSCI(gc2) 7>
info all

Program    Status      Group       Lag           Time Since Chkpt

MANAGER    RUNNING

EXTRACT    RUNNING     EORA_1      00:00:00      00:00:05

EXTRACT    RUNNING     PORA_1      00:00:00      00:00:03

REPLICAT   RUNNING     RORA_1      00:00:00      00:00:01

验证gc1、gc2已经同步,例如以下:

gc1:

SQL>select * from TCUSTMER;

CUST NAME                           CITY                 ST

---- -------------------------------------------------- --

HYL  HUANGDBA                      BEIJING              CN

ZX  XING                           SHIJIAZ              CN

WILL BG SOFTWARE CO.               SEATTLE              WA

JANE ROCKY FLYER INC.              DENVER               CO

ZC  ZHANCHI DBA                    BEIJING              CN

gc2:

CUST NAME                           CITY                 ST

---- ------------------------------ ----------------------

HYL  HUANGDBA                      BEIJING              CN

ZC  ZHANCHI DBA                    BEIJING              CN

ZX  XING                           SHIJIAZ              CN

WILL BG SOFTWARE CO.               SEATTLE              WA

JANE ROCKY FLYER INC.              DENVER               CO

再次使用veridata验证。已经同步。

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvaHVhbmd5YW5sb25n/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">

********************未完待续**************************

声明:

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

关于涉及版权问题,在追究法律责任的权利。

04-17 19:56