veridata实验举例(3)验证veridata查找出insert操作导致的不同
veridata实验举例(3)验证veridata查找出insert操作导致的不同步现象 续接:《veridata实验举例(2)验证表BONUS与表SALGRADE两节点同步情况》,地址:点击打开链接 环境: Item Source System Target System Platform Red Hat Enterprise Linux Server rel
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同步情况
4、查看veridata生成报告
通过View By Compare Pair看出总体的变化图:
针对实验的job进行查看,如下图:
点击“View”可以查看到详细内容:
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验证,已经同步。
********************未完待续**************************
声明:
原创作品,出自 “深蓝的blog” 博客,允许转载,转载时请务必注明出处(http://blog.csdn.net/huangyanlong)。
关于涉及版权事宜,作者有权追究法律责任。
下一篇: PHP怎么将多维数组转换为二维数组?