zoukankan      html  css  js  c++  java
  • 删除grid软件的正确方式(单节点)-12.1.0.2

    [grid@localhost deinstall]#su - grid
    [grid@localhost deinstall]$cd $ORACLE_HOME/deinstall
    [grid@localhost deinstall]$ ./deinstall
    报错误:
    [main] [ 2021-01-29 02:17:13.000 EST ] [CRSDeconfig.checkConfig:283]  Setting DC flag back to false
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.install.db.deinstall.wrapper.Deinstall.callCheckImpl(Deinstall.java:1344)
            at oracle.install.db.deinstall.wrapper.Deinstall.main(Deinstall.java:646)
    Caused by: oracle.ops.util.FatalException: Can't deconfigure Oracle Restart before removing or downgrading managed Oracle databases.
            at oracle.ops.util.CRSDeconfig.verifyRACDatabases(CRSDeconfig.java:3178)
            at oracle.ops.util.CRSDeconfig.checkConfig(CRSDeconfig.java:353)
            at oracle.ops.util.CRSDeconfig.checkConfig(CRSDeconfig.java:280)

    停掉数据库:
    [grid@localhost deinstall]$ srvctl stop database -d restart
    [root@localhost bin]# cd /u01/grid/grid_home/12.1.0.2/bin
    [root@localhost bin]# ./crsctl stop has



    [grid@localhost deinstall]$ ./deinstall
    Checking for required files and bootstrapping ...
    Please wait ...
    Location of logs /u01/grid/oraInventory/logs/

    ############ ORACLE DECONFIG TOOL START ############


    ######################### DECONFIG CHECK OPERATION START #########################
    ## [START] Install check configuration ##


    Checking for existence of the Oracle home location /u01/grid/grid_home/12.1.0.2
    Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server
    Oracle Base selected for deinstall is: /u01/grid/grid_base
    Checking for existence of central inventory location /u01/grid/oraInventory
    Checking for existence of the Oracle Grid Infrastructure home /u01/grid/grid_home/12.1.0.2

    ## [END] Install check configuration ##

    Traces log file: /u01/grid/oraInventory/logs//crsdc_2021-01-29_02-25-03AM.log

    Network Configuration check config START

    Network de-configuration trace file location: /u01/grid/oraInventory/logs/netdc_check2021-01-29_02-25-04-AM.log

    Specify all Oracle Restart enabled listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:

    Network Configuration check config END

    Asm Check Configuration START

    ASM de-configuration trace file location: /u01/grid/oraInventory/logs/asmcadc_check2021-01-29_02-25-10-AM.log

    Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/grid/grid_home/12.1.0.2.
    ASM Diagnostic Destination : /u01/grid/grid_base
    ASM Diskgroups :
    ASM diskstring : <Default>
    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
    Specify the ASM Diagnostic Destination [/u01/grid/grid_base]:
    Specify the diskstring []:
    Specify the diskgroups that are managed by this ASM instance []:

    Database Check Configuration START

    Database de-configuration trace file location: /u01/grid/oraInventory/logs/databasedc_check2021-01-29_02-25-36-AM.log

    Database Check Configuration END

    ######################### DECONFIG CHECK OPERATION END #########################


    ####################### DECONFIG CHECK OPERATION SUMMARY #######################
    Oracle Grid Infrastructure Home is: /u01/grid/grid_home/12.1.0.2
    The following nodes are part of this cluster: null
    The cluster node(s) on which the Oracle home deinstallation will be performed are:null
    Oracle Home selected for deinstall is: /u01/grid/grid_home/12.1.0.2
    Inventory Location where the Oracle home registered is: /u01/grid/oraInventory
    Following Oracle Restart enabled 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
    A log of this session will be written to: '/u01/grid/oraInventory/logs/deinstall_deconfig2021-01-29_02-24-57-AM.out'
    Any error messages from this session will be written to: '/u01/grid/oraInventory/logs/deinstall_deconfig2021-01-29_02-24-57-AM.err'

    ######################## DECONFIG CLEAN OPERATION START ########################
    Database de-configuration trace file location: /u01/grid/oraInventory/logs/databasedc_clean2021-01-29_02-25-39-AM.log
    ASM de-configuration trace file location: /u01/grid/oraInventory/logs/asmcadc_clean2021-01-29_02-25-39-AM.log
    ASM Clean Configuration START
    ASM Clean Configuration END

    Network Configuration clean config START

    Network de-configuration trace file location: /u01/grid/oraInventory/logs/netdc_clean2021-01-29_02-25-43-AM.log

    De-configuring Oracle Restart enabled listener(s): LISTENER

    De-configuring listener: LISTENER
        Stopping listener: LISTENER
        Warning: Failed to stop listener. Listener may not be running.
        Deleting listener: LISTENER
        Listener deleted successfully.
    Listener de-configured successfully.

    De-configuring Listener configuration file...
    Listener configuration file de-configured successfully.

    De-configuring Naming Methods configuration file...
    Naming Methods configuration file de-configured successfully.

    De-configuring backup files...
    Backup files de-configured successfully.

    The network configuration has been cleaned up successfully.

    Network Configuration clean config END


    ---------------------------------------->

    Run the following command as the root user or the administrator on node "localhost".

    /tmp/deinstall2021-01-29_02-24-33AM/perl/bin/perl -I/tmp/deinstall2021-01-29_02-24-33AM/perl/lib -I/tmp/deinstall2021-01-29_02-24-33AM/crs/install /tmp/deinstall2021-01-29_02-24-33AM/crs/install/roothas.pl -force  -deconfig -paramfile "/tmp/deinstall2021-01-29_02-24-33AM/response/deinstall_OraGI12Home1.rsp"

    Press Enter after you finish running the above commands

    <----------------------------------------

    在root账号下执行:
    [root@localhost bin]# /tmp/deinstall2021-01-29_02-24-33AM/perl/bin/perl -I/tmp/deinstall2021-01-29_02-24-33AM/perl/lib -I/tmp/deinstall2021-01-29_02-24-33AM/crs/install /tmp/deinstall2021-01-29_02-24-33AM/crs/install/roothas.pl -force  -deconfig -paramfile "/tmp/deinstall2021-01-29_02-24-33AM/response/deinstall_OraGI12Home1.rsp"
    Using configuration parameter file: /tmp/deinstall2021-01-29_02-24-33AM/response/deinstall_OraGI12Home1.rsp
    CRS-4639: Could not contact Oracle High Availability Services
    CRS-4000: Command Stop failed, or completed with errors.
    CRS-4639: Could not contact Oracle High Availability Services
    CRS-4000: Command Delete failed, or completed with errors.
    CRS-4639: Could not contact Oracle High Availability Services
    CRS-4000: Command Stop failed, or completed with errors.
    2021/01/29 02:26:50 CLSRSC-337: Successfully deconfigured Oracle Restart stack



    上面的窗口回车继续往下走
    ######################### DECONFIG CLEAN OPERATION END #########################


    ####################### DECONFIG CLEAN OPERATION SUMMARY #######################
    ASM instance was de-configured successfully from the Oracle home
    Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER
    Oracle Restart was already stopped and de-configured on node "localhost"
    Oracle Restart is stopped and de-configured successfully.
    #######################################################################


    ############# ORACLE DECONFIG TOOL END #############

    Using properties file /tmp/deinstall2021-01-29_02-24-33AM/response/deinstall_2021-01-29_02-24-57-AM.rsp
    Location of logs /u01/grid/oraInventory/logs/

    ############ ORACLE DEINSTALL TOOL START ############





    ####################### DEINSTALL CHECK OPERATION SUMMARY #######################
    A log of this session will be written to: '/u01/grid/oraInventory/logs/deinstall_deconfig2021-01-29_02-24-57-AM.out'
    Any error messages from this session will be written to: '/u01/grid/oraInventory/logs/deinstall_deconfig2021-01-29_02-24-57-AM.err'

    ######################## DEINSTALL CLEAN OPERATION START ########################
    ## [START] Preparing for Deinstall ##
    Setting LOCAL_NODE to localhost
    Setting CRS_HOME to true
    Setting oracle.installer.invPtrLoc to /tmp/deinstall2021-01-29_02-24-33AM/oraInst.loc
    Setting oracle.installer.local to false

    ## [END] Preparing for Deinstall ##

    Setting the force flag to false
    Setting the force flag to cleanup the Oracle Base
    Oracle Universal Installer clean START

    Detach Oracle home '/u01/grid/grid_home/12.1.0.2' from the central inventory on the local node : Done

    Delete directory '/u01/grid/grid_home/12.1.0.2' on the local node : Done

    The Oracle Base directory '/u01/grid/grid_base' will not be removed on local node. The directory is not empty.

    Oracle Universal Installer cleanup was successful.

    Oracle Universal Installer clean END


    ## [START] Oracle install clean ##

    Clean install operation removing temporary directory '/tmp/deinstall2021-01-29_02-24-33AM' on node 'localhost'

    ## [END] Oracle install clean ##


    ######################### DEINSTALL CLEAN OPERATION END #########################


    ####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
    Successfully detached Oracle home '/u01/grid/grid_home/12.1.0.2' from the central inventory on the local node.
    Successfully deleted directory '/u01/grid/grid_home/12.1.0.2' on the local node.
    Oracle Universal Installer cleanup was successful.

    Oracle deinstall tool successfully cleaned up temporary directories.
    #######################################################################


    ############# ORACLE DEINSTALL TOOL END #############

     

    重新安装的时候会报错:
    [grid@localhost grid]$ ./runInstaller -responseFile /tmp/grid_install.rsp -silent -ignorePrereq -showProgress
    Starting Oracle Universal Installer...

    Checking Temp space: must be greater than 415 MB.   Actual 16245 MB    Passed
    Checking swap space: must be greater than 150 MB.   Actual 4088 MB    Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-01-29_02-35-18AM. Please wait ...[grid@localhost grid]$ [FATAL] [INS-30516] Please specify unique disk groups.
       CAUSE: Installer has detected that the diskgroup name provided already exists on the system.
       ACTION: Specify different disk group.

    这里提示原来的磁盘组已经存在
    解决办法,将所有的磁盘清掉,不能只清理一个
    dd if=/dev/zero count=10 bs=512 of=/dev/asm-diskb
    dd if=/dev/zero count=10 bs=512 of=/dev/asm-diskc
    dd if=/dev/zero count=10 bs=512 of=/dev/asm-diskd

    以上操作完成后

    grid用户的oracle_home和oracle_base目录也一起删除掉了,重新安装需要重新创建.

     

  • 相关阅读:
    php lesson1
    微信红包算法java版本
    spring注解
    Java时间戳
    集成环信 服务器端遇见的坑:关于Request body is invalid.解决
    环信java后台发送消息时提示msg 应该为JSONObject 的坑
    jboss设置允许外网访问
    redis实现单点登录
    qq在线客服
    图片纯css控制宽高比
  • 原文地址:https://www.cnblogs.com/hxlasky/p/14345231.html
Copyright © 2011-2022 走看看