ogg从库进程监控

epidb01-> more /home/oracle/scripts/ogg_monitor.sh
#!/bin/bash
. /etc/profile
. ~/.bash_profile

(echo info all;echo exit)|/u02/goldengate/ggsci|sed -n '/MANAGER/,/REPLICAT/p'|awk '{print $2}'

[oracle@localhost ogg]$ (echo info all;echo exit)|/u01/ogg/ggsci|sed -n '/MANAGER/,/REPLICAT/p'|grep "REPEP"|awk '{print $2}'
RUNNING

猜你喜欢

转载自www.cnblogs.com/hxlasky/p/11643350.html
ogg
今日推荐