I haved moved oracle Inventory by using below step :
/home/oracle/oraInventory to /u01/app/oracle/oraInventory
#Backup
tar cf /home/oracle/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 change new location to under /etc. Login as root
vi /etc/oraInst.loc (for Linux)
vi /var/opt/oracle/oraInst.loc (for Solaris)
/home/oracle/oraInventory to /u01/app/oracle/oraInventory
#Backup
tar cf /home/oracle/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 change new location to under /etc. Login as root
vi /etc/oraInst.loc (for Linux)
vi /var/opt/oracle/oraInst.loc (for Solaris)
No comments:
Post a Comment