• ORACLE RAC GRID卸载


    ORACLE RAC GRID卸载

    cd $ORACLE_HOME
    cd deinstall
    ./deinstall
    [grid@exrac1 deinstall]$ ./deinstall
    Checking for required files and bootstrapping ...
    Please wait ...
    Location of logs /tmp/deinstall2020-09-07_12-48-34PM/logs/
    
    ############ ORACLE DECONFIG TOOL START ############
    
    
    ######################### DECONFIG CHECK OPERATION START #########################
    ## [START] Install check configuration ##
    
    
     Deinstall utility is unable to determine the list of nodes, on which this home is configured, as the Oracle Clusterware processes are not running on the local node.
    
     Is this home configured on other nodes (y - yes, n - no)?[n]:y
    
     Specify a comma-separated list of remote nodes to cleanup : 
    Invalid Remote Nodes.
    
    Invalid Remote Nodes.
    
    Invalid Remote Nodes.
    
    Invalid Remote Nodes.
    
    Invalid Remote Nodes.
    exrac1
    
    Checking for existence of the Oracle home location /u01/app/grid
    Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
    Oracle Base selected for deinstall is: /u01/app/grid_base
    Checking for existence of central inventory location /u01/app/oraInventory
    Checking for existence of the Oracle Grid Infrastructure home /u01/app/grid
    The following nodes are part of this cluster: exrac1
    Checking for sufficient temp space availability on node(s) : 'exrac1'
    
    ## [END] Install check configuration ##
    
    Traces log file: /tmp/deinstall2020-09-07_12-48-34PM/logs//crsdc_2020-09-07_01-49-46-PM.log
    
    Network Configuration check config START
    
    Network de-configuration trace file location: /tmp/deinstall2020-09-07_12-48-34PM/logs/netdc_check2020-09-07_01-49-56-PM.log
    
    Network Configuration check config END
    
    Asm Check Configuration START
    
    ASM de-configuration trace file location: /tmp/deinstall2020-09-07_12-48-34PM/logs/asmcadc_check2020-09-07_01-49-56-PM.log
    
    ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
    Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/app/grid.
    ASM Diagnostic Destination : /u01/app/grid_base
    ASM Diskgroups : 
    ASM diskstring : /dev/mapper
    Diskgroups will not be dropped
     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]: y
    Is Grid Infrastructure Storage(OCR) in ASM diskgroup (y|n) [y]: y
    Enter the OCR/Voting Disk diskgroup name [+T_OCR]: +T_OCR
    Specify the ASM Diagnostic Destination [/u01/app/grid_base]: 
    Specify the diskstring [/dev/mapper]: 
    Specify the diskgroups that are managed by this ASM instance []: 
    
    Database Check Configuration START
    
    Database de-configuration trace file location: /tmp/deinstall2020-09-07_12-48-34PM/logs/databasedc_check2020-09-07_01-50-28-PM.log
    
    Oracle Grid Management database was not found in this Grid Infrastructure home
    
    Database Check Configuration END
    
    ######################### DECONFIG CHECK OPERATION END #########################
    
    
    ####################### DECONFIG CHECK OPERATION SUMMARY #######################
    Oracle Grid Infrastructure Home is: /u01/app/grid
    The following nodes are part of this cluster: exrac1
    The cluster node(s) on which the Oracle home deinstallation will be performed are:exrac1
    Oracle Home selected for deinstall is: /u01/app/grid
    Inventory Location where the Oracle home registered is: /u01/app/oraInventory
    ASM instance will be de-configured from this Oracle home
    Oracle Grid Management database was not found in this Grid Infrastructure home
    Do you want to continue (y - yes, n - no)? [n]: Y
    A log of this session will be written to: '/tmp/deinstall2020-09-07_12-48-34PM/logs/deinstall_deconfig2020-09-07_12-49-08-PM.out'
    Any error messages from this session will be written to: '/tmp/deinstall2020-09-07_12-48-34PM/logs/deinstall_deconfig2020-09-07_12-49-08-PM.err'
    
    ######################## DECONFIG CLEAN OPERATION START ########################
    Database de-configuration trace file location: /tmp/deinstall2020-09-07_12-48-34PM/logs/databasedc_clean2020-09-07_01-50-30-PM.log
    ASM de-configuration trace file location: /tmp/deinstall2020-09-07_12-48-34PM/logs/asmcadc_clean2020-09-07_01-50-30-PM.log
    ASM Clean Configuration START
    ASM Clean Configuration END
    
    Network Configuration clean config START
    
    Network de-configuration trace file location: /tmp/deinstall2020-09-07_12-48-34PM/logs/netdc_clean2020-09-07_01-50-30-PM.log
    
    De-configuring Naming Methods configuration file on all nodes...
    Naming Methods configuration file de-configured successfully.
    
    De-configuring Local Net Service Names configuration file on all nodes...
    Local Net Service Names configuration file de-configured successfully.
    
    De-configuring Directory Usage configuration file on all nodes...
    Directory Usage configuration file de-configured successfully.
    
    De-configuring backup files on all nodes...
    Backup files de-configured successfully.
    
    The network configuration has been cleaned up successfully.
    
    Network Configuration clean config END
    
    
    ---------------------------------------->
    
    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 "exrac1".
    
    /u01/app/grid/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2020-09-07_12-48-34PM/response/deinstall_OraGI12Home1.rsp" -lastnode
    
    Press Enter after you finish running the above commands
    
    <----------------------------------------
    
    
    ---------------------------------------->
    
    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 "exrac1".
    
    /u01/app/grid/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2020-09-07_12-48-34PM/response/deinstall_OraGI12Home1.rsp" -lastnode
    
    Press Enter after you finish running the above commands
    
    
    

    另开个SESSION

    用ROOT登录

    [root@exrac1 deinstall]# /u01/app/grid/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2020-09-07_12-48-34PM/response/deinstall_OraGI12Home1.rsp"
    Using configuration parameter file: /tmp/deinstall2020-09-07_12-48-34PM/response/deinstall_OraGI12Home1.rsp
    The log of current session can be found at:
      /tmp/deinstall2020-09-07_12-48-34PM/logs/crsdeconfig_exrac1_2020-09-07_01-51-54PM.log
    PRCR-1070 : Failed to check if resource ora.net1.network is registered
    CRS-0184 : Cannot communicate with the CRS daemon.
    PRCR-1070 : Failed to check if resource ora.helper is registered
    CRS-0184 : Cannot communicate with the CRS daemon.
    PRCR-1070 : Failed to check if resource ora.ons is registered
    CRS-0184 : Cannot communicate with the CRS daemon.
    
    2020/09/07 13:52:06 CLSRSC-180: An error occurred while executing the command '/u01/app/grid/bin/srvctl config nodeapps'
    CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'exrac1'
    CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'exrac1' has completed
    CRS-4133: Oracle High Availability Services has been stopped.
    2020/09/07 13:52:17 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.
    2020/09/07 13:54:01 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.
    2020/09/07 13:54:03 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
    ######################### DEINSTALL CLEAN OPERATION END #########################
    
    
    ####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
    Successfully detached Oracle home '/u01/app/grid' from the central inventory on the local node.
    Successfully deleted directory '/u01/app/grid' on the local node.
    Successfully deleted directory '/u01/app/oraInventory' on the local node.
    Successfully deleted directory '/u01/app/grid_base' on the local node.
    Oracle Universal Installer cleanup was successful.
    
    
    Run 'rm -r /etc/oraInst.loc' as root on node(s) 'exrac1' at the end of the session.
    
    Run 'rm -r /opt/ORCLfmap' as root on node(s) 'exrac1' at the end of the session.
    Oracle deinstall tool successfully cleaned up temporary directories.
    #######################################################################
    
    
    ############# ORACLE DEINSTALL TOOL END #############
    
    

    利用DD命令把ASM盘清空

    dd  if=/dev/zero  of=/dev/mapper/T_OCR bs=7808 count=12800
    dd  if=/dev/zero  of=/dev/mapper/GIMR_A bs=39040 count=12800
     dd  if=/dev/zero  of=/dev/mapper/GIRM_B bs=39040 count=12800
    
    
  • 相关阅读:
    codeforces 540 C Ice Cave【BFS】
    UVa 140 Bandwidth【枚举排列】
    UVa 1600 Patrol Robot【BFS】
    UVa 1599 Ideal Path【BFS】
    HDU 4324 Triangle LOVE【拓扑排序】
    HDU 2647 Reward【拓扑排序】
    UVa 10305 Ordering Tasks【拓扑排序】
    codeforces 501 B Misha and Changing Handles 【map】
    codeforces 510 C Fox And Names【拓扑排序】
    落谷_2740/poj_1273/USACO_4.2/网络流
  • 原文地址:https://www.cnblogs.com/flamechan1981/p/13650373.html
Copyright © 2020-2023  润新知