Friday, December 21, 2018

Recreating OraInventory(Corrupted/Lost) for already existing Oracle Home

Registering Oracle Home in the Central Inventory:

Symptoms: 
         Exception oracle.sysman.oii.oiil.OiilNativeException: S_OWNER_SYSTEM_EPERM occurred..
          'AttachHome' failed.
           LsInventorySession failed: Oracle Home inventory cannot be loaded.     
           Oracle Home inventory is corrupted.
           OPatch failed with error code 73

Cause:
             ORACLE_HOME is not registered in the Central Inventory.

Solution:
                Take a backup copy of oraInst.loc as oraInst.loc.bak
                Check $cat /etc/oraInst.loc file to know where you want to create OraInventory file.
                Give Read Permissions for all groups to the oraInventory file $chmod 644 oraInventory
                   $cd $ORACLE_HOME/oui/bin    (Go to Oracle Universal Installer)

                    [oravision@test bin]$ ./attachHome.sh
                    Starting Oracle Universal Installer...

                    Checking swap space: must be greater than 500 MB.   Actual 63999 MB    Passed
                   The inventory pointer is located at /etc/oraInst.loc
                   'AttachHome' was successful.

(OR)

               $./runInstaller -silent -attachHome ORACLE_HOME="/u01/oracle/product/12.1.0" ORACLE_HOME_NAME="Ora12CHome"



                


No comments: