Tags

Procedure to Reconstruct the Central Inventory

Perform the following steps as a Grid Control installation user, which is the user who owns the inventory.

  1. Identify a non-shared location for the Central Inventory. This location should have sufficient permissions, such as read and write permissions. Make sure that the installation user creates this new location and that the location is part of the installation group.
  2. Obtain the list of Oracle homes from the existing shared Central Inventory registered in oraInventory, use the command opatch lsinventory -all.

    Since this is a shared inventory, you may see Oracle homes listed in the Central Inventory from other systems on which the inventory is shared. Identify the Oracle home pertinent to the current system.

  3. Edit the default inventory pointer file indicating the location of the non-shared inventory:

    inventory_loc=
    inst_group=

    The default inventory pointer file resides in this file:

    /etc/oraInst.loc

    All other Unix operating systems, such as Solaris and so forth reside in this file:

    /var/opt/oracle/oraInst.loc

  4. For each Oracle home in the existing shared inventory, do the following:
    1. Detach the home from the existing inventory.
    * For a non-RAC home, run:

              $ORACLE_HOME/oui/bin/detachhome.sh
    
            * For a Clusterware, RAC, or clustered Agent home, run the following command on each of the nodes:
    
              $ORACLE_HOME/oui/bin/detachhome.sh -local
    
     2. Attach a home to the new non-shared inventory.
            * For a non-RAC home, run:
    
              $ORACLE_HOME/oui/bin/attachhome.sh
    
            * For a non-shared Clusterware home, run the following command on each of the nodes:
    
              $ORACLE_HOME/oui/bin/attachhome.sh -local "CLUSTER_NODES= {comma-separated nodelist}" LOCAL_NODE= CRS=true
    
            * For a shared Clusterware home, run the following command on each of the nodes:
    
              $ORACLE_HOME/oui/bin/attachhome.sh -local "CLUSTER_NODES= {comma-separated nodelist}" LOCAL_NODE= CRS=true -cfs
    
            * For a non-shared RAC or clustered Agent home, run the following command on each of the nodes:
    
              $ORACLE_HOME/oui/bin/attachhome.sh -local "CLUSTER_NODES= {comma-separated nodelist}" LOCAL_NODE=
    
            * For a shared RAC or clustered Agent home, run the following command on each of the nodes:
    
              $ORACLE_HOME/oui/bin/attachhome.sh -local "CLUSTER_NODES={comma separated nodelist}" LOCAL_NODE= -cfs
    

Note:
The old inventory becomes obsolete after this migration. You can delete the directory, but this is not mandatory.

user@hostname:$ORACLE_HOME/oui/bin>./runInstaller -silent -attachHome \

ORACLE_HOME=/swift/oracle/oracle11g \

ORACLE_HOME_NAME=”oracle11g”

Starting Oracle Universal Installer…

> opatch inventory -details

OPatch succeeded.

http://docs.oracle.com/

Advertisements