Oracle常用指令碼——Agent問題處理指令碼

來源:互聯網
上載者:User

Agent經常在upload的時候, 會遇到各種問題. 常見的方法, 清理一下日誌, 或者secure.
整理了一個指令碼. 這個指令碼適用單機與RAC的環境.
注意配置好環境變數AGENT_HOME.

#!/bin/bash$AGENT_HOME/bin/emctl stop agentsleep 2rm -fr $AGENT_HOME/$HOSTNAME/sysman/log/*rm -fr $AGENT_HOME/$HOSTNAME/sysman/emd/collection/*rm -fr $AGENT_HOME/$HOSTNAME/sysman/emd/state/*rm -fr $AGENT_HOME/$HOSTNAME/sysman/emd/upload/*rm -f $AGENT_HOME/$HOSTNAME/sysman/emd/lastupld.xmlrm -f $AGENT_HOME/$HOSTNAME/sysman/emd/agntstmp.txtrm -f $AGENT_HOME/$HOSTNAME/sysman/emd/sqlnet.logrm -f $AGENT_HOME/$HOSTNAME/sysman/emd/protocol.ini $AGENT_HOME/bin/emctl resetTZ agentsleep 2$AGENT_HOME/bin/emctl clearstate agentsleep 2$AGENT_HOME/bin/emctl secure agentsleep 2$AGENT_HOME/bin/emctl start agentsleep 4$AGENT_HOME/bin/emctl status agentsleep 2$AGENT_HOME/bin/emctl upload agent


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.