!! Move the central Inventory (oraInventory) to another location !!
NOTE : As with any code, ensure to test this script in a development environment before attempting to run it in production.
Solution On Unix:
Find the current location of the central inventory (normally $ORACLE_BASE/oraInventory):
For example:
find /home/oracle -name oraInventory -print
/u01/app/oracle/oraInventory
Open the oraInst.loc file in /etc and check the value of inventory_loc
cat /etc/oraInst.loc
inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall
Remark: The oraInst.loc file is simply a pointer to the location of the central inventory (oraInventory)
Copy the oraInventory directory to the destination directory
cp -Rp /home/oracle/oraInventory /app/oracle
Edit the oraInst.loc file to point to the new location
For example:
vi /etc/oraInst.loc
inventory_loc=/app/oracle/oraInventory inst_group=dba
NOTE : As with any code, ensure to test this script in a development environment before attempting to run it in production.
Solution On Unix:
Find the current location of the central inventory (normally $ORACLE_BASE/oraInventory):
For example:
find /home/oracle -name oraInventory -print
/u01/app/oracle/oraInventory
Open the oraInst.loc file in /etc and check the value of inventory_loc
cat /etc/oraInst.loc
inventory_loc=/u01/app/oracle/oraInventory inst_group=oinstall
Remark: The oraInst.loc file is simply a pointer to the location of the central inventory (oraInventory)
Copy the oraInventory directory to the destination directory
cp -Rp /home/oracle/oraInventory /app/oracle
Edit the oraInst.loc file to point to the new location
For example:
vi /etc/oraInst.loc
inventory_loc=/app/oracle/oraInventory inst_group=dba