zoukankan      html  css  js  c++  java
  • OGG日常运维监控的自动化脚本模板

    #!/usr/bin/ksh  
    export ORACLE_BASE=/oracle/  
    export ORACLE_SID=epmln1  
    export ORACLE_HOSTNAME=pmlnpdb1  
    export ORA_NLS33=/oracle/db/ocommon/nls/admin/data  
    export ORA_CRS_HOME=/oracle/crs  
    export ORACLE_HOME=/oracle/db  
      
    export gglog=/GoldenGate/dirrpt/`date "+gg_monitor_%Y-%m-%d_%H:%M:%S"`   
      
      
    echo "############ gg process status #############">>$gglog  
    ps -ef|grep ext|grep -v grep>>$gglog  
    ps -ef|grep mgr|grep -v grep>>$gglog  
    echo "####################################">>$gglog  
    echo "############ gg trail file system usage #############">>$gglog  
    bdf /GoldenGate >>$gglog  
      
    echo "####################################">>$gglog  
    cd /GoldenGate  
    echo "############ info all ############">>$gglog  
    echo "info all"|./ggsci >>$gglog  
      
    echo "############ lag * ############">>$gglog     
    echo "lag *"|./ggsci >>$gglog     
      
    echo "####################################">>$gglog  
    echo "############ info er * ############">>$gglog  
    echo "info er *"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ info er *,detail ############">>$gglog  
    echo "info er *,detail"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ info er *,showch ############">>$gglog  
    echo "info er *,showch"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ view params  mgr ############">>$gglog  
    echo "view params  mgr"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ view params  EXTYA ############">>$gglog  
    echo "view params  EXTYA"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ view params  EXTYB ############">>$gglog  
    echo "view params  EXTYB"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ view params  DPEYA ############">>$gglog  
    echo "view params  DPEYA"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ view params  DPEYB ############">>$gglog  
    echo "view params  DPEYB"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ stats * ############">>$gglog  
    echo "stats *"|./ggsci >>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ tail -1000f /GoldenGate/ggserr.log ############">>$gglog  
    tail -1000 /GoldenGate/ggserr.log>>$gglog  
      
    echo "####################################">>$gglog  
    echo "############ info er * ,showtrans ############">>$gglog  
    echo "send er * ,showtrans"|./ggsci >>$gglog 
  • 相关阅读:
    Error Code: 1414. OUT or INOUT argument 2 for routine company.new_procedure is not a variable or NEW
    Linux四个常用的指挥机关处理具体的解释
    JTextpane 加入的行号
    Oracle主键(Primary Key)使用详细的说明
    POJ 3904(容斥原理)
    [Angular] AuthService and AngularFire integration
    [React] Close the menu component when click outside the menu
    [D3] SVG Graphics Containers and Text Elements in D3 v4
    [D3] Start Visualizing Data Driven Documents with D3 v4
    [Angular] Setup automated deployment with Angular, Travis and Firebase
  • 原文地址:https://www.cnblogs.com/polestar/p/6180318.html
Copyright © 2011-2022 走看看