码迷,mamicode.com
首页 > 其他好文 > 详细

ggsdsc

时间:2016-07-15 20:29:58      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

foreword:
        平时运维goldengate时候检查比较麻烦,ggsci,*dsc文件都要看,所以写了这个脚本方便检查

[oracle@myhost ~]$ python ggsdsc.py -help
Usage: python ggsdsc.py [options]
This script prints some info of ogg.
Options:
  -h, --help            show this help message and exit
  -d FROM_DATE, --from_date=FROM_DATE
                        Simple:yyyy-mm-dd hh:mi:ss or yyyy-mm-dd(default 00:00:00)
 

[oracle@myhost ~]$ python ggsdsc.py

=================Simple_time:2016-07-06 00:00:00~2016-07-06 13:09:38=================

Program Status Group Lag at Chkpt Time Since Chkpt Discard count

EXTRACT RUNNING EXT01 00:00:00 00:00:05 0

EXTRACT RUNNING EDP01 00:00:00 00:00:05 0

EXTRACT RUNNING EDP02 00:00:00 00:00:05 0

EXTRACT RUNNING EDP03 00:00:00 00:00:05 0

EXTRACT RUNNING EDP04 00:00:00 00:00:04 0

EXTRACT RUNNING EDP05 00:00:00 00:00:05 0

REPLICAT RUNNING REP01 00:00:00 00:00:05 14

REPLICAT RUNNING REP02 00:00:00 00:00:00 0

REPLICAT RUNNING REP03 00:00:00 00:00:00 0

REPLICAT RUNNING REP04 00:00:00 00:00:05 323

REPLICAT RUNNING REP05 00:00:00 00:00:06 0

REPLICAT RUNNING REP06 00:00:03 00:00:00 318

REPLICAT RUNNING REP07 00:00:00 00:00:00 0

 

脚本位置

https://github.com/jetora/pyogg

 

 

ggsdsc

标签:

原文地址:http://www.cnblogs.com/jetora/p/5674513.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!