Showing posts with label EM Grid Control. Show all posts
Showing posts with label EM Grid Control. Show all posts

Wednesday, March 18, 2009

Move EM Agent Home to Different Location

Scenario:

The Agent For EM is installed in the Following Location in the Target /Ora10g/em/agent10g and we are going to Move it to the Following Location /OraEM/em

Note : Here ORACLE_HOME refers to Agent_Home.

Old ORACLE_HOME = /Ora10g/em/agent10g
New ORACLE_HOME = /OraEM/em

Steps To Move the Agent Home From Old Home To New Home:

Step 1 : Back up the existing ORACLE_HOME
Step 2 : Down the agent by ./emctl stop agent from $ORACLE_HOME/bin
Step 3 : Go to the path /Ora10g/em/agent10g/oui/bin/
Step 4 : Run the Following Command
./ detachHome.sh (As Show Below)

Note : This will remove the home details from Orainventory.

Step 4 : Set the New ORACLE_HOME and Path which includes jar file.
(Ex) export ORACLE_HOME=/OraEM/em/agent10g
Export PATH=$PATH:$ORACLE_HOME/bin:/Ora10g/em/agent10g/jdk/bin
Step 5 : Now Go to the old Home and run the following:
Cd /Ora10g/em
./agentDownload.linux –b /OraEM/em


(Note) 1. It will create the new directory as agent10g, inside /OraEM/em.
2. Make sure /OraEM/em has the Oracle:oinstall permission.





Step 6 : Now It installs and ask to run the root.sh From the New home.
Step 7 : Run Root.sh as a root, So that it will update oraInventory.
Step 8 : Now check the status of the agent in New Home. It will be running.
















Upgrade EM Agent

Upgrade of EM Agent from 10.2.0.1 to 10.2.0.3

Scenario:
======

Upgrading the EM Agent in the Target Node which we are going to Monitor. As the agent version is 10.2.0.1 and we are going to upgrade to 10.2.0.3

Steps To Upgrade:

ORACLE_HOME : /OraEM/em/agent10g

Step 1 : Stop the Agent by ./emctl stop agent
Step 2 : Now the verion of Agent installed is 10.2.0.1 check by start/stop
Step 3 : Now DownLoad the patch p3731593_10203_LINUX.zip
Step 4 : You can unzip the patch anywhere for ex. /OraEM/em/patch.
Step 5 : Now go inside the patch /OraEM/em/patch/3731593/Disk1
Step 6 : Set the ENV as oracle,and xhost as a root user and oracle
for Display Ex )ORACLE_HOME= /OraEM/em/agent10g PATH = $ORACLE_HOME/bin:$PATH
Step 7 : Now ./runInstaller Step 8 : Now It asks for Home and Path . Give name as Agent10g , It will take the path automatically.


Step 9 : Now it asks for Products to be upgraded. Give Select all.
Step 10 : Now Installation will be completed and the agent will be up.
Step 11 : Now Check the Agent Upgraded by start/stop.
Step 12 : Check up ./emctl upload agent.