测试环境按照19c,由于内存资源导致dbca无法建库,并且虚拟机问题导致crs无法启动,因此需要删除RAC重新安装。
现在需要删除GI,Oracle 软件
一、删除Oracle软件
1.卸载DB--本次没有数据库,无需卸载 2.卸载Oracle软件, 其实卸载DB与Oracle软件在一起,关注 oracle$ [oracle@d1:/u02/app/oracle/product/19.0.0/db_1/deinstall]$ ./deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /u01/oracle/oraInventory/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]:n --是否主节点,本次删除的节点1就是主节点! Checking for existence of the Oracle home location /u02/app/oracle/product/19.0.0/db_1 Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database Oracle Base selected for deinstall is: /u02/app/oracle Checking for existence of central inventory location /u01/oracle/oraInventory Checking for existence of the Oracle Grid Infrastructure home /u01/app/19.0.0/grid The following nodes are part of this cluster: d1 Checking for sufficient temp space availability on node(s) : 'd1' ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /u01/oracle/oraInventory/logs/netdc_check2020-04-01_01-56-40PM.log Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /u01/oracle/oraInventory/logs/databasedc_check2020-04-01_01-56-40PM.log Use comma as separator when specifying list of values as input Specify the list of database names that are configured in this Oracle home []: --数据库名称,本次没有DB Database Check Configuration END ######################### DECONFIG CHECK OPERATION END ######################### ####################### DECONFIG CHECK OPERATION SUMMARY ####################### Oracle Grid Infrastructure Home is: /u01/app/19.0.0/grid The following nodes are part of this cluster: d1 WARNING ! Deinstall utility has detected that Oracle Clusterware processes are not running on the local node, hence entries of
Real Application Cluster Databases that are being deinstalled will not be removed from Oracle Cluster Registry (OCR).
For complete deinstallation of Real Application Cluster Databases, it is recommended to run the deinstall utility with Oracle Clusterware running. The cluster node(s) on which the Oracle home deinstallation will be performed are:d1 Oracle Home selected for deinstall is: /u02/app/oracle/product/19.0.0/db_1 Inventory Location where the Oracle home registered is: /u01/oracle/oraInventory Do you want to continue (y - yes, n - no)? [n]: y --是否继续 A log of this session will be written to: '/u01/oracle/oraInventory/logs/deinstall_deconfig2020-04-01_01-54-25-PM.out' Any error messages from this session will be written to: '/u01/oracle/oraInventory/logs/deinstall_deconfig2020-04-01_01-54-25-PM.err' ######################## DECONFIG CLEAN OPERATION START ######################## Database de-configuration trace file location: /u01/oracle/oraInventory/logs/databasedc_clean2020-04-01_01-56-40PM.log Network Configuration clean config START Network de-configuration trace file location: /u01/oracle/oraInventory/logs/netdc_clean2020-04-01_01-56-40PM.log De-configuring Listener configuration file on all nodes... Listener configuration file de-configured successfully. 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 ######################### DECONFIG CLEAN OPERATION END ######################### ####################### DECONFIG CLEAN OPERATION SUMMARY ####################### ####################################################################### ############# ORACLE DECONFIG TOOL END ############# Using properties file /tmp/deinstall2020-04-01_01-53-59PM/response/deinstall_2020-04-01_01-54-25-PM.rsp Location of logs /u01/oracle/oraInventory/logs/ ############ ORACLE DEINSTALL TOOL START ############ ####################### DEINSTALL CHECK OPERATION SUMMARY ####################### A log of this session will be written to: '/u01/oracle/oraInventory/logs/deinstall_deconfig2020-04-01_01-54-25-PM.out' Any error messages from this session will be written to: '/u01/oracle/oraInventory/logs/deinstall_deconfig2020-04-01_01-54-25-PM.err' ######################## DEINSTALL CLEAN OPERATION START ######################## ## [START] Preparing for Deinstall ## Setting LOCAL_NODE to d1 Setting CLUSTER_NODES to d1 Setting CRS_HOME to false Setting oracle.installer.invPtrLoc to /tmp/deinstall2020-04-01_01-53-59PM/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 '/u02/app/oracle/product/19.0.0/db_1' from the central inventory on the local node : Done Delete directory '/u02/app/oracle/product/19.0.0/db_1' on the local node : Done Delete directory '/u02/app/oracle' on the local node : Done Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END ## [START] Oracle install clean ## ## [END] Oracle install clean ## ######################### DEINSTALL CLEAN OPERATION END ######################### ####################### DEINSTALL CLEAN OPERATION SUMMARY ####################### Successfully detached Oracle home '/u02/app/oracle/product/19.0.0/db_1' from the central inventory on the local node. Successfully deleted directory '/u02/app/oracle/product/19.0.0/db_1' on the local node. Successfully deleted directory '/u02/app/oracle' on the local node. Oracle Universal Installer cleanup was successful. Oracle deinstall tool successfully cleaned up temporary directories. ####################################################################### ############# ORACLE DEINSTALL TOOL END ############# node2 oracle$ [oracle@d2:/u02/app/oracle/product/19.0.0/db_1/deinstall]$ ./deinstall Specify the list of database names that are configured in this Oracle home []: Do you want to continue (y - yes, n - no)? [n]: y
二、删除GI软件
CRS! node2 --一般情况是在节点1主节点执行,但是当时在节点2执行,删除GI也没啥问题。 [grid@d2:/u01/app/19.0.0/grid/deinstall]$ ./deinstall 最后输出内容,在远程节点执行如下内容! /u01/app/19.0.0/grid/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2020-04-01_02-20-13PM/response/deinstall_OraGI19Home1.rsp" 最后删除目录! 根据提示删除若干目录下的,可以进行RAC重建,经过测试操作,重建RAC无异常! [root@d1 u01]# rm -rf app/ #cd /etc/ [root@d1 etc]# rm -rf oraInst.loc [root@d1 etc]# rm -rf oratab [root@d1 etc]# rm -rf oracle # cd /etc/init.d/ rm -f /etc/init.d/init.cssd rm -f /etc/init.d/init.crs rm -f /etc/init.d/init.crsd rm -f /etc/init.d/init.evmd rm -rf /etc/init.d/ohasd rm -rf /etc/init.d/init.ohasd # rm -rf /var/tmp/.oracle rm -rf /opt/ORCLfmap
最后 dd if 情况asm磁盘文件头部
dd if=/dev/zero of=/dev/sdb bs=1024 count=5000
dd if=/dev/zero of=/dev/sdc bs=1024 count=5000