bruce

记性不行啦!

11gR203 inventory 被误删后的恢复

在添加节点时,错误的删除了存活节点的inventory目录,解决办法如下:

su - grid
cd /u01/11.2.0/grid/oui/bin
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={prod02}" CRS=TRUE ORACLE_HOME_NAME="grid_home1"
--check

[root@prod02 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_LIST>
</HOME>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
[root@prod02 ContentsXML]# su - oracle
prod02:/home/oracle/$
prod02:/home/oracle/$
prod02:/home/oracle/$
prod02:/home/oracle/$
prod02:/home/oracle/$cd /u01/11.2.0/grid/oui/bin
prod02:/u01/11.2.0/grid/oui/bin$./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={prod02}"  ORACLE_HOME_NAME="oracle_home1"
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 4727 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'AttachHome' was successful.
prod02:/u01/11.2.0/grid/oui/bin$exit
logout

[root@prod02 ContentsXML]# ls -ltr
total 12
-rw-rw---- 1 grid oinstall 661 Jul  6 19:01 inventory.xml
-rw-rw---- 1 grid oinstall 270 Jul  6 19:02 libs.xml
-rw-rw---- 1 grid oinstall 307 Jul  6 19:02 comps.xml
[root@prod02 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_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>
[root@prod02 ContentsXML]# 



阅读更多
文章标签: inventory delete
个人分类: Upgrade install
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

11gR203 inventory 被误删后的恢复

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭