Skip to content

Where is oraInst.loc Location

  • by

oraInst.loc

oraInst.loc stores Oracle product inventory path and installation group. For different OS, the location of oraInst.loc could vary.

Here is the list to show Oracle oraInst.loc location in some operating systems.

oraInst.loc location in operating systems
Operating SystemoraInst.loc Location
Linux
  • /etc/oraInst.loc
  • $ORACLE_HOME/oraInst.loc
  • $INVENTORY_LOC/oraInst.loc (e.g. /u01/app/oraInventory/oraInst.loc)
AIX
  • /etc/oraInst.loc
  • $ORACLE_HOME/oraInst.loc
  • $INVENTORY_LOC/oraInst.loc (e.g. /u01/app/oraInventory/oraInst.loc)
HP/UX
  • /var/opt/oracle/oraInst.loc
  • $ORACLE_HOME/oraInst.loc
  • $INVENTORY_LOC/oraInst.loc (e.g. /u01/app/oraInventory/oraInst.loc)
Solaris
  • /var/opt/oracle/oraInst.loc
  • $ORACLE_HOME/oraInst.loc
  • $INVENTORY_LOC/oraInst.loc (e.g. /u01/app/oraInventory/oraInst.loc)
WindowsIn Windows, there's no such oraInst.loc, because it uses registry to keep all necessary information about Oracle database(s). Please refer to Oracle Software Registry (regedit)

As you can see, there're 3 oraInst.loc in Unix-liked OS. The first one is owned by root, which is created by running /u01/app/oraInventory/orainstRoot.sh during the post-installation phase of Oracle software.

The second one is owned by oracle which is more important and usually used by OPatch utility. As for the third one, we haven't discovered any usage yet, it could be just the initial file for copy, please leave a comment if you know it.

What I'm trying to say is that if you moved Oracle central inventory to another place, then you should modify those files afterwards.

Leave a Reply

Your email address will not be published. Required fields are marked *