11gR203 inventory 삭제된 복구

2936 단어 deleteInventory
노드를 추가할 때 생존 노드의 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]# 

좋은 웹페이지 즐겨찾기