Move oraInventory Example assumes moving from /home/oracle/oraInventory to /u01/app/oracle/oraInventory #Important: The following commands are run under /home/oracle! cd /home/oracle #Backup tar cf oraInventory.tar oraInventory #Verify it's using /home/oracle/oraInventory find oraInventory -type f -exec grep oraInventory {} \; | head #Replace old oraInventory strings in all files under oraInventory find oraInventory -type f -exec perl -pi -e 's#/home/oracle/oraInventory#/u01/app/oracle/oraInventory#g' {} \; #Verify it's using /u01/app/oracle/oraInventory find oraInventory -type f -exec grep oraInventory {} \; | head #Move the location mv oraInventory /u01/app/oracle/ #Change inventory location in each $ORACLE_HOME (change the directory in each file) vi /u01/app/oracle/product/10.2.0/db/oraInst.loc vi /u01/app/oracle/product/10.2.0/asm/oraInst.loc vi /u01/crs/oracle/product/10.2.0/crs/oraInst.loc [include other $ORACLE_HOME/oraInst.loc here] #Also do it under /etc. Login as root vi /etc/oraInst.loc (for Linux) vi /var/opt/oracle/oraInst.loc (for Solaris) Note: If you do this on Windows, you need to use third party tools that include find.exe (not Windows's own find.exe), as well as grep.exe. See Links section of http://yong321.freeshell.org/misc/Windows_utilities_and_tips.html unxutils.sourceforge.net is recommended. For the Perl one-liner, "perl -pi...", you need perl.exe, found under e.g. C:\oracle\product\10.2.0\db_1\perl\5.8.3\bin\MSWin32-x86-multi-thread\perl.exe If not, install ActivePerl from http://www.activestate.com/ActivePerl/ and type the command find oraInventory -type f -exec perl -pinouse -e "s#/home/oracle/oraInventory#/u01/app/oracle/oraInventory#g" {} ; find oraInventory -type f -name "*.nouse" -exec rm {} ;