Oracle

change / move the Oracle Inventory

Hi,

The below steps will help you to change / move the Oracle Inventory to other locations for Linux flavor setups:

Find the current location of the Oracle Inventory (default $ORACLE_BASE/oraInventory):

For example:

[oracle@tto ~]$ cd $ORACLE_BASE

[oracle@tto app]$ pwd
/opt/app

find . -name oraInventory -print

[oracle@tto app]$ find . -name oraInventory -print
find: ./oracle/product/11.2.0/db_1/opmn/conf: Permission denied
find: ./oracle/product/11.2.0/db_1/opmn/logs: Permission denied
find: ./oracle/product/11.2.0/db_1/inventory/ContentsXML/ConfigXML: Permission denied
find: ./oracle/product/11.2.0/db_1/cfgtoollogs/cfgfw: Permission denied
./oraInventory

Open the oraInst.loc file in /etc/ and check the value of inventory_loc

[oracle@tto app]$ cat /etc/oraInst.loc
inventory_loc=/opt/app/oraInventory
inst_group=oinstall

Copy the oraInventory directory to the destination directory

cp -Rp /opt/app/oraInventory /home/oracle/oraInventory

Edit the oraInst.loc file to point to the new location

For example:

vi /etc/oraInst.loc
inventory_loc=/home/oracle/oraInventory inst_group=dba

Note: The oraInst.loc file is simply a pointer to the location of the Oracle Inventory (oraInventory)

Regards, Erman

Advertisements
Standard

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s