16. Verifying the data transfer on the target system

目标端验证数据传输:

该实验是一个最简单的验证数据传输的例子

1° 源库更新:

update SCOTT.EMP set sal=sal+1000;
commit;

2° 检查一小时内抽取进程统计信息:

stats EGGTEST1 hourly
-- Sending STATS request to EXTRACT EGGTEST1 ...
-- Start of Statistics at 2018-07-14 11:00:47.
-- Output to /ggs/dirdat/EGGTEST1/st:
-- Extracting from SCOTT.EMP to SCOTT.EMP:
-- *** Hourly statistics since 2018-07-14 11:00:11 ***
--         Total inserts                                      0.00
--         Total updates                                     14.00
--         Total deletes                                      0.00
--         Total discards                                     0.00
--         Total operations                                  14.00
-- End of Statistics.

3° 检查一小时内发送进程统计信息:

stats pggtest1 hourly
-- Sending STATS request to EXTRACT PGGTEST1 ...
-- Start of Statistics at 2018-07-14 11:02:56.
-- Output to /ggs/dirdat/PGGTEST1/rt:
-- Extracting from SCOTT.EMP to SCOTT.EMP:
-- *** Hourly statistics since 2018-07-14 11:00:12 ***
--         Total inserts                                      0.00
--         Total updates                                     14.00
--         Total deletes                                      0.00
--         Total discards                                     0.00
--         Total operations                                  14.00
-- End of Statistics.

4° 目标端检查一小时内应用进程统计信息:

stats rggtest1 hourly
-- Sending STATS request to REPLICAT RGGTEST1 ...
-- Start of Statistics at 2018-07-14 11:03:38.
-- Replicating from SCOTT.EMP to SCOTT.EMP:
-- *** Hourly statistics since 2018-07-14 11:00:16 ***
--         Total inserts                                      0.00
--         Total updates                                      9.00
--         Total deletes                                      0.00
--         Total discards                                     0.00
--         Total operations                                   9.00
-- End of Statistics.

5° 目标库检查表信息更新状况:

select * from emp;

6° 命令简介:

stats命令仅列出每个进程发现的每个表的变化信息:
STATS {EXTRACT | REPLICAT | ER} {名|通配符} [TABLE {名|通配符}] [TOTAL | DAILY | HOURLY | LATEST]
STATS EXTRACT EGGTEST* TABLE scott.* LATEST

stats命令另一种常用法:
STATS {EXTRACT | REPLICAT | ER} {名|通配符}, TOTALSONLY <table>
STATS REPLICAT RGGTEST1, TOTALSONLY SCOTT.*

stats命令检查OGG某个进程的速度:
STATS REPLICAT RGGTEST1 REPORTRATE HR
查看hourly、daily和进程启动后total进程信息

[TOC]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值