inventory.xml中的Oracle_home已存在


重新安装RAC数据库时报下列错误:

Remote 'AttachHome' failed on nodes: 'prod02'. Refer to '/u01/app/oraInventory/logs/installActions2015-07-06_10-45-26PM.log' for details.
It is recommended that the following command needs to be manually run on the failed nodes: 
 /u01/app/oracle/product/11.2.0/db_1/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ORACLE_HOME_NAME=OraDb11g_home1 CLUSTER_NODES=prod01,prod02 "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=<node on which command is to be run>. 
Please refer 'AttachHome' logs under central inventory of remote nodes where failure occurred for more details.


处理办法是:

先删除inventory.xml中的ORACLE_HOME再重新运行,详细过程如下所示:


prod02:/u01/app/oraInventory/ContentsXML$ /u01/app/oracle/product/11.2.0/db_1/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ORACLE_HOME_NAME=OraDb11g_home1 CLUSTER_NODES=prod01,prod02 "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=prod02 
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 4871 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
OUI-10197:Unable to create a new Oracle Home at /u01/app/oracle/product/11.2.0/db_1. Oracle Home already exists at this location. Select another location.
'AttachHome' failed.
prod02:/u01/app/oraInventory/ContentsXML$ls -ltr
total 12
-rw-rw---- 1 grid oinstall 689 Jul  6 19:58 inventory.xml
-rw-rw---- 1 grid oinstall 270 Jul  6 19:58 libs.xml
-rw-rw---- 1 grid oinstall 307 Jul  6 19:58 comps.xml
prod02:/u01/app/oraInventory/ContentsXML$cat inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2011, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>11.2.0.3.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="grid_home1" LOC="/u01/11.2.0/grid" TYPE="O" IDX="1" CRS="true">
   <NODE_LIST>
      <NODE NAME="prod02"/>
      <NODE NAME="prod01"/>
   </NODE_LIST>
</HOME>
<HOME NAME="oracle_home1" LOC="/u01/app/oracle/product/11.2.0/db_1" TYPE="O" IDX="2">
   <NODE_LIST>
      <NODE NAME="prod02"/>
   </NODE_LIST>
</HOME>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
prod02:/u01/app/oraInventory/ContentsXML$
prod02:/u01/app/oraInventory/ContentsXML$ /u01/app/oracle/product/11.2.0/db_1/oui/bin/runInstaller -detachHome -force -noClusterEnabled ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ORACLE_HOME_NAME=oracle_home1 CLUSTER_NODES=prod01,prod02 "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=prod02 
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 4871 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'DetachHome' was successful.
prod02:/u01/app/oraInventory/ContentsXML$cat inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2011, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>11.2.0.3.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="grid_home1" LOC="/u01/11.2.0/grid" TYPE="O" IDX="1" CRS="true">
   <NODE_LIST>
      <NODE NAME="prod02"/>
      <NODE NAME="prod01"/>
   </NODE_LIST>
</HOME>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
prod02:/u01/app/oraInventory/ContentsXML$ /u01/app/oracle/product/11.2.0/db_1/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 ORACLE_HOME_NAME=OraDb11g_home1 CLUSTER_NODES=prod01,prod02 "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=prod02 
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 4871 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'AttachHome' was successful.
prod02:/u01/app/oraInventory/ContentsXML$


你可能感兴趣的:(delete,Inventory)