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

你可能感兴趣的:(ogg从库进程监控)