Change Oracle Central Inventory

How To Change Oracle Central Inventory Location

Before applying Ansible Playbooks for Oracle Database Release Update (19.24), we detected that one of the database servers had a different Oracle Central Inventory location. To ensure consistency across all database servers and make the environment compatible with Ansible playbooks for future management operations, it was necessary to change the Oracle Central Inventory location.

It is also called as oraInventory. The Central Inventory stores information about all Oracle products installed on a host. It includes a file called inventory.xml, which lists all the Oracle Homes on the node. For each Oracle Home, the file details the following:

  • The Oracle Home name
  • The home index
  • The nodes where the home is installed
  • Whether the home is an Oracle Clusterware home or a removed Oracle Home.

We have followed How To Move The Central Inventory To Another Location (Doc ID 299260.1), for all the Oracle Homes (Database, Grid and Enterprise Manager Cloud Control). Here are the steps we have followed to change it.

  • Old direction : /u01/app/oracle/em_agent/oraInventory
  • New direction: /u01/app/oracle/

It will be more than one for environments with RAC and EMCC agent. The oraInst.loc file is simply a pointer to the location of the central inventory (oraInventory).

Using the find command, we located all Local Inventories (Oracle Home inventories) and the default directory (/etc/oraInst.loc for Linux and AIX, /var/opt/oracle/oraInst.loc for other Unix platforms). The default directory is created during the first Oracle software installation (by using the orainstRoot.sh script), while subsequent installations create additional local inventory files. If we change the central inventory, all these files must be updated to point to the new central inventory. Each Oracle Home has a pointer to the central inventory in its ORACLE_HOME/oraInst.loc file.

Much more information is available on FAQs on Central Inventory and Oracle Home Inventory (Local Inventory) in Oracle RDBMS (Doc ID 564192.1) and Significance of oraInst.loc When Installing Oracle Products and Applying Patches (Doc ID 418537.1)

We have copied it recursively with all subdirectories and preserving the file’s permissions, timestamps, and ownership.

As per “Support For Manually Changing “inst_loc” In The Windows Registry (Doc ID 552502.1)“, changing this registry setting is unsupported and so moving the central inventory to another location is unsupported on Windows. manually changing the setting of “inst_loc” can cause OUI to report errors.

Moving the Oracle Central Inventory is a straightforward process if done correctly, but it is crucial to update all references to the inventory location in the oraInst.loc files and verify the changes with Oracle tools like opatch. Always ensure consistency across environments (especially in RAC or multi-home setups) to avoid future issues with patching and Oracle Home management.

Hope it helps.


Discover More from Osman DİNÇ


Comments

Leave your comment