Download View PDF

Transcript
About the Oracle Universal Installer Inventory
If there are multiple entries in the inventory.xml file for a given Oracle Home, then
Inventory Collection from the Grid Control perspective would have issues. In this
event, you should remove these duplicate entries manually.
Here are some examples of the kind of incorrect entries that could be there:
<HOME NAME="db10g" LOC="/product/db10g" TYPE="O" IDX="1"/>
<HOME NAME="oms10g" LOC="/product/em/oms10g" TYPE="O" IDX="2"/>
<HOME NAME="db10g" LOC="/product/db10g" TYPE="O" IDX="3"/>
In the above example the first and third entries are duplicates. The Oracle Home
Name and Oracle Home Location are identical. In this example, remove the third line.
Note that all duplicate inventory issues have been caused by manual updates to the
inventory.xml file. Use the OUI APIs to make changes to the inventory.
Diagnosing and Recovering from Oracle Home Inventory Corruption
When you execute an opatch lsinventory -detail or when you click Installed
Products, the Oracle home appears, but the products and components within the
Oracle home are not listed.
Cause: This may be due to missing or corrupted Oracle home inventory.
Action: If the Oracle home inventory is missing or corrupted, restore the Oracle home
inventory. If you have not backed up the Oracle home inventory, you may have to
install the software on a different node having the same platform and install the same
patch levels including interim patches. After that, you can simply copy the inventory
directory from the patched Oracle home to the location of the affected Oracle home.
For Oracle Universal Installer version 10.2.0.2.0 and above,
you will have the following scripts in Oracle home to recover from
Oracle home inventory corruption:
Note:
■
■
detachHome.bat / detachHome.sh: Use this script if the Oracle
home is corrupted or needs to be updated.
attachHome.bat / attachHome.sh: Use this script if the Oracle
home needs to be added to the inventory.
Real Application Clusters
In a Real Application Clusters environment, the inventory also contains a list of nodes
associated with an Oracle home. It is important that during upgrade and patching, the
inventory is correctly populated with the list of nodes.
For more information, refer to Chapter 6, "Cluster Environment Installations".
Updating the Nodes of a Cluster
When you use the -updateNodeList flag with the Oracle Universal Installer, it gets
the list of nodes and updates the inventory.xml. If the CRS tag is set to TRUE, then
the Oraclehomeproperties.xml file is updated with the Oracle Clusterware home
information. For shared Oracle homes, you need to use this with -cfs flag. The syntax
is as follows:
./runInstaller -updateNodeList CLUSTER_NODES={"Node1","Node2"}
ORACLE_HOME="<Oracle_Home_Location>" ORACLE_HOME_NAME="<Oracle_Home_Name>"
LOCAL_NODE="Node_Name"
Managing Oracle Homes 3-11