How to re-point nodes to current Oracle Grid Agent to new Grid OMS (10.2.0.5)

It is a two step process as far as my documentation goes given below :-

(i) STEP1 :-



a) Remove the agent from the old OMS otherwise the same agent will not be able to point to the new OMS as it is registered in the old OMS with below tasks :-

a.1)From OMS, drop all the Targets on the host to be removed, except the Host and Agent.All targets except the Host and Agent should now be gone from the OMS.

a.2) Confirm the targets (except Host and Agent) are removed successfully and completely from the OMS:

Click on "Setup" in upper right.
Click on the "EM 10g Grid Control Management System" tab
You will see this information on the page:

--> Management Services and Repository
--> Overview page
--> General section
--> Deleted Targets: < click on the digit listed here >
a.3) Click on "Deleted Targets" (Note this only appears once a delete is attempted.)
a.4) Confirm that the "Time Delete Completed" column is filled in; once that column is filled in then the delete is complete.
b) Drop the Host target from the old OMS.
Targets >> Hosts, highlight the host in the list and hit "Remove" button.

Monitor for the "Time Delete Completed" column.
Proceed once the column is updated.
c) Drop the Agent target from the old OMS.
Targets >> All Targets >> [pick Agent from list] >> "Remove" button.

Monitor for the "Time Delete Completed" column.
Proceed once the column is updated.


(i) STEP2 : Agent Settings change :-

1) Go to installed agent below directory :-

test01::user01>bash
test01::user01>cd $ORACLE_HOME/ OracleAS_1/ 10.2.0.5/ agent10g/
test01::user01>cd sysman/config/
test01::user01>vi emd.properties

2) Change below properties :-

Replace the new OMS URL in the REPOSITORY_URL & emdWalletSrcUrl :-

REPOSITORY_URL=http://newoms01.sampledomain.ae:4889/em/upload

emdWalletSrcUrl=http://newoms01.sampledomain.ae:4889/em/wallets/emd

Check http or https and below URL :-

EMD_URL=http://sampledb03.sampledomain.ae:3872/emd/main/


3) Go to below directory and delete content from “upload” and “state” :-

test01::user01>cd /u01/app/user01/product/10.2.0.5/agent10g/sysman/emd
test01::user01>ll
total 320
-rw-r----- 1 user01 orainst 101 Jan 13 11:44 agntstmp.txt
-rw-r----- 1 user01 orainst 66 Jun 16 2009 agntstmp.txt.upgrade.backup
-rw-r----- 1 user01 orainst 13 Jun 16 2009 blackouts.xml
drwxr-x--- 2 user01 orainst 8192 Oct 29 10:54 collection
drwxr----- 2 user01 orainst 8192 Jan 13 11:29 cputrack
-rw-r----- 1 user01 orainst 3172 Jan 13 11:26 emagent_storage.config
-rw-r----- 1 user01 orainst 56381 Jan 6 15:36 lastupld.xml
-rw-r----- 1 user01 orainst 766 Nov 18 08:25 protocol.ini
drwxr-x--- 2 user01 orainst 96 Jun 16 2009 recv
drwxr-x--- 3 user01 orainst 8192 Jan 13 11:03 state
-rw-r----- 1 user01 orainst 13747 Apr 6 12:31 targets.xml
drwxr-x--- 2 user01 orainst 8192 Jan 13 11:45 upload

test01::user01>cd upload/

test01::user01>ll
total 2000
-rw-r----- 1 user01 orainst 1023292 Jan 13 11:26 test01.sampledomain.ae_host_host_configuration_old

test01::user01>rm -r *

test01::user01>ll
total 0


test01::user01>cd ../state

test01::user01>ll
total 1888
-rw-r----- 1 user01 orainst 635 Jan 7 15:08 0000.dlt
-rw-r----- 1 user01 orainst 635 Jan 7 15:13 0001.dlt
-rw-r----- 1 user01 orainst 647 Jan 7 15:14 0002.dlt
-rw-r----- 1 user01 orainst 646 Jan 7 15:14 0003.dlt
-rw-r----- 1 user01 orainst 646 Jan 7 15:14 0004.dlt


test01::user01>rm -r *

4) Also delete below files from the same directory :-

/u01/app/user01/product/10.2.0.5/agent10g/sysman/emd

rm lastupld.xml
rm agntstmp.txt
rm blackouts.xml
rm protocol.ini


test01::user01>ll
total 320
-rw-r----- 1 user01 orainst 101 Jan 13 11:44 agntstmp.txt
-rw-r----- 1 user01 orainst 66 Jun 16 2009 agntstmp.txt.upgrade.backup
-rw-r----- 1 user01 orainst 13 Jun 16 2009 blackouts.xml
drwxr-x--- 2 user01 orainst 8192 Oct 29 10:54 collection
drwxr----- 2 user01 orainst 8192 Jan 13 11:29 cputrack
-rw-r----- 1 user01 orainst 3172 Jan 13 11:26 emagent_storage.config
-rw-r----- 1 user01 orainst 56381 Jan 6 15:36 lastupld.xml
-rw-r----- 1 user01 orainst 766 Nov 18 08:25 protocol.ini
drwxr-x--- 2 user01 orainst 96 Jun 16 2009 recv
drwxr-x--- 2 user01 orainst 8192 Apr 8 12:52 state
-rw-r----- 1 user01 orainst 13747 Apr 6 12:31 targets.xml
-rw-r--r-- 1 user01 orainst 6358 Nov 18 08:25 targets.xml.18-11-2009_08-25-05-AM
-rw-r----- 1 user01 orainst 45 Jun 16 2009 targets.xml.upgrade.backup
drwxr-x--- 2 user01 orainst 8192 Apr 8 12:52 upload

test01::user01>rm lastupld.xml
test01::user01>rm agntstmp.txt
test01::user01>rm blackouts.xml
test01::user01>rm protocol.ini
total 160

5) Then go to bin directory of agent and execute below commands:-

test01::user01>cd .bin/

a) test01::user01>./emctl secure agent

Enter Agent Registration Password : Securing agent... Successful. test01::user01>./emctl start agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. Starting agent ............. started.

b) test01::user01>./emctl upload agent Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0. Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved. --------------------------------------------------------------- EMD upload completed successfully

6) Check on Grid console , the node will be added in the targets and thus you can administer the respective node from grid.

Comments

Popular posts from this blog

jstatd error : Could not create remote object : access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)

Weblogic server is not starting up ; java.lang.AssertionError

ORA-22990: LOB locators cannot span transactions