Thursday, January 14, 2010

Adding an Oracle home to an agent inventory

When an Oracle inventory is saved in a non-standard location, the Oracle Grid Control agent can be unable to enumerate the software that is in that Oracle Home. This is true even when it can find the home itself.
In OEM, you’ll run into an error like that below when you click on the home in the Targets list:

Error Could not find Oracle Home <ORACLE_HOME> in the inventory collected for <hostname>

We’ll use TESTSRV2 as a troubleshooting example.

Locate the oraInst.loc file

The oraInst.loc file contains the inventory for all of the Oracle software. Normally, Oracle maintains a single copy of this file, but when one is saved in a non-standard directory, it can get left out.

The first thing we’ll do is find out where all of the oraInst.loc files are located.
[root@testsrv2 ~]# locate oraInst.loc
/oracle/install/920/scripts/silent/oraInst.loc
/oracle/install/817/scripts/silent/oraInst.loc
/OLD_TREES/a18_1/oracle/install/920/scripts/silent/oraInst.loc /OLD_TREES/a18_1/oracle/install/817/scripts/silent/oraInst.loc
/app/oraInventory/oraInst.loc
/app/oracle/product/920/oraInst.loc
/app/oracle/product/102/oraInst.loc
/app/oracle/OracleHomes/agent10g/oraInst.loc
We can see that there are a lot of oraInst.loc files on this server. The file in the OracleHome/agent10g directory is the agent inventory. Some looking shows that the oraInst.loc file in the /app/oracle/product/102 directory is the most recent of all of the others, so we’ll use that one.

Add the additional inventory file to the agent search

There is a file that the agent uses to add inventories to its search list. This is the OUInventories.add file in the <AGENT_HOME>/sysman/config/ directory. So we edit it:
[root@testsrv2 ~]# vim /app/oracle/OracleHomes/agent10g/sysman/config/OUIinventories.add
[root@testsrv2 ~]#
And add the appropriate line:
image
Save that file and exit the editor.

Restart the agent

This change requires a restart of the agent:
/app/oracle/OracleHomes/agent10g/bin/emctl stop agent /app/oracle/OracleHomes/agent10g/bin/emctl start agent

Refresh the Host Configuration

Having restarted the agent, we now have to tell Grid Control to refresh its list of the software on that host:
Navigate to Depoloyments -> Refresh Host Configurationclip_image006
clip_image004
Add the host to the “selected hosts” pane and click on the “refresh hosts” button. This will populate the appropriate agent data, and you’re done.

24 comments:

  1. Thanks, This article resolved my issue.....

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. First of all i am saying that i like your post very much.I am really impressed by the way in which you presented the content and also the structure of the post. Hope you can gave us more posts like this and i really appreciate your hardwork. Best Music Making Software

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Below are the 15 best Minecraft mods everyone should try. Optifine. No matter if it's your first time playing Minecraft or you've been playing it for a long time now. Get New Minecraft Maps

    ReplyDelete
  7. Consequently, section organize tech business people might be constrained to rival set up organizations preceding making a set head begin.www.dynamixsolutions.com

    ReplyDelete
  8. Notwithstanding, your materials should likewise answer the accompanying inquiries that are extraordinary to overhauls. hardware

    ReplyDelete
  9. Amid the later Stone Age time frame (Neolithic period),for farming practice, cleaned stone devices were produced using an assortment of hard shakes to a great extent by burrowing underground passages, which can be considered as the initial phases in mining technology. click site

    ReplyDelete
  10. They genuinely are that astounding! Take a stab at playing these games on your android gadget today and see with your own eyes if android doesn't have the best downloadable games around!https://www.adlist24.com/

    ReplyDelete
  11. A foundation of figuring and correspondence technology, giving 24-hour access effortlessly to any sort of cost and item data wanted by purchasers, will diminish the educational hindrances to effective market activitytop entrepreneur movies about sales

    ReplyDelete
  12. With the quick advancement of technology, electronic items are refreshing quickly. robot vacuum cleaner

    ReplyDelete
  13. Engine bearers can offer wellbeing and other preparing recordings on the web so drivers can use down time profitably.bobsweep

    ReplyDelete
  14. Those understudies, in any case, feel that technology represents a hindrance to progress as they battle to line up with the manners by which the establishment esteems technology."bobsweep

    ReplyDelete
  15. The advancement of high technology including PC technology's Internet and the phone has vanquished correspondence boundaries and overcome any issues between individuals everywhere throughout the world. Bobsweep robotic vacuum

    ReplyDelete
  16. They last longer, fit better and retain their natural look far better than synthetic wigs

    ReplyDelete
  17. Technology is an unavoidable truth. From mobile phones to PCs, technology has turned into a piece of our regular daily existences. bobsweep vacuum cleaner

    ReplyDelete
  18. The changing market conditions, including global manufacturing, economy, new innovation and international competition, also make consumer electronic guides popular.bobsweep pethair plus reviews

    ReplyDelete
  19. Presently there are many channels accessible causing several choices and bunches of direct jumping in the middle.
    bobsweep pethair

    ReplyDelete
  20. You have diminished the measure of current streaming into your electronic framework, (or, in other words in the articulation "I^2 X R") - which encourages a ton to decrease the measure of warmth that the framework produces. Bobsweep pro

    ReplyDelete
  21. Patent mapping can be a fundamental piece of IP administration. It can reveal important data covered up in licenses and can give helpful pointers to specialized patterns, advertise patterns, contenders changes and mechanical profile and development capability of an organization. Bobsweep pro

    ReplyDelete
  22. Consequently of that, equivalent measure of talk time will be credited to your telephone.Bobsweep pethair plus robotic vacuum cleaner and mop

    ReplyDelete
  23. There are as of now thousands, if not a greater amount of the sorts of Technology Review Site that exists on the web ecovacs

    ReplyDelete

Thanks for leaving a comment!