ITPub博客

首页 > 数据库 > Oracle > Oracle rac oraInventory更新

Oracle rac oraInventory更新

原创 Oracle 作者:lixichao1992 时间:2017-05-09 21:00:56 0 删除 编辑

执行前确认配置:

[root@rac1 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" CRS="true">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>

[root@rac2 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" CRS="true">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>


节点1执行

[grid@rac1 bin]$ ./detachHome.sh 

Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 1986 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

'DetachHome' was successful.

确认配置:

[root@rac1 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" REMOVED="T"/>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>

[root@rac2 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" REMOVED="T"/>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>


节点1执行:

[grid@rac1 bin]$ ./attachHome.sh 

Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 1975 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

'AttachHome' was successful.

确认配置:

[root@rac1 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1"/>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>

[root@rac2 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" REMOVED="T"/>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>


节点1执行:

./runInstaller -updateNodeList ORACLE_HOME=/u01/app/12.1.0/grid "CLUSTER_NODES=rac1,rac2" CRS=TRUE -silent


Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 1980 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

SEVERE:Remote 'UpdateNodeList' failed on nodes: 'rac2'. Refer to '/u01/app/oraInventory/logs/UpdateNodeList2017-05-09_08-19-46PM.log' for details.

It is recommended that the following command needs to be manually run on the failed nodes: 

 /u01/app/12.1.0/grid/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/u01/app/12.1.0/grid CLUSTER_NODES=rac1,rac2 CRS=true  "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=<node on which command is to be run>. 

Please refer 'UpdateNodeList' logs under central inventory of remote nodes where failure occurred for more details.

'UpdateNodeList' failed.

确认配置:

[root@rac1 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" CRS="true">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>

[root@rac2 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" REMOVED="T"/>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>


节点2执行:

/u01/app/12.1.0/grid/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/u01/app/12.1.0/grid CLUSTER_NODES=rac1,rac2 CRS=true  "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=rac2


[grid@rac2 bin]$ /u01/app/12.1.0/grid/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/u01/app/12.1.0/grid CLUSTER_NODES=rac1,rac2 CRS=true  "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=rac2

Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 2753 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

'UpdateNodeList' failed.


节点2执行:

[grid@rac2 bin]$ ./attachHome.sh 

Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 2753 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

'AttachHome' was successful.

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1"/>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>


节点2执行

[grid@rac2 bin]$ /u01/app/12.1.0/grid/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/u01/app/12.1.0/grid CLUSTER_NODES=rac1,rac2 CRS=true  "INVENTORY_LOCATION=/u01/app/oraInventory" LOCAL_NODE=rac2

Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 2753 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

'UpdateNodeList' was successful.


[root@rac1 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" CRS="true">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>

[root@rac2 ContentsXML]# cat inventory.xml 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.

All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>12.1.0.2.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="OraDB12Home1" LOC="/u01/app/oracle/product/12.1.0/dbhome_1" TYPE="O" IDX="2">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraGI12Home1" LOC="/u01/app/12.1.0/grid" TYPE="O" IDX="1" CRS="true">

   <NODE_LIST>

      <NODE NAME="rac1"/>

      <NODE NAME="rac2"/>

   </NODE_LIST>

</HOME>

</HOME_LIST>

<COMPOSITEHOME_LIST>

</COMPOSITEHOME_LIST>

</INVENTORY>






来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30393815/viewspace-2138790/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2015-08-05

  • 博文量
    9
  • 访问量
    35891