In this article , we will explain the steps required for deinstalling 2 node grid infrastructure.
STEPS OVERVIEW:
- Deinstall oracle database homes if any
- Deinstall grid infrastructure
- Manually delete grid_home and oracle_home if anything is reported at 2nd stage.
NOTE – > This deinstall process, will drop the database. So if your data is critical make sure you to take a full backup of the database before proceeding with the deinstallation.
However if your database size is too big and you are unable to take backup, Then there is an method , where you can deinstall and reinstall the grid infrastructure without losing your data.
DEMO:
NODE LIST – DBHOST1, DBHOST2G
GRID VERSION – 19C
1.Deinstall oracle database homes
Check if any database is running in the server. If database is running or oracle binary is there, then we need to clean them before deinstalling grid.
[oracle@DBHOST1 deinstall]$ crsctl status resource -w "TYPE = ora.database.type" -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.IRMPROD.db
1 ONLINE ONLINE DBHOST1 Open,HOME=/oracle/ap
p/oracle/product/19.
3.0/dbhome_1,STABLE
2 ONLINE ONLINE DBHOST2 Open,HOME=/oracle/ap
p/oracle/product/19.
3.0/dbhome_1,STABLE
--------------------------------------------------------------------------------
Run deinstall utility from ORACLE_HOME. This will deinstall the oracle database home from both the nodes.
[oracle@DBHOST1 deinstall]$ cd $ORACLE_HOME/deinstall
[oracle@DBHOST1 deinstall]$ pwd
/oracle/app/oracle/product/19.3.0/dbhome_1/deinstall
[oracle@DBHOST1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /crsapp/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /oracle/app/oracle/product/19.3.0/dbhome_1
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /oracle/app/oracle
Checking for existence of central inventory location /crsapp/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /crsapp/app/oracle/product/19c
The following nodes are part of this cluster: DBHOST1,DBHOST2
Active Remote Nodes are DBHOST2
Checking for sufficient temp space availability on node(s) : 'DBHOST1,DBHOST2'
## [END] Install check configuration ##
Network Configuration check config START
Network de-configuration trace file location: /crsapp/app/oraInventory/logs/netdc_check2021-06-20_05-13-15PM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /crsapp/app/oraInventory/logs/databasedc_check2021-06-20_05-13-15PM.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 [IRMPROD]: IRMPROD
###### For Database 'IRMPROD' ######
RAC Database
The nodes on which this database has instances: [DBHOST1, DBHOST2]
The instance names: [IRMPROD1, IRMPROD2]
The local instance name on node: IRMPROD1
The diagnostic destination location of the database: /oracle/app/oracle/diag/rdbms/IRMPROD
Storage type used by the Database: ASM
The details of database(s) IRMPROD have been discovered automatically. Do you still want to modify the details of IRMPROD database(s)? [n]: n
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /crsapp/app/oracle/product/19c
The following nodes are part of this cluster: DBHOST1,DBHOST2
Active Remote Nodes are DBHOST2
The cluster node(s) on which the Oracle home deinstallation will be performed are:DBHOST1,DBHOST2
Oracle Home selected for deinstall is: /oracle/app/oracle/product/19.3.0/dbhome_1
Inventory Location where the Oracle home registered is: /crsapp/app/oraInventory
The following databases were selected for de-configuration. The databases will be deleted and will not be useful upon de-configuration : IRMPROD
Database unique name : IRMPROD
Storage used : ASM
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/crsapp/app/oraInventory/logs/deinstall_deconfig2021-06-20_05-13-01-PM.out'
Any error messages from this session will be written to: '/crsapp/app/oraInventory/logs/deinstall_deconfig2021-06-20_05-13-01-PM.err'
######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /crsapp/app/oraInventory/logs/databasedc_clean2021-06-20_05-13-15PM.log
Database Clean Configuration START IRMPROD
This operation may take few minutes.
Database Clean Configuration END IRMPROD
Network Configuration clean config START
Network de-configuration trace file location: /crsapp/app/oraInventory/logs/netdc_clean2021-06-20_05-13-15PM.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 #######################
Successfully de-configured the following database instances : IRMPROD
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2021-06-20_05-12-54PM/response/deinstall_2021-06-20_05-13-01-PM.rsp
Location of logs /crsapp/app/oraInventory/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/crsapp/app/oraInventory/logs/deinstall_deconfig2021-06-20_05-13-01-PM.out'
Any error messages from this session will be written to: '/crsapp/app/oraInventory/logs/deinstall_deconfig2021-06-20_05-13-01-PM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to DBHOST1
Setting REMOTE_NODES to DBHOST2
Setting CLUSTER_NODES to DBHOST1,DBHOST2
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2021-06-20_05-12-54PM/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 '/oracle/app/oracle/product/19.3.0/dbhome_1' from the central inventory on the local node : Done
Delete directory '/oracle/app/oracle/product/19.3.0/dbhome_1' on the local node : Done
Delete directory '/oracle/app/oracle' on the local node : Done
Detach Oracle home '/oracle/app/oracle/product/19.3.0/dbhome_1' from the central inventory on the remote nodes 'DBHOST2' : Done
Delete directory '/oracle/app/oracle/product/19.3.0/dbhome_1' on the remote nodes 'DBHOST2' : Done
Delete directory '/oracle/app/oracle' on the remote nodes 'DBHOST2' : Done
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2021-06-20_05-12-54PM' on node 'DBHOST2'
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/oracle/app/oracle/product/19.3.0/dbhome_1' from the central inventory on the local node.
Successfully deleted directory '/oracle/app/oracle/product/19.3.0/dbhome_1' on the local node.
Successfully deleted directory '/oracle/app/oracle' on the local node.
Successfully detached Oracle home '/oracle/app/oracle/product/19.3.0/dbhome_1' from the central inventory on the remote nodes 'DBHOST2'.
Successfully deleted directory '/oracle/app/oracle/product/19.3.0/dbhome_1' on the remote nodes 'DBHOST2'.
Successfully deleted directory '/oracle/app/oracle' on the remote nodes 'DBHOST2'.
Oracle Universal Installer cleanup was successful.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
2.Deinstall oracle grid infrastructure:( Run from node1)
This will deinstall the grid from both the nodes .
[oracle@DBHOST1 deinstall] cd $GRID_HOME/deinstall
[oracle@DBHOST1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2021-06-20_05-21-54PM/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /crsapp/app/oracle/product/19c
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /crsapp/app/oracle_base
Checking for existence of central inventory location /crsapp/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /crsapp/app/oracle/product/19c
The following nodes are part of this cluster: DBHOST1,DBHOST2
Active Remote Nodes are DBHOST2
Checking for sufficient temp space availability on node(s) : 'DBHOST1,DBHOST2'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2021-06-20_05-21-54PM/logs//crsdc_2021-06-20_05-22-10-PM.log
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2021-06-20_05-21-54PM/logs/netdc_check2021-06-20_05-22-11PM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:LISTENER
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2021-06-20_05-21-54PM/logs/asmcadc_check2021-06-20_05-22-11PM.log
Automatic Storage Management (ASM) instance is detected in this Oracle home /crsapp/app/oracle/product/19c.
ASM Diagnostic Destination : /crsapp/app/oracle_base
ASM Diskgroups : +ARCH,+DATA,+MGMT,+OCRVD,+REDOA,+REDOB
ASM diskstring : /dev/oracleasm/disks/*
Diskgroups will be dropped
De-configuring ASM will drop all the diskgroups and their contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).
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]: n
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2021-06-20_05-21-54PM/logs/databasedc_check2021-06-20_05-22-11PM.log
Oracle Grid Management database was found in this Grid Infrastructure home
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /crsapp/app/oracle/product/19c
The following nodes are part of this cluster: DBHOST1,DBHOST2
Active Remote Nodes are DBHOST2
The cluster node(s) on which the Oracle home deinstallation will be performed are:DBHOST1,DBHOST2
Oracle Home selected for deinstall is: /crsapp/app/oracle/product/19c
Inventory Location where the Oracle home registered is: /crsapp/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Oracle Grid Management database was found in this Grid Infrastructure home
Oracle Grid Management database will be de-configured from this Grid Infrastructure home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2021-06-20_05-21-54PM/logs/deinstall_deconfig2021-06-20_05-22-01-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2021-06-20_05-21-54PM/logs/deinstall_deconfig2021-06-20_05-22-01-PM.err'
######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2021-06-20_05-21-54PM/logs/databasedc_clean2021-06-20_05-22-11PM.log
This operation may take few minutes.
ASM de-configuration trace file location: /tmp/deinstall2021-06-20_05-21-54PM/logs/asmcadc_clean2021-06-20_05-22-11PM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2021-06-20_05-21-54PM/logs/netdc_clean2021-06-20_05-22-11PM.log
De-configuring RAC listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Unregistering listener: LISTENER
Listener unregistered successfully.
Listener 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
---------------------------------------->
The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote nodes.
Run the following command as the root user or the administrator on node "DBHOST2".
/crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp"
Run the following command as the root user or the administrator on node "DBHOST1".
/crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
At this stage, it will ask to run one script from both nodes. Open a new terminal and first you need to run it on node2(remote node) . And its execution is completed, open a new terminal for node1 ( local node) and Run it there.
Root.sh script on node 2:
[root@DBHOST2 ~]# /crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp"
Using configuration parameter file: /tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp
The log of current session can be found at:
/tmp/deinstall2021-06-20_05-21-54PM/logs/crsdeconfig_DBHOST2_2021-06-20_05-28-03PM.log
Redirecting to /bin/systemctl restart rsyslog.service
2021/06/20 17:32:32 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.
2021/06/20 17:32:32 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.
2021/06/20 17:32:34 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
[root@DBHOST2 ~]#
Root.sh script on node 1:
[root@DBHOST1 ~]# /crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp" -lastnode
Using configuration parameter file: /tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp
The log of current session can be found at:
/tmp/deinstall2021-06-20_05-21-54PM/logs/crsdeconfig_DBHOST1_2021-06-20_05-33-52PM.log
2021/06/20 17:33:54 CLSRSC-332: CRS resources for listeners are still configured
PRCN-2044 : No listener exists
2021/06/20 17:33:55 CLSRSC-180: An error occurred while executing the command '/crsapp/app/oracle/product/19c/bin/srvctl stop listener -f'
2021/06/20 17:33:55 CLSRSC-424: Failed to stop database listener, but continuing to deconfigure with force option
CRS-2673: Attempting to stop 'ora.crsd' on 'DBHOST1'
CRS-2677: Stop of 'ora.crsd' on 'DBHOST1' succeeded
ASM de-configuration trace file location: /tmp/deinstall2021-06-20_05-21-54PM/logs/asmcadc_clean2021-06-20_05-40-15PM.log
ASM Clean Configuration START
ASM Clean Configuration END
ASM instance deleted successfully. Check /tmp/deinstall2021-06-20_05-21-54PM/logs/asmcadc_clean2021-06-20_05-40-15PM.log for details.
Redirecting to /bin/systemctl restart rsyslog.service
2021/06/20 17:42:09 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.
2021/06/20 17:42:09 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.
2021/06/20 17:42:13 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
2021/06/20 17:42:13 CLSRSC-559: Ensure that the GPnP profile data under the 'gpnp' directory in /crsapp/app/oracle/product/19c is deleted on each node before using the software in the current Grid Infrastructure home for reconfiguration.
[root@DBHOST1 ~]#
Once script execution is completed. press enter on the 1st screen, where it will resume the deinstall process.
----------------------------------------
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured Oracle Grid Management database
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER
Oracle Clusterware is stopped and successfully de-configured on node "DBHOST2"
Oracle Clusterware is stopped and successfully de-configured on node "DBHOST1"
Oracle Clusterware is stopped and de-configured successfully.
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_2021-06-20_05-22-01-PM.rsp
Location of logs /tmp/deinstall2021-06-20_05-21-54PM/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2021-06-20_05-21-54PM/logs/deinstall_deconfig2021-06-20_05-22-01-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2021-06-20_05-21-54PM/logs/deinstall_deconfig2021-06-20_05-22-01-PM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to DBHOST1
Setting REMOTE_NODES to DBHOST2
Setting CLUSTER_NODES to DBHOST1,DBHOST2
Setting CRS_HOME to true
Setting oracle.installer.invPtrLoc to /tmp/deinstall2021-06-20_05-21-54PM/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 '/crsapp/app/oracle/product/19c' from the central inventory on the local node : Done
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/css/fonts'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/css/rat'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/css/codeMirror'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/css/site'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/css/images'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/css'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/jet/v6.0.0'. Either user has no permission to delete or it is in use.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa/jet'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps/tfa'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat/webapps'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home/tomcat'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1/tfa_home'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa/DBHOST1'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c/tfa'. The directory is not empty.
Failed to delete the directory '/crsapp/app/oracle/product/19c'. The directory is not empty.
Delete directory '/crsapp/app/oracle/product/19c' on the local node : Failed <<<<
Delete directory '/crsapp/app/oraInventory' on the local node : Done
Delete directory '/crsapp/app/oraInventory' on the remote nodes 'DBHOST2' : Done
Delete directory '/crsapp/app/oracle_base' on the remote nodes 'DBHOST2' : Failed <<<<
The directory '/crsapp/app/oracle_base' could not be deleted on the nodes 'DBHOST2'.
Oracle Universal Installer cleanup completed with errors.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2021-06-20_05-21-54PM' on node 'DBHOST2'
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/crsapp/app/oracle/product/19c' from the central inventory on the local node.
Failed to delete directory '/crsapp/app/oracle/product/19c' on the local node due to error : Either user has no permission to delete or file is in use.
Review the permissions and manually delete '/crsapp/app/oracle/product/19c' on local node.
Successfully deleted directory '/crsapp/app/oraInventory' on the local node.
Successfully detached Oracle home '/crsapp/app/oracle/product/19c' from the central inventory on the remote nodes 'DBHOST2'.
Failed to delete directory '/crsapp/app/oracle/product/19c' on the remote nodes 'DBHOST2' due to error : Could not remove listed directories based on '/tmp/OraInstall2021-06-20_05-43-38PM/installRemoveDirFile.lst' from nodes 'DBHOST2'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2021-06-20_05-43-38PM/installRemoveDirFile.lst" to any of the given nodes "DBHOST2 ".
Error on node DBHOST2:/bin/rm: cannot remove ‘/crsapp/app/oracle/product/19c/tfa/DBHOST2/tfa_home/tomcat/webapps/tfa/jet/v6.0.0/js’: Permission denied
/bin/rm: cannot remove ‘/crsapp/app/oracle/product/19c/tfa/DBHOST2/tfa_home/tomcat/webapps/tfa/jet/v6.0.0/DefinitelyTyped’: Permission denied
/bin/rm: cannot remove ‘/crsapp/app/oracle/product/19c/tfa/DBHOST2/tfa_home/tomcat/webapps/tfa/jet/v6.0.0/css’: Permission denied
/bin/rm: cannot remove ‘/crsapp/app/oracle/product/19c/tfa/DBHOST2/tfa_home/tomcat/webapps/tfa/jet/v6.0.0/pcss’: Permission denied
/bin/rm: cannot remove ‘/crsapp/app/oracle/product/19c/tfa/DBHOST2/tfa_home/tomcat/webapps/tfa/jet/v6.0.0/metadata’: Permission denied
Oracle Universal Installer cleanup completed with errors.
Review the permissions and manually delete '/crsapp/app/oracle_base' on node(s) DBHOST2.
Run 'rm -r /etc/oraInst.loc' as root on node(s) 'DBHOST1,DBHOST2' at the end of the session.
Run 'rm -r /opt/ORCLfmap' as root on node(s) 'DBHOST1,DBHOST2' at the end of the session.
Review the permissions and contents of '/crsapp/app/oracle_base' on nodes(s) 'DBHOST1,DBHOST2'.
If there are no Oracle home(s) associated with '/crsapp/app/oracle_base', manually delete '/crsapp/app/oracle_base' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
3.Delete oracle binary files if any
In the above step output, it shows few directory deletion failed. So we can remove them manually.
rm -rf /crsapp/app/oracle_base
rm -rf /crsapp/app/oracle/product/19c
With this our deinstall of grid infrastructure on both nodes completed.
SEE ALSO:
- Useful Srvctl Commands
- Useful CRSCTL Commands
- Useful Gather Statistics Commands In Oracle
- Useful ADRCI Commands In Oracle
- Useful DGMGRL Commands In Oracle Dataguard
- Useful database monitoring queries
- Useful Flashback Related Commands
- Useful scheduler job Related Commands
- Useful Oracle Auditing Related Commands
- Useful RMAN Commands
- Useful TFACTL Commands
- Useful OPATCH Commands
- Useful Asmcmd Commands