inventory.xml中的Oracle_home已存在

在重新安装RAC数据库时遇到错误,问题根源在于inventory.xml文件中已存在ORACLE_HOME。要解决此问题,需要先删除inventory.xml中的相关条目,然后重新运行安装。具体步骤未在摘要中详细说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


重新安装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$


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值