測試環境按照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