OGG stats EXTRACT 概念要清晰

GGSCI (OGG1) 48> help stats extract
STATS EXTRACT 
Use STATS EXTRACT to display statistics for one or more Extract groups. 
The output includes DML and DDL operations that are included in the 
Oracle GoldenGate configuration. 
 使用 STATS EXTRACT 查询一个或者一组 Extract 的统计信息
包括了在参数文件中配置的对象的DDL DML 操作
To get the most accurate number of operations per second that are being 
processed, do the following. 
1. Issue the STATS EXTRACT command with the RESET option. 
 使用stats  EXTRACT_NAME RESET 将最近的一次统计重置
如下: GGSCI (OGG1) 54> stats ggex
*** Total statistics since 2014-06-20 01:16:30 ***
Total inserts                             6.00
Total updates                             0.00
Total deletes                             0.00
Total truncates                           1.00
Total discards                             0.00
Total operations                           7.00

*** Daily statistics since 2014-06-20 01:16:30 ***
Total inserts                             6.00
Total updates                             0.00
Total deletes                             0.00
Total truncates                           1.00
Total discards                             0.00
Total operations                           7.00

*** Hourly statistics since 2014-06-20 19:00:00 ***
Total inserts                             2.00
Total updates                             0.00
Total deletes                             0.00
Total discards                             0.00
Total operations                           2.00

*** Latest statistics since 2014-06-20 19:25:29 ***
Total inserts                             1.00
Total updates                             0.00
Total deletes                             0.00
Total discards                             0.00
Total operations                           1.00
GGSCI (OGG1) 55> stats ggex rese
Sending STATS request to EXTRACT GGEX ...
Successfully reset statistics.
GGSCI (OGG1) 56> stats ggex
Sending STATS request to EXTRACT GGEX ...
Start of Statistics at 2014-06-20 19:31:31.
Output to /u01/ogg/dirdat/kt:
Extracting from GG.SEND to GG.SEND:
*** Total statistics since 2014-06-20 01:16:30 ***
Total inserts                             6.00
Total updates                             0.00
Total deletes                             0.00
Total truncates                           1.00
Total discards                             0.00
Total operations                           7.00

*** Daily statistics since 2014-06-20 01:16:30 ***
Total inserts                             6.00
Total updates                             0.00
Total deletes                             0.00
Total truncates                           1.00
Total discards                             0.00
Total operations                           7.00

*** Hourly statistics since 2014-06-20 19:00:00 ***
Total inserts                             2.00
Total updates                             0.00
Total deletes                             0.00
Total discards                             0.00
Total operations                           2.00
*** Latest statistics since 2014-06-20 19:30:55 ***
No database operations have been performed.---------此处已经清空统计
End of Statistics.
在源库插入一条数据
insert into send values (105);
再查询统计信息:
GGSCI (OGG1) 57> stats ggex
Sending STATS request to EXTRACT GGEX ...
Start of Statistics at 2014-06-20 19:37:23.
Output to /u01/ogg/dirdat/kt:
Extracting from GG.SEND to GG.SEND:
*** Total statistics since 2014-06-20 01:16:30 ***
Total inserts                             7.00
Total updates                             0.00
Total deletes                             0.00
Total truncates                           1.00
Total discards                             0.00
Total operations                           8.00
*** Daily statistics since 2014-06-20 01:16:30 ***
Total inserts                             7.00
Total updates                             0.00
Total deletes                             0.00
Total truncates                           1.00
Total discards                             0.00
Total operations                           8.00
*** Hourly statistics since 2014-06-20 19:00:00 ***
Total inserts                             3.00
Total updates                             0.00
Total deletes                             0.00
Total discards                             0.00
Total operations                           3.00
*** Latest statistics since 2014-06-20 19:30:55 ***-——已经捕获到这条插入信息
Total inserts                             1.00
Total updates                             0.00
Total deletes                             0.00
Total discards                             0.00
Total operations                           1.00
End of Statistics.
2. Issue the STATS EXTRACT REPORTRATE command. The LATEST STATISTICS 
   field shows the operations per second.  
  STATS EXTRACT REPORTRATE 命令
NOTE: The actual number of DML operations executed on a DB2 database 
might not match the number of extracted DML operations reported by 
Oracle GoldenGate. DB2 does not log update statements if they do not 
physically change a row, so Oracle GoldenGate cannot detect them or 
include them in statistics. 
Syntax:
STATS EXTRACT  
[, ] 
[, TABLE

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26764973/viewspace-1189830/,如需转载,请注明出处,否则将追究法律责任。

user_pic_default.png
请登录后发表评论 登录
全部评论
<%=items[i].createtime%>

<%=items[i].content%>

<%if(items[i].items.items.length) { %>
<%for(var j=0;j
<%=items[i].items.items[j].createtime%> 回复

<%=items[i].items.items[j].username%>   回复   <%=items[i].items.items[j].tousername%><%=items[i].items.items[j].content%>

<%}%> <%if(items[i].items.total > 5) { %>
还有<%=items[i].items.total-5%>条评论 ) data-count=1 data-flag=true>点击查看
<%}%>
<%}%> <%}%>

转载于:http://blog.itpub.net/26764973/viewspace-1189830/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值