Deinstallation of Grid after upgrade on ODA machine
How to Manually Remove an Old Grid Home After Upgrading/Patching to a Higher Grid Home on ODA
Step 1: Verify the size of the Grid homes
[root@ app]# du -sh * 13G 19.16.0.0 — Old Grid Infra 12G 19.18.0.0 — Current Grid Infra 12G grid 0 odaorabase 4.7G odaorabase0 44G odaorahome 118M oraInventory |
Step 2: Take backup of Grid home
cd /u01/app
cp -RP 19.16.0.0 /u05/app/oracle/1916_grid_backup/ [root@ app]# cd /u05/app/oracle/1916_grid_backup/ |
Step 3: deinstall -checkonly
[root@ app]# ls -ld 19.16.0.0/ drwxr-xr-x 3 root oinstall 4096 Dec 7 2022 19.16.0.0/ [root@ app]# chown -R grid:oinstall 19.16.0.0/ [root@ app]# ls -ld 19.16.0.0/ drwxr-xr-x 3 grid oinstall 4096 Dec 7 2022 19.16.0.0/ [root@ app]# chmod -R 775 19.16.0.0/ [root@ app]# ls -ld 19.16.0.0/ drwxrwxr-x 3 grid oinstall 4096 Dec 7 2022 19.16.0.0/ [root@ app]#deinstall -checkonlyConnect as grid[root@ app]# sudo su – grid Last login: Sat Mar 23 02:25:05 EDT 2024 on pts/2 [grid@ ~]$ export ORACLE_HOME=/u01/app/19.16.0.0/grid ######################### DECONFIG CHECK OPERATION START ######################### ## [END] Install check configuration ## Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2024-03-23_02-30-28AM.log ASM was not detected in the Oracle Home Database Check Configuration START Oracle Grid Management database was not found in this Grid Infrastructure home ######################### DECONFIG CHECK OPERATION END ######################### ####################### DECONFIG CHECK OPERATION SUMMARY ####################### ############# ORACLE DECONFIG TOOL END ############# |
Step 5: Actual Deinstallation
[grid@ deinstall]$ pwd
/u01/app/19.16.0.0/grid/deinstall Checking for required files and bootstrapping … Location of logs /u01/app/oraInventory/logs/ ######################### DECONFIG CHECK OPERATION START ######################### Checking for existence of the Oracle home location /u01/app/19.16.0.0/grid ## [END] Install check configuration ## Traces log file: /u01/app/oraInventory/logs//crsdc_2024-03-23_02-31-32-AM.log Network Configuration check config START Asm Check Configuration START Database Check Configuration START ######################### DECONFIG CHECK OPERATION END ######################### ####################### DECONFIG CHECK OPERATION SUMMARY ####################### Do you want to continue (y – yes, n – no)? [n]: y A log of this session will be written to: ‘/u01/app/oraInventory/logs/deinstall_deconfig2024-03-23_02-31-23-AM.out’ ######################## DECONFIG CLEAN OPERATION START ######################## De-configuring Naming Methods configuration file… De-configuring Local Net Service Names configuration file… De-configuring backup files… The network configuration has been cleaned up successfully. ######################### DECONFIG CLEAN OPERATION END ######################### ####################### DECONFIG CLEAN OPERATION SUMMARY ####################### There is no Oracle Grid Management database to de-configure in this Grid Infrastructure home ############# ORACLE DECONFIG TOOL END ############# Using properties file /tmp/deinstall2024-03-23_02-31-19AM/response/deinstall_2024-03-23_02-31-23-AM.rsp Location of logs /u01/app/oraInventory/logs/ ############ ORACLE DEINSTALL TOOL START ############ ####################### DEINSTALL CHECK OPERATION SUMMARY ####################### A log of this session will be written to: ‘/u01/app/oraInventory/logs/deinstall_deconfig2024-03-23_02-31-23-AM.out’ ######################## DEINSTALL CLEAN OPERATION START ######################## ## [START] Preparing for Deinstall ## Setting the force flag to false ## [START] Oracle install clean ## ######################### DEINSTALL CLEAN OPERATION END ######################### Review the permissions and contents of ‘/u01/app/grid’ on nodes(s) ”. ############# ORACLE DEINSTALL TOOL END ############# |
Step 6: Verify Deinstallation
[grid@ app]$ du 19.16.0.0/ 4 19.16.0.0/ [grid@ app]$ cd 19.16.0.0/ [grid@ app]$ exit logoutConnect as root[root@ app]# rmdir /u01/app/19.16.0.0 [root@ app]# [root@ app]# ps -ef|grep pmon grid 8169 1 0 2023 ? 00:07:20 asm_pmon_+ASM1 grid 9862 1 0 2023 ? 00:07:06 apx_pmon_+APX1 oracle 17359 1 0 2023 ? 00:11:38 ora_pmon_ORCLP root 61101 30746 0 02:34 pts/2 00:00:00 grep –color=auto pmon [root@ app]# |
Reference: (Doc ID 2537389.1)
See also
ODA Administrations: How to Manually Remove an Old Grid Home After Upgrading/Patching to a Higher Grid Home on ODA (Doc ID 2537389.1)