Search This Blog

Total Pageviews

Saturday, 16 July 2011

How to move the Oracle Inventory to another location

move Oracle Inventory
move the Oracle Inventory to another location.

apt-amd-02:~ # su - oracle

oracle@apt-amd-02:~> echo $ORACLE_BASE
/opt/app/oracle


generally location $ORACLE_BASE/oraInventory


oraInst.loc file is a pointer to location of the Oracle inventory .

in suse

oracle@apt-amd-02:~> cat /etc/oraInst.loc

inventory_loc=/opt/app/oracle/oraInventory
inst_group=oinstall


But my case

oracle@apt-amd-02:~> find /home|grep oraInventory

/home/app/oracle/oraInventory
/home/app/oracle/oraInventory/sessionContext.ser
/home/app/oracle/oraInventory/install.platform
/home/app/oracle/oraInventory/oraInst.loc
/home/app/oracle/oraInventory/backup
/home/app/oracle/oraInventory/backup/2009-04-16_10-17-08AM
/home/app/oracle/oraInventory/backup/2009-04-16_10-17-08AM/ContentsXML
/home/app/oracle/oraInventory/backup/2009-04-16_10-17-08AM/ContentsXML/libs.xml
/home/app/oracle/oraInventory/backup/2009-04-16_10-17-08AM/ContentsXML/comps.xml
/home/app/oracle/oraInventory/backup/2009-04-16_10-17-08AM/ContentsXML/inventory.xml
/home/app/oracle/oraInventory/oraInstaller.properties
/home/app/oracle/oraInventory/ContentsXML
/home/app/oracle/oraInventory/ContentsXML/libs.xml
/home/app/oracle/oraInventory/ContentsXML/comps.xml
/home/app/oracle/oraInventory/ContentsXML/inventory.xml
/home/app/oracle/oraInventory/Contents
/home/app/oracle/oraInventory/Contents/oneoffs1.oo
/home/app/oracle/oraInventory/Contents/OracleHomesList.ser
/home/app/oracle/oraInventory/Contents/oneoffs3.oo
/home/app/oracle/oraInventory/Contents/CompsList3.ser
/home/app/oracle/oraInventory/Contents/CompsList0.ser
/home/app/oracle/oraInventory/Contents/PatchesList0.ser
/home/app/oracle/oraInventory/Contents/PatchesList1.ser
/home/app/oracle/oraInventory/Contents/oneoffs0.oo
/home/app/oracle/oraInventory/Contents/PatchesList3.ser
/home/app/oracle/oraInventory/Contents/CompsList1.ser
/home/app/oracle/oraInventory/logs
/home/app/oracle/oraInventory/logs/oraInstall2009-06-11_04-06-36PM.out

or

oracle@apt-amd-02:~> find /home -name oraInventory -print
/home/app/oracle/oraInventory

==

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

edit this file

vi /etc/oraInst.loc

inventory_loc=new_location
inst_group=oinstall

No comments:

Oracle DBA

anuj blog Archive