How to fix the agent problem..?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: How to fix the agent problem..?

  1. #1
    Join Date
    Jul 2002
    Posts
    205

    How to fix the agent problem..?

    When I start the agent in Oracle 10.2.0.2 in HP UX by emctl start agent it says agent is alreday running. If I stop it by emctl stop agent, it says agent not running.

    How to solve this problem..?

    In the OS level what process to be looked into to know is there is any process running from the agent..?

  2. #2
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,459

    Cool

    Kill the "running" agent:
    Code:
    #lookup the pid:
    $ ps -ef|grep agent
    $ kill -9 {pid}
    Then fix the agent:
    Code:
    ## EM Agent fix
    export AH=/opt/oracle/oms/agent10g
    cd $AH/bin
    ./emctl stop agent
    rm -r $AH/sysman/emd/state/*
    rm -r $AH/sysman/emd/collection/*
    rm -r $AH/sysman/emd/upload/*
    rm $AH/sysman/emd/lastupld.xml
    rm $AH/sysman/emd/agntstmp.txt
    rm $AH/sysman/emd/blackouts.xml
    ./emctl start agent
    ./emctl upload agent
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  3. #3
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    Answering your question: ps -ef | grep emagent

    What happens if you do: emctl status agent ?

    Edit: Got side tracked for a couple of minutes and LKBrwn posted first - his advice is sound.
    Last edited by PAVB; 01-16-2012 at 02:09 PM.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width