oraInventory – what's this about?

Here are a few tidbits (not comprehensive – I’ll leave that to Oracle) about “oraInventory”.
Generally, it’s directory structure containing XML files that point at installed Oracle Products.
Where is “oraInventory”?
On Linux & most UNIX dialects here is a pointer to the directory structure:

/etc/oraInst.loc

or

/var/opt/oracle/oraInst.loc
$ cat /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=dba

So lets take a look.

$ cd /u01/app/oraInventory
$ ls
backup ContentsXML logs oui
$ cd ContentsXML/
$ ls
comps.xml inventory.xml libs.xml

Note most of the action takes place in inventory.xml
In my case, I was looking for the OEM Agent home so, search within the file “inventory.xml” for the location of the OEM agent (you may not have OEM agent – but every thing you do have Oracle related is here).

view inventory.xml
:set ic
/agent
<HOME NAME=”agent12c1″ LOC=”/u01/OracleHomes/agent/core/12.1.0.5.0″ TYPE=”O” IDX=”35″>

There is it, my OEM agents home is: /u01/OracleHomes/agent/core/12.1.0.5.0
Of course with any Oracle Home you have to add “/bin” to get to the binaries and use them – e.g.

cd /u01/OracleHomes/agent/core/12.1.0.5.0/bin
$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 5
Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved.
—————————————————————
Agent Version : 12.1.0.5.0
OMS Version : 12.1.0.5.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/OracleHomes/agent/agent_inst
Agent Log Directory : /u01/OracleHomes/agent/agent_inst/sysman/log
Agent Binaries : /u01/OracleHomes/agent/core/12.1.0.5.0
Agent Process ID : 13719
Parent Process ID : 13657
Agent URL : https://emcc.example.com:3872/emd/main/
Local Agent URL in NAT : https://emcc.example.com:3872/emd/main/
Repository URL : https://emcc.example.com:4900/empbs/upload
Started at : 2016-03-20 06:30:16
Started by user : oracle
Operating System : Linux version 2.6.32-200.13.1.el5uek (amd64)
Last Reload : (none)
Last successful upload : 2016-03-20 06:56:30
Last attempted upload : 2016-03-20 06:56:30
Total Megabytes of XML files uploaded so far : 0.8
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 6.33%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2016-03-20 06:56:34
Last successful heartbeat to OMS : 2016-03-20 06:56:34
Next scheduled heartbeat to OMS : 2016-03-20 06:57:34
—————————————————————
Agent is Running and Ready

Hope this helps, Mike

Leave a Comment

Scroll to Top