Looking for the location of oraInventory on a server? Want to know where it is? Read on.
There is a file, known to Oracle, which holds the location of the inventory. Of course, it isn’t in the same place on every server, but the ones I know of have it as follows:
- Windows: Registry at
For any other Unix, you can find it (as the oracle or root user) with:
find / -type f -name oraInst.loc -print
Once you know where it lives, you can move it simply. The following example moves it from the current location, found in
$ cat /etc/oraInst.loc inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall $ cd /opt/oracle $ cp -Rp /u01/app/oracle/oraInventory ./ $ vi /etc/oraInst.loc :1 s?/u01/app?/opt? :wq $ cat /etc/oraInst.loc inventory_loc=/opt/oracle/oraInventory inst_group=oinstall
Job done! Although it might be wise to take a backup of the original location, just in case, and then delete it from the old location:
$ cd /opt/oracle $ tar -cvzf u01.app.oracle.tgz /u01/app/oracle ... $tar -tzf u01.app.oracle.tgz ## Just checking ... ... $cd /u01/app/ $pwd ## Safety check! /u01/app $ls ## Another safety check! oracle $rm -Rf oracle ## Getting nervous yet? I am!
And that it, all done.