zoukankan      html  css  js  c++  java
  • Oracle-11g-R2 于 Linux 上的 RAC 卸载

    安装环境:
    SuSE Linux Enterprise Server 11 SP3
    Oracle 11g 11.2.0.3
     
    卸载步骤:
    1.卸载 Database 软件(oracle,第一节点)
    (1).运行 $ORACLE_HOME/deinstall/deinstall 脚本。
    (2).按照导航执行如下。
    (2-1).Specify the list of database names that are configured in this Oracle home []: 
    注意:输入数据库名称,如果还未建库,则可缺省。
    (2-2).Oracle Grid Infrastructure Home is: /u01/11.2.0/grid
    The cluster node(s) on which the Oracle home deinstallation will be performed are:anxeccora01,anxeccora02
    Oracle Home selected for deinstall is: /u01/app/oracle/product/11.2.0/db_1
    Inventory Location where the Oracle home registered is: /u01/app/oraInventory
    No Enterprise Manager configuration to be updated for any database(s)
    No Enterprise Manager ASM targets to update
    No Enterprise Manager listener targets to migrate
    Checking the config status for CCR
    anxeccora01 : Oracle Home exists with CCR directory, but CCR is not configured
    anxeccora02 : Oracle Home exists with CCR directory, but CCR is not configured
    CCR check is finished
    Do you want to continue (y - yes, n - no)? [n]:
    注意: 环境检查正常,输入 y 则继续删除操作。
    2.检查 Database 软件卸载结果(oracle,每个节点)
    查看 $ORACLE_HOME 目录是否已经被删除。如删除则说明卸载完毕。
    3.卸载 Grid Infrastructure 软件(grid & root,第一节点 & 每个节点)
    a.运行卸载脚本(grid,第一节点)
    运行 $GI_HOME/deinstall/deinstall 脚本。
    b.删除监听、ASM(grid,第一节点)
    按照导航执行如下。
    (1).Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER]:
    注意:输入监听名称,请勿输入 SCAN 监听名称。
    (2).Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/11.2.0/grid.
    ASM Diagnostic Destination : /u01/app/oracle
    ASM Diskgroups : +ARCH,+DATA,+OCR_VOTE
    ASM diskstring : <Default>
    Diskgroups will be dropped
    De-configuring ASM will drop all the diskgroups and it's contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).
     If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering 'y'. Do you  want to modify above information (y|n) [n]: 
    注意: 检查 ASM 配置,输入 n 则按当前参数删除 ASM。
    (3).Oracle Grid Infrastructure Home is: /u01/11.2.0/grid
    The cluster node(s) on which the Oracle home deinstallation will be performed are:anxeccora01,anxeccora02
    Oracle Home selected for deinstall is: /u01/11.2.0/grid
    Inventory Location where the Oracle home registered is: /u01/app/oraInventory
    Following RAC listener(s) will be de-configured: LISTENER
    ASM instance will be de-configured from this Oracle home
    Do you want to continue (y - yes, n - no)? [n]:
    注意: 环境检查正常,输入 y 则继续删除操作。
    c.删除 CRS 配置(root,每个节点)
    注意:按照导航执行如下。
    (1).The 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.
     
    Run the following command as the root user or the administrator on node "anxeccora02".
     
    /tmp/deinstall2016-10-25_04-06-46PM/perl/bin/perl -I/tmp/deinstall2016-10-25_04-06-46PM/perl/lib -I/tmp/deinstall2016-10-25_04-06-46PM/crs/install /tmp/deinstall2016-10-25_04-06-46PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2016-10-25_04-06-46PM/response/deinstall_Ora11g_gridinfrahome1.rsp"
     
    Run the following command as the root user or the administrator on node "anxeccora01".
     
    /tmp/deinstall2016-10-25_04-06-46PM/perl/bin/perl -I/tmp/deinstall2016-10-25_04-06-46PM/perl/lib -I/tmp/deinstall2016-10-25_04-06-46PM/crs/install /tmp/deinstall2016-10-25_04-06-46PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2016-10-25_04-06-46PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
     
    Press Enter after you finish running the above commands
    注意:应先在远端节点执行脚本,最后在本地节点执行脚本。执行脚本成功后,输入回车键。
    d.删除残留文件(root,每个节点)
    更具导航执行。
    Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'anxeccora01,anxeccora02' at the end of the session.
    Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'anxeccora01,anxeccora02' at the end of the session.
    Run 'rm -rf /etc/oratab' as root on node(s) 'anxeccora01' at the end of the session.
  • 相关阅读:
    QML使用动画连续非线性改变int的取值
    QML粒子系统
    QML获取当前时间
    QML与C++混合编程
    QMLBinding
    QML图形渲染QtGraphicalEffects
    [九度][何海涛] 数组中只出现一次的数字
    [九度][何海涛] 扑克牌顺子
    [九度][何海涛] 最大子向量和
    [九度][何海涛] Move!Move!!Move!!!
  • 原文地址:https://www.cnblogs.com/autopenguin/p/5997255.html
Copyright © 2011-2022 走看看