Recreate inventory file in case of corruption
Step 1
Check for location of central inventory
Central inventory location –
AIX/Linux - file /etc/oraInst.loc or /var/opt/oracle/oraInst.loc
Step 2
If pointer file does not exist create it
Set permissions 755 (for oracle software owner) create oraInst.loc file as :
inventory_loc=<location_for_oraInventory>
inst_group=<name_of_group_for_installtion>
e.g.
inventory_loc=/test/oradb/orabase/oraInventory
inst_group=oinstall
Step 3
Take backup of the central inventory if it exists
$ mv oraInventory oraInventory_orig
Step 4
Goto OUI directory & update oraInventory for CRS_HOME
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="<Ora_CRS_Home>" ORACLE_HOME_NAME="<OracleCRSHome_NAME>" LOCAL_NODE='Current_node' CLUSTER_NODES=ALL_NODES CRS=true
e.g.:
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/test/oragrid/grid2" " ORACLE_HOME_NAME="OraCrs1" LOCAL_NODE='tst1' CLUSTER_NODES=tst1,tst2 CRS=true
Note : This is required on only one node in the cluster else may lead to inventory corruption.
Step 5
Goto OUI directory & update oraInventory for each DB home
$cd $ORACLE_HOME/oui/bin
Execute runInstaller with -attachHome option for Oracle Home.
$ ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="<Oracle_Home_Location>" ORACLE_HOME_NAME="<Name_Of _Oracle_Home>"
e.g.:
ORACLE_HOME=/test/oradb/db2
ORACLE_HOME_NAME=Ora11g1
$ ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/test/oradb/db2" ORACLE_HOME_NAME=" Ora11g1"
Step 6
Repeat Step 4 for Every ORACLE_HOME
Step 7
Verify the inventory creation in all the nodes.
Check XML file size of contents.xml across all nodes and also compare the contents.
Check for location of central inventory
Central inventory location –
AIX/Linux - file /etc/oraInst.loc or /var/opt/oracle/oraInst.loc
Step 2
If pointer file does not exist create it
Set permissions 755 (for oracle software owner) create oraInst.loc file as :
inventory_loc=<location_for_oraInventory>
inst_group=<name_of_group_for_installtion>
e.g.
inventory_loc=/test/oradb/orabase/oraInventory
inst_group=oinstall
Step 3
Take backup of the central inventory if it exists
$ mv oraInventory oraInventory_orig
Step 4
Goto OUI directory & update oraInventory for CRS_HOME
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="<Ora_CRS_Home>" ORACLE_HOME_NAME="<OracleCRSHome_NAME>" LOCAL_NODE='Current_node' CLUSTER_NODES=ALL_NODES CRS=true
e.g.:
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/test/oragrid/grid2" " ORACLE_HOME_NAME="OraCrs1" LOCAL_NODE='tst1' CLUSTER_NODES=tst1,tst2 CRS=true
Note : This is required on only one node in the cluster else may lead to inventory corruption.
Step 5
Goto OUI directory & update oraInventory for each DB home
$cd $ORACLE_HOME/oui/bin
Execute runInstaller with -attachHome option for Oracle Home.
$ ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="<Oracle_Home_Location>" ORACLE_HOME_NAME="<Name_Of _Oracle_Home>"
e.g.:
ORACLE_HOME=/test/oradb/db2
ORACLE_HOME_NAME=Ora11g1
$ ./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/test/oradb/db2" ORACLE_HOME_NAME=" Ora11g1"
Step 6
Repeat Step 4 for Every ORACLE_HOME
Step 7
Verify the inventory creation in all the nodes.
Check XML file size of contents.xml across all nodes and also compare the contents.