{"id":1283,"date":"2018-01-08T10:49:32","date_gmt":"2018-01-08T02:49:32","guid":{"rendered":"http:\/\/www.821121.com\/?p=1283"},"modified":"2021-03-02T10:50:10","modified_gmt":"2021-03-02T02:50:10","slug":"oracle11g%e5%89%94%e9%99%a4%e8%8a%82%e7%82%b9%ef%bc%88%e4%ba%8c%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=1283","title":{"rendered":"Oracle11g\u5254\u9664\u8282\u70b9\uff08\u4e8c\uff09"},"content":{"rendered":"<h1>5.\u5728 GRID \u5c42\u9762\u5220\u9664\u8282\u70b9(Clusterware)<\/h1>\n<h1>5.1 \u67e5\u770b\u8282\u70b9\u90fd\u662f unpinned \u72b6\u6001<\/h1>\n<pre><code class=\"language-sql\">olsnodes -s -t\n\u5982\u679c\u8981\u5220\u9664\u7684\u8282\u70b9\u4e3a pinned \u72b6\u6001\uff0c\u8bf7 ROOT \u624b\u5de5\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\ncrsctl unpin css -n rac3\n[root@rac1 ~]# olsnodes -s -t\nrac1    Active  Unpinned\nrac2    Active  Unpinned\nrac3    Active  Unpinned<\/code><\/pre>\n<h2>5.2 \u5728\u8282\u70b9 3 \u4ee5 root \u7528\u6237\u8fd0\u884c deconfig<\/h2>\n<pre><code class=\"language-sql\">\/u01\/grid\/11.2.0.4\/crs\/install\/rootcrs.pl -deconfig -deinstall -force\n\u6821\u9a8c\uff1a\nolsnodes -s -t\ncrsctl stat res -t\n\n\u8fc7\u7a0b\u5982\u4e0b\uff1a\n[root@rac3 install]# \/u01\/grid\/11.2.0.4\/crs\/install\/rootcrs.pl -deconfig -deinstall -force\nUsing configuration parameter file: \/u01\/grid\/11.2.0.4\/crs\/install\/crsconfig_params\nNetwork exists: 1\/192.168.174.0\/255.255.255.0\/eth0, type static\nVIP exists: \/rac1vip\/192.168.174.123\/192.168.174.0\/255.255.255.0\/eth0, hosting node rac1\nVIP exists: \/rac2vip\/192.168.174.124\/192.168.174.0\/255.255.255.0\/eth0, hosting node rac2\nVIP exists: \/rac3vip\/192.168.174.127\/192.168.174.0\/255.255.255.0\/eth0, hosting node rac3\nGSD exists\nONS exists: Local port 6100, remote port 6200, EM port 2016\nCRS-2673: Attempting to stop &#039;ora.registry.acfs&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.registry.acfs&#039; on &#039;rac3&#039; succeeded\nCRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.crsd&#039; on &#039;rac3&#039;\nCRS-2790: Starting shutdown of Cluster Ready Services-managed resources on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.ARCH.dg&#039; on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.DATA.dg&#039; on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.OCR.dg&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.ARCH.dg&#039; on &#039;rac3&#039; succeeded\nCRS-2677: Stop of &#039;ora.DATA.dg&#039; on &#039;rac3&#039; succeeded\nCRS-2677: Stop of &#039;ora.OCR.dg&#039; on &#039;rac3&#039; succeeded\nCRS-2673: Attempting to stop &#039;ora.asm&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.asm&#039; on &#039;rac3&#039; succeeded\nCRS-2792: Shutdown of Cluster Ready Services-managed resources on &#039;rac3&#039; has completed\nCRS-2677: Stop of &#039;ora.crsd&#039; on &#039;rac3&#039; succeeded\nCRS-2673: Attempting to stop &#039;ora.drivers.acfs&#039; on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.ctssd&#039; on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.evmd&#039; on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.asm&#039; on &#039;rac3&#039;\nCRS-2673: Attempting to stop &#039;ora.mdnsd&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.evmd&#039; on &#039;rac3&#039; succeeded\nCRS-2677: Stop of &#039;ora.mdnsd&#039; on &#039;rac3&#039; succeeded\nCRS-2677: Stop of &#039;ora.ctssd&#039; on &#039;rac3&#039; succeeded\nCRS-2677: Stop of &#039;ora.drivers.acfs&#039; on &#039;rac3&#039; succeeded\nCRS-2677: Stop of &#039;ora.asm&#039; on &#039;rac3&#039; succeeded\nCRS-2673: Attempting to stop &#039;ora.cluster_interconnect.haip&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.cluster_interconnect.haip&#039; on &#039;rac3&#039; succeeded\nCRS-2673: Attempting to stop &#039;ora.cssd&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.cssd&#039; on &#039;rac3&#039; succeeded\nCRS-2673: Attempting to stop &#039;ora.crf&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.crf&#039; on &#039;rac3&#039; succeeded\nCRS-2673: Attempting to stop &#039;ora.gipcd&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.gipcd&#039; on &#039;rac3&#039; succeeded\nCRS-2673: Attempting to stop &#039;ora.gpnpd&#039; on &#039;rac3&#039;\nCRS-2677: Stop of &#039;ora.gpnpd&#039; on &#039;rac3&#039; succeeded\nCRS-2793: Shutdown of Oracle High Availability Services-managed resources on &#039;rac3&#039; has completed\nCRS-4133: Oracle High Availability Services has been stopped.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nRemoving Trace File Analyzer\nSuccessfully deconfigured Oracle clusterware stack on this node\n\n[root@rac1 ~]# olsnodes -s -t\nrac1    Active  Unpinned\nrac2    Active  Unpinned\nrac3    Inactive        Unpinned\n[root@rac1 ~]# crsctl stat res -t\n--------------------------------------------------------------------------------\nNAME           TARGET  STATE        SERVER                   STATE_DETAILS       \n--------------------------------------------------------------------------------\nLocal Resources\n--------------------------------------------------------------------------------\nora.ARCH.dg\n               ONLINE  ONLINE       rac1                                         \n               ONLINE  ONLINE       rac2                                         \nora.DATA.dg\n               ONLINE  ONLINE       rac1                                         \n               ONLINE  ONLINE       rac2                                         \nora.LISTENER.lsnr\n               ONLINE  ONLINE       rac1                                         \n               ONLINE  ONLINE       rac2                                         \nora.OCR.dg\n               ONLINE  ONLINE       rac1                                         \n               ONLINE  ONLINE       rac2                                         \nora.asm\n               ONLINE  ONLINE       rac1                     Started             \n               ONLINE  ONLINE       rac2                     Started             \nora.gsd\n               OFFLINE OFFLINE      rac1                                         \n               OFFLINE OFFLINE      rac2                                         \nora.net1.network\n               ONLINE  ONLINE       rac1                                         \n               ONLINE  ONLINE       rac2                                         \nora.ons\n               ONLINE  ONLINE       rac1                                         \n               ONLINE  ONLINE       rac2                                         \nora.registry.acfs\n               ONLINE  ONLINE       rac1                                         \n               ONLINE  ONLINE       rac2                                         \n--------------------------------------------------------------------------------\nCluster Resources\n--------------------------------------------------------------------------------\nora.LISTENER_SCAN1.lsnr\n      1        ONLINE  ONLINE       rac1                                         \nora.cvu\n      1        ONLINE  ONLINE       rac1                                         \nora.oc4j\n      1        ONLINE  ONLINE       rac1                                         \nora.rac1.vip\n      1        ONLINE  ONLINE       rac1                                         \nora.rac2.vip\n      1        ONLINE  ONLINE       rac2                                         \nora.racdb.db\n      1        ONLINE  ONLINE       rac1                     Open                \n      2        ONLINE  ONLINE       rac2                     Open                \nora.scan1.vip\n      1        ONLINE  ONLINE       rac1       <\/code><\/pre>\n<h2>5.3\u5728\u8282\u70b9 1 \u4ee5 root \u7528\u6237\u6267\u884c crsctl\uff0c\u5220\u9664\u8282\u70b9<\/h2>\n<pre><code class=\"language-sql\">crsctl delete node -n rac3\n[root@rac1 ~]# crsctl delete node -n rac3\nCRS-4661: Node rac3 successfully deleted.<\/code><\/pre>\n<h2>5.4\u5728\u8282\u70b9 3 \u4ee5 grid \u7528\u6237\u8fd0\u884c updateNodeList\uff0c\u66f4\u65b0 inventory<\/h2>\n<pre><code class=\"language-sql\">su - grid\n$ORACLE_HOME\/oui\/bin\/runInstaller -updateNodeList ORACLE_HOME=\/u01\/grid\/11.2.0.4\/ &quot;CLUSTER_NODES=rac3&quot; -silent -local\n\u68c0\u67e5\uff1a\ncat \/u01\/app\/oraInventory\/ContentsXML\/inventory.xml\n\n\u8fc7\u7a0b\u5982\u4e0b\uff1a\n[root@rac3 install]# su - grid\n[grid@rac3 ~]$ echo $ORACLE_HOME\n\/u01\/grid\/11.2.0.4\/\n[grid@rac3 ~]$ $ORACLE_HOME\/oui\/bin\/runInstaller -updateNodeList ORACLE_HOME=\/u01\/grid\/11.2.0.4\/ &quot;CLUSTER_NODES=rac3&quot; -silent -local\nStarting Oracle Universal Installer...\n\nChecking swap space: must be greater than 500 MB.   Actual 2990 MB    Passed\nThe inventory pointer is located at \/etc\/oraInst.loc\nThe inventory is located at \/u01\/app\/oraInventory\n&#039;UpdateNodeList&#039; was successful.\n[grid@rac3 ~]$ cat \/u01\/app\/oraInventory\/ContentsXML\/inventory.xml\n&lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot; ?&gt;\n&lt;!-- Copyright (c) 1999, 2013, Oracle and\/or its affiliates.\nAll rights reserved. --&gt;\n&lt;!-- Do not modify the contents of this file by hand. --&gt;\n&lt;INVENTORY&gt;\n&lt;VERSION_INFO&gt;\n   &lt;SAVED_WITH&gt;11.2.0.4.0&lt;\/SAVED_WITH&gt;\n   &lt;MINIMUM_VER&gt;2.1.0.6.0&lt;\/MINIMUM_VER&gt;\n&lt;\/VERSION_INFO&gt;\n&lt;HOME_LIST&gt;\n&lt;HOME NAME=&quot;Ora11g_gridinfrahome1&quot; LOC=&quot;\/u01\/grid\/11.2.0.4&quot; TYPE=&quot;O&quot; IDX=&quot;1&quot; CRS=&quot;true&quot;&gt;\n   &lt;NODE_LIST&gt;\n      &lt;NODE NAME=&quot;rac3&quot;\/&gt;\n   &lt;\/NODE_LIST&gt;\n&lt;\/HOME&gt;\n&lt;\/HOME_LIST&gt;\n&lt;COMPOSITEHOME_LIST&gt;\n&lt;\/COMPOSITEHOME_LIST&gt;\n&lt;\/INVENTORY&gt;\n<\/code><\/pre>\n<h2>5.5\u5728\u8282\u70b9 3 \u4ee5 grid \u7528\u6237\u8fd0\u884c deinstall\uff0c\u5220\u9664 GIRD_HOME \u8f6f\u4ef6<\/h2>\n<pre><code class=\"language-sql\">\u7528 grid \u7528\u6237\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5220\u9664 grid \u8f6f\u4ef6:\n$ORACLE_HOME\/deinstall\/deinstall -local\n\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u591a\u6b21\u56de\u8f66\u786e\u8ba4\u76f8\u5173\u4fe1\u606f\uff0c\u7136\u540e\u8f93\u5165 y \u786e\u8ba4\u8981\u5220\u9664\uff0c\u6700\u540e\u4ee5 root \u7528\u6237\u6267\u884c\u7c7b\u4f3c\u4e8e\u5982\u4e0b\u7684\u547d\u4ee4\uff1a\n\/tmp\/deinstall2021-01-04_11-04-44AM\/perl\/bin\/perl -I\/tmp\/deinstall2021-01-04_11-04-44AM\/perl\/lib -I\/tmp\/deinstall2021-01-04_11-04-44AM\/crs\/install \/tmp\/deinstall2021-01-04_11-04-44AM\/crs\/install\/rootcrs.pl -force  -deconfig -paramfile &quot;\/tmp\/deinstall2021-01-04_11-04-44AM\/response\/deinstall_Ora11g_gridinfrahome1.rsp\n\n\u8fc7\u7a0b\u5982\u4e0b\uff1a\n[grid@rac3 ~]$ $ORACLE_HOME\/deinstall\/deinstall -local\nChecking for required files and bootstrapping ...\nPlease wait ...\nLocation of logs \/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/\n\n############ ORACLE DEINSTALL &amp; DECONFIG TOOL START ############\n\n######################### CHECK OPERATION START #########################\n## [START] Install check configuration ##\n\nChecking for existence of the Oracle home location \/u01\/grid\/11.2.0.4\nOracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster\nOracle Base selected for deinstall is: \/u01\/app\/grid\nChecking for existence of central inventory location \/u01\/app\/oraInventory\nChecking for existence of the Oracle Grid Infrastructure home \nThe following nodes are part of this cluster: rac3\nChecking for sufficient temp space availability on node(s) : &#039;rac3&#039;\n\n## [END] Install check configuration ##\n\nTraces log file: \/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/\/crsdc.log\nEnter an address or the name of the virtual IP used on node &quot;rac3&quot;[null]\n &gt; \n\nThe following information can be collected by running &quot;\/sbin\/ifconfig -a&quot; on node &quot;rac3&quot;\nEnter the IP netmask of Virtual IP &quot;rac3-vip&quot; on node &quot;rac3&quot;[255.255.255.0]\n &gt; \n\nEnter the network interface name on which the virtual IP address &quot;rac3-vip&quot; is active\n &gt; \n\nEnter an address or the name of the virtual IP[]\n &gt; \n\nNetwork Configuration check config START\n\nNetwork de-configuration trace file location: \/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/netdc_check2021-01-04_11-08-46-AM.log\n\nSpecify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER]:\n\nNetwork Configuration check config END\n\nAsm Check Configuration START\n\nASM de-configuration trace file location: \/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/asmcadc_check2021-01-04_11-09-11-AM.log\n\n######################### CHECK OPERATION END #########################\n\n####################### CHECK OPERATION SUMMARY #######################\nOracle Grid Infrastructure Home is: \nThe cluster node(s) on which the Oracle home deinstallation will be performed are:rac3\nSince -local option has been specified, the Oracle home will be deinstalled only on the local node, &#039;rac3&#039;, and the global configuration will be removed.\nOracle Home selected for deinstall is: \/u01\/grid\/11.2.0.4\nInventory Location where the Oracle home registered is: \/u01\/app\/oraInventory\nFollowing RAC listener(s) will be de-configured: LISTENER\nOption -local will not modify any ASM configuration.\nDo you want to continue (y - yes, n - no)? [n]: y\nA log of this session will be written to: &#039;\/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/deinstall_deconfig2021-01-04_11-05-26-AM.out&#039;\nAny error messages from this session will be written to: &#039;\/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/deinstall_deconfig2021-01-04_11-05-26-AM.err&#039;\n\n######################## CLEAN OPERATION START ########################\nASM de-configuration trace file location: \/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/asmcadc_clean2021-01-04_11-09-15-AM.log\nASM Clean Configuration END\n\nNetwork Configuration clean config START\n\nNetwork de-configuration trace file location: \/tmp\/deinstall2021-01-04_11-04-44AM\/logs\/netdc_clean2021-01-04_11-09-15-AM.log\n\nDe-configuring RAC listener(s): LISTENER\n\nDe-configuring listener: LISTENER\n    Stopping listener on node &quot;rac3&quot;: LISTENER\n    Warning: Failed to stop listener. Listener may not be running.\nListener de-configured successfully.\n\nDe-configuring Naming Methods configuration file...\nNaming Methods configuration file de-configured successfully.\n\nDe-configuring backup files...\nBackup files de-configured successfully.\n\nThe network configuration has been cleaned up successfully.\n\nNetwork Configuration clean config END\n\n----------------------------------------&gt;\n\nThe deconfig command below can be executed in parallel on all the remote nodes. Execute the command on  the local node after the execution completes on all the remote nodes.\n\nRun the following command as the root user or the administrator on node &quot;rac3&quot;.\n\n\/tmp\/deinstall2021-01-04_11-04-44AM\/perl\/bin\/perl -I\/tmp\/deinstall2021-01-04_11-04-44AM\/perl\/lib -I\/tmp\/deinstall2021-01-04_11-04-44AM\/crs\/install \/tmp\/deinstall2021-01-04_11-04-44AM\/crs\/install\/rootcrs.pl -force  -deconfig -paramfile &quot;\/tmp\/deinstall2021-01-04_11-04-44AM\/response\/deinstall_Ora11g_gridinfrahome1.rsp&quot;\n\nPress Enter after you finish running the above commands\n\n&lt;----------------------------------------\n\nRemove the directory: \/tmp\/deinstall2021-01-04_11-04-44AM on node: \nSetting the force flag to false\nSetting the force flag to cleanup the Oracle Base\nOracle Universal Installer clean START\n\nDetach Oracle home &#039;\/u01\/grid\/11.2.0.4&#039; from the central inventory on the local node : Done\n\nDelete directory &#039;\/u01\/grid\/11.2.0.4&#039; on the local node : Done\n\nDelete directory &#039;\/u01\/app\/oraInventory&#039; on the local node : Done\n\nDelete directory &#039;\/u01\/app\/grid&#039; on the local node : Done\n\nOracle Universal Installer cleanup was successful.\n\nOracle Universal Installer clean END\n\n## [START] Oracle install clean ##\n\nClean install operation removing temporary directory &#039;\/tmp\/deinstall2021-01-04_11-04-44AM&#039; on node &#039;rac3&#039;\n\n## [END] Oracle install clean ##\n\n######################### CLEAN OPERATION END #########################\n\n####################### CLEAN OPERATION SUMMARY #######################\nFollowing RAC listener(s) were de-configured successfully: LISTENER\nOracle Clusterware is stopped and successfully de-configured on node &quot;rac3&quot;\nOracle Clusterware is stopped and de-configured successfully.\nSuccessfully detached Oracle home &#039;\/u01\/grid\/11.2.0.4&#039; from the central inventory on the local node.\nSuccessfully deleted directory &#039;\/u01\/grid\/11.2.0.4&#039; on the local node.\nSuccessfully deleted directory &#039;\/u01\/app\/oraInventory&#039; on the local node.\nSuccessfully deleted directory &#039;\/u01\/app\/grid&#039; on the local node.\nOracle Universal Installer cleanup was successful.\n\nRun &#039;rm -rf \/etc\/oraInst.loc&#039; as root on node(s) &#039;rac3&#039; at the end of the session.\n\nRun &#039;rm -rf \/opt\/ORCLfmap&#039; as root on node(s) &#039;rac3&#039; at the end of the session.\nRun &#039;rm -rf \/etc\/oratab&#039; as root on node(s) &#039;rac3&#039; at the end of the session.\nOracle deinstall tool successfully cleaned up temporary directories.\n#######################################################################\n\n############# ORACLE DEINSTALL &amp; DECONFIG TOOL END #############\n\n[root@rac3 deinstall2021-01-04_11-04-44AM]# \/tmp\/deinstall2021-01-04_11-04-44AM\/perl\/bin\/perl -I\/tmp\/deinstall2021-01-04_11-04-44AM\/perl\/lib -I\/tmp\/deinstall2021-01-04_11-04-44AM\/crs\/install \/tmp\/deinstall2021-01-04_11-04-44AM\/crs\/install\/rootcrs.pl -force  -deconfig -paramfile &quot;\/tmp\/deinstall2021-01-04_11-04-44AM\/response\/deinstall_Ora11g_gridinfrahome1.rsp&quot;\nUsing configuration parameter file: \/tmp\/deinstall2021-01-04_11-04-44AM\/response\/deinstall_Ora11g_gridinfrahome1.rsp\n****Unable to retrieve Oracle Clusterware home.\nStart Oracle Clusterware stack and try again.\nCRS-4047: No Oracle Clusterware components configured.\nCRS-4000: Command Stop failed, or completed with errors.\nEither \/etc\/oracle\/ocr.loc does not exist or is not readable\nMake sure the file exists and it has read and execute access\nEither \/etc\/oracle\/ocr.loc does not exist or is not readable\nMake sure the file exists and it has read and execute access\nCRS-4047: No Oracle Clusterware components configured.\nCRS-4000: Command Modify failed, or completed with errors.\nCRS-4047: No Oracle Clusterware components configured.\nCRS-4000: Command Delete failed, or completed with errors.\nCRS-4047: No Oracle Clusterware components configured.\nCRS-4000: Command Stop failed, or completed with errors.\n################################################################\n# You must kill processes or reboot the system to properly #\n# cleanup the processes started by Oracle clusterware          #\n################################################################\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nCan&#039;t exec &quot;\/usr\/bin\/lsb_release&quot;: No such file or directory at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 542.\nUse of uninitialized value $LSB_RELEASE in split at \/u01\/grid\/11.2.0.4\/lib\/osds_acfslib.pm line 547.\nACFS-9313: No ADVM\/ACFS installation detected.\nEither \/etc\/oracle\/olr.loc does not exist or is not readable\nMake sure the file exists and it has read and execute access\nEither \/etc\/oracle\/olr.loc does not exist or is not readable\nMake sure the file exists and it has read and execute access\nFailure in execution (rc=-1, 256, No such file or directory) for command \/etc\/init.d\/ohasd deinstall\nerror: package cvuqdisk is not installed\nSuccessfully deconfigured Oracle clusterware stack on this node\n<\/code><\/pre>\n<h2>5.6\u5728\u8282\u70b9 1 \u4ee5 grid \u7528\u6237\u8fd0\u884c updateNodeList\uff0c\u66f4\u65b0 inventory<\/h2>\n<pre><code class=\"language-sql\">\u5728\u8282\u70b9 1\uff0c\u7528 grid \u7528\u6237\u6267\u884c:\n$ORACLE_HOME\/oui\/bin\/runInstaller -updateNodeList ORACLE_HOME=\/u01\/grid\/11.2.0.4\/ &quot;CLUSTER_NODES=rac1,rac2&quot; -silent\n\u68c0\u67e5\uff1a\ncat \/u01\/app\/oraInventory\/ContentsXML\/inventory.xml\n\n\u8fc7\u7a0b\uff1a\n[grid@rac1 ~]$ $ORACLE_HOME\/oui\/bin\/runInstaller -updateNodeList ORACLE_HOME=\/u01\/grid\/11.2.0.4\/ &quot;CLUSTER_NODES=rac1,rac2&quot; -silent\nStarting Oracle Universal Installer...\n\nChecking swap space: must be greater than 500 MB.   Actual 4581 MB    Passed\nThe inventory pointer is located at \/etc\/oraInst.loc\nThe inventory is located at \/u01\/app\/oraInventory\n&#039;UpdateNodeList&#039; was successful.\n[grid@rac1 ~]$ cat \/u01\/app\/oraInventory\/ContentsXML\/inventory.xml\n&lt;?xml version=&quot;1.0&quot; standalone=&quot;yes&quot; ?&gt;\n&lt;!-- Copyright (c) 1999, 2013, Oracle and\/or its affiliates.\nAll rights reserved. --&gt;\n&lt;!-- Do not modify the contents of this file by hand. --&gt;\n&lt;INVENTORY&gt;\n&lt;VERSION_INFO&gt;\n   &lt;SAVED_WITH&gt;11.2.0.4.0&lt;\/SAVED_WITH&gt;\n   &lt;MINIMUM_VER&gt;2.1.0.6.0&lt;\/MINIMUM_VER&gt;\n&lt;\/VERSION_INFO&gt;\n&lt;HOME_LIST&gt;\n&lt;HOME NAME=&quot;Ora11g_gridinfrahome1&quot; LOC=&quot;\/u01\/grid\/11.2.0.4&quot; TYPE=&quot;O&quot; IDX=&quot;1&quot; CRS=&quot;true&quot;&gt;\n   &lt;NODE_LIST&gt;\n      &lt;NODE NAME=&quot;rac1&quot;\/&gt;\n      &lt;NODE NAME=&quot;rac2&quot;\/&gt;\n   &lt;\/NODE_LIST&gt;\n&lt;\/HOME&gt;\n&lt;HOME NAME=&quot;OraDb11g_home1&quot; LOC=&quot;\/u01\/app\/oracle\/product\/11.2.0.4\/db_1&quot; TYPE=&quot;O&quot; IDX=&quot;2&quot;&gt;\n   &lt;NODE_LIST&gt;\n      &lt;NODE NAME=&quot;rac1&quot;\/&gt;\n      &lt;NODE NAME=&quot;rac2&quot;\/&gt;\n   &lt;\/NODE_LIST&gt;\n&lt;\/HOME&gt;\n&lt;\/HOME_LIST&gt;\n&lt;COMPOSITEHOME_LIST&gt;\n&lt;\/COMPOSITEHOME_LIST&gt;\n&lt;\/INVENTORY&gt;\n<\/code><\/pre>\n<h2>5.7\u66f4\u65b0\/etc\/hosts \u6587\u4ef6<\/h2>\n<pre><code class=\"language-sql\">\u66f4\u65b0\/etc\/hosts \u6587\u4ef6\uff0c\u5220\u9664\u8282\u70b9 3 \u7684\u6709\u5173\u4fe1\u606f\nvi \/etc\/hosts\n192.168.174.121  rac1\n192.168.174.122  rac2\n192.168.160.121 rac1priv\n192.168.160.122  rac2priv\n192.168.174.123  rac1vip\n192.168.174.124  rac2vip\n192.168.174.125 racscanip<\/code><\/pre>\n<h2>5.8CVU \u68c0\u67e5\u8282\u70b9\u5220\u9664\u662f\u5426\u6210\u529f<\/h2>\n<pre><code class=\"language-sql\">\u5728\u8282\u70b9 1 \u4e0a\u7528 grid \u7528\u6237\u6267\u884c\uff1a\ncluvfy stage -post nodedel -n rac3 -verbose\n\n[grid@rac1 ~]$ cluvfy stage -post nodedel -n rac3 -verbose\n\nPerforming post-checks for node removal \n\nChecking CRS integrity...\n\nClusterware version consistency passed\nThe Oracle Clusterware is healthy on node &quot;rac2&quot;\nThe Oracle Clusterware is healthy on node &quot;rac1&quot;\n\nCRS integrity check passed\nResult: \nNode removal check passed\n\nPost-check for node removal was successful<\/code><\/pre>\n<h1>6.\u9a8c\u8bc1<\/h1>\n<pre><code class=\"language-sql\">olsnodes -n -s -t \ncrsctl stat res -t\n[grid@rac1 ~]$ olsnodes -n -s -t \nrac1    1       Active  Unpinned\nrac2    2       Active  Unpinned\n\n\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u542f\u8282\u70b9 1 \u548c\u8282\u70b9 2 \u7684 CRS \u8fdb\u884c\u6821\u9a8c\u3002\ncrsctl stop crs -f\ncrsctl start crs<\/code><\/pre>\n<h1>7.\u6e05\u9664\u8282\u70b9 3 \u6b8b\u7559\u6587\u4ef6<\/h1>\n<pre><code class=\"language-sql\">\u5728\u8282\u70b9 3 \u4e0a\u53ef\u80fd\u8fd8\u6709\u4e00\u4e9b\u76ee\u5f55\u5b58\u5728\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff0c\u8fdb\u884c\u6e05\u9664\uff1a\n\u6e05\u9664\u5bb6\u76ee\u5f55\uff1a\nrm -rf \/u01\/app\/grid_home\nrm -rf \/home\/oracle\n\u6e05\u9664\u76f8\u5173\u6587\u4ef6\uff1a\nrm -rf \/tmp\/.oracle\nrm -rf \/var\/tmp\/.oracle\nrm -rf \/etc\/init\/oracle-ohasd.conf\nrm -rf \/etc\/init.d\/ohasd\nrm -rf \/etc\/init.d\/init.ohasd\nrm -rf \/etc\/oraInst.loc\nrm -rf \/etc\/oratab\nrm -rf \/etc\/oracle<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>5.\u5728 GRID \u5c42\u9762\u5220\u9664\u8282\u70b9(Clusterwa<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1283","post","type-post","status-publish","format-standard","hentry","category-oracle-11g"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1283"}],"version-history":[{"count":1,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1283\/revisions"}],"predecessor-version":[{"id":1288,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1283\/revisions\/1288"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}