Manually Remove an Old Grid Home After Upgrading/Patching to a Higher Grid Home on ODA
1. Check the components and their versions
[root@testlinux ~]# odacli describe-component
System Version
—————
19.20.0.0.0
System node Name
—————
testlinux
Local System Version
—————
19.20.0.0.0
Component Installed Version Available Version
—————————————- ——————– ——————–
OAK
19.20.0.0.0 up-to-date
GI
19.20.0.0.230718 up-to-date
DB {
[OraDB19000_home5 [db1,db2]]19.20.0.0.230718 up-to-date
[OraDB19000_home6 [db3]]19.20.0.0.230718 up-to-date
}
DCSCONTROLLER
19.20.0.0.0 up-to-date
DCSCLI
19.20.0.0.0 up-to-date
DCSAGENT
19.20.0.0.0 up-to-date
DCSADMIN
19.20.0.0.0 up-to-date
OS
7.9 up-to-date
ILOM
5.1.1.23.r151750 up-to-date
BIOS
52100600 up-to-date
LOCAL CONTROLLER FIRMWARE {
[c3]214.2.271.9 up-to-date
[c4]80000681 up-to-date
}
SHARED CONTROLLER FIRMWARE
VDV1RL06 up-to-date
LOCAL DISK FIRMWARE
XC311132 up-to-date
SHARED DISK FIRMWARE
XC311132 up-to-date
HMP
2.4.9.0.601 up-to-date
2. Check if all the processes are running from the new upgraded GRID HOME and no process belongs to the OLD GRID HOMES
[root@testlinux ~]# ps -ef|grep /u01/app
root 3999 1 0 Feb15 ? 01:04:44 /u01/app/19.20.0.0/grid/bin/ohasd.bin reboot
root 4149 1 0 Feb15 ? 00:44:25 /u01/app/19.20.0.0/grid/bin/orarootagent.bin
grid 4279 1 0 Feb15 ? 01:20:08 /u01/app/19.20.0.0/grid/bin/oraagent.bin
grid 4312 1 0 Feb15 ? 00:19:31 /u01/app/19.20.0.0/grid/bin/mdnsd.bin
grid 4314 1 0 Feb15 ? 00:47:25 /u01/app/19.20.0.0/grid/bin/evmd.bin
grid 4537 1 0 Feb15 ? 00:23:10 /u01/app/19.20.0.0/grid/bin/gpnpd.bin
grid 4602 4314 0 Feb15 ? 00:19:33 /u01/app/19.20.0.0/grid/bin/evmlogger.bin -o /u01/app/19.20.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.info -l /u01/app/19.20.0.0/grid/log/[HOSTNAME]/evmd/evmlogger.log
grid 4772 1 0 Feb15 ? 00:50:50 /u01/app/19.20.0.0/grid/bin/gipcd.bin
root 5488 1 0 Feb15 ? 00:29:10 /u01/app/19.20.0.0/grid/bin/cssdmonitor
root 5513 1 0 Feb15 ? 00:30:09 /u01/app/19.20.0.0/grid/bin/cssdagent
root 5515 1 2 Feb15 ? 18:54:36 /u01/app/19.20.0.0/grid/bin/osysmond.bin
grid 5598 1 0 Feb15 ? 01:47:14 /u01/app/19.20.0.0/grid/bin/ocssd.bin
root 6261 1 0 Feb15 ? 00:53:14 /u01/app/19.20.0.0/grid/bin/octssd.bin reboot
root 7153 1 0 Feb15 ? 01:55:40 /u01/app/19.20.0.0/grid/bin/crsd.bin reboot
root 7288 1 0 Feb15 ? 02:56:25 /u01/app/19.20.0.0/grid/bin/orarootagent.bin
grid 7301 1 0 Feb15 ? 02:39:46 /u01/app/19.20.0.0/grid/bin/oraagent.bin
root 7511 1 0 Feb15 ? 01:23:29 /u01/app/19.20.0.0/grid/bin/ologgerd -M
grid 7555 1 0 Feb15 ? 00:24:29 /u01/app/19.20.0.0/grid/bin/scriptagent.bin
grid 7564 1 0 Feb15 ? 00:34:12 /u01/app/19.20.0.0/grid/jdk/bin/java -Xms128M -Xmx384M -classpath /u01/app/19.20.0.0/grid/jdk/jre/lib/rt.jar:/u01/app/19.20.0.0/grid/jdk/jre/lib/i18n.jar:/u01/app/19.20.0.0/grid/jlib/jagent.jar:/u01/app/19.20.0.0/grid/jlib/srvm.jar: -Dora.jagent.conf=conf/orajagent.conf oracle.jagent.core.OraJavaAgentDriver
grid 7566 1 0 Feb15 ? 00:07:06 /u01/app/19.20.0.0/grid/bin/tnslsnr ASMNET1LSNR_ASM -no_crs_notify -inherit
grid 7580 1 0 Feb15 ? 00:03:24 /u01/app/19.20.0.0/grid/bin/tnslsnr LISTENER -no_crs_notify -inherit
grid 7632 1 0 Feb15 ? 00:12:09 /u01/app/19.20.0.0/grid/jdk/bin/java -server -Xms128M -Xmx512M -Djava.awt.headless=true -Ddisable.checkForUpdate=true
3. Number of old grid homes that needs to be removed
[root@testlinux ~]# cd /u01/app/
[root@testlinux app]# ls
19.0.0.0 19.14.0.0 19.18.0.0 19.20.0.0 grid odaorabase odaorabase0 odaorahome oracle oraInventory
4. Go to the GRID HOME that needs to be removed
[root@testlinux app]# cd 19.0.0.0/
[root@testlinux 19.0.0.0]# ls
grid
[root@testlinux 19.0.0.0]# cd grid/
5. Give full GRID owner rights to the GRID HOME as it also contains files that belongs to “root”[root@testlinux grid]# chown -R grid:oinstall /u01/app/19.0.0.0/grid/
[root@testlinux grid]# chmod -R 775 /u01/app/19.0.0.0/grid/
6. Switch to the GRID User
[root@testlinux grid]# su – gridLast login: Mon Mar 18 10:29:55 +04 2024
[grid@testlinux ~]$ env | grep ORACLE
ORACLE_SID=+ASM1
ORACLE_BASE=/u01/app/grid
ORACLE_HOME=/u01/app/19.20.0.0/grid
7. Go to desinstall folder and dry run the deinstall command
[grid@testlinux ~]$ export ORACLE_HOME=/u01/app/19.0.0.0/grid
[grid@testlinux ~]$ cd $ORACLE_HOME
[grid@testlinux grid]$ pwd
/u01/app/19.0.0.0/grid[grid@testlinux grid]$ cd deinstall/
[grid@testlinux deinstall]$ ./deinstall -checkonly
For complete clean up of Oracle Clusterware software from the system, deinstall the following old clusterware home(s). Refer to Clusterware Install guide of respective old release for details.
/u01/app/19.14.0.0/grid on nodes : testlinux
/u01/app/19.18.0.0/grid on nodes : testlinux
Review the permissions and contents of ‘/u01/app/grid’ on nodes(s) ‘testlinux’.
If there are no Oracle home(s) associated with ‘/u01/app/grid’, manually delete ‘/u01/app/grid’ and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
8. If the above command completes successfully, please run the deinstall of the GRID HOME
[grid@testlinux deinstall]$ ./deinstall
Checking for required files and bootstrapping …
Please wait …
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
For complete clean up of Oracle Clusterware software from the system, deinstall the following old clusterware home(s). Refer to Clusterware Install guide of respective old release for details.
/u01/app/19.18.0.0/grid on nodes : testlinux
Review the permissions and contents of ‘/u01/app/grid’ on nodes(s) ‘testlinux’.
If there are no Oracle home(s) associated with ‘/u01/app/grid’, manually delete ‘/u01/app/grid’ and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
9. Go ahead and remove the empty directory of the GRID Home
Β
ODA Administrations: How to Manually Remove an Old Grid Home After Upgrading/Patching to a Higher Grid Home on ODA (Doc ID 2537389.1)
Β