关闭

11gR203 inventory 被误删后的恢复

标签: inventory delete
287人阅读 评论(0) 收藏 举报
分类:

在添加节点时,错误的删除了存活节点的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]# 



0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:109819次
    • 积分:2371
    • 等级:
    • 排名:第16245名
    • 原创:65篇
    • 转载:23篇
    • 译文:64篇
    • 评论:3条
    最新评论