Managing Oracle Central Inventory

Cyrille Modiano

OCP Oracle DBA in Montreal at Desjardins

Latest posts by Cyrille Modiano (see all)

Maybe have you ever been in a situation in which the Oracle central inventory is missing a Home or a Home is in it and doesn’t exists anymore or even the central Inventory doesn’t exists at all. Here is the way to consolidate you inventory or create it if it doesn’t exists.

Create the central inventory

You can create the central inventory by attaching a home with the following command:

Be sure you oraInst.loc file is pointing to a valid directory. You can use the same procedure to add an ORACLE_HOME to a existing Central Inventory.

Detach an ORACLE_HOME from the central inventory

If you want to detach an ORACLE_HOME to attach it to a new inventory you can use the following command:

When you detach an ORACLE_HOME from the central inventory you can verify the status by checking at the xml file :
/ContentsXML/inventory.xml, the home you just detached should have the flag REMOVED at the end of the line like the following:

You should take a backup of the inventory every time you add or remove a home.

For more information you can look at the Oracle Documentation: Managing Oracle Homes

2 thoughts on “Managing Oracle Central Inventory

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.