DBA Hub

📋Steps in this guide1/6

How to deinstall oracle 19c grid infrastructure - DBACLASS DBACLASS

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 […]

oracle clusteringintermediate
by OracleDba
21 views
1

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. LINK – deinstall and reinstall grid without losing data 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. LINK – deinstall and reinstall grid without losing data
2

DEMO:

NODE LIST – DBHOST1, DBHOST2G GRID VERSION  – 19C
3

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. Run deinstall utility from ORACLE_HOME. This will deinstall the oracle database home from both the nodes.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[oracle@DBHOST1 deinstall]$ <span style="color: #ff0000;"><strong>crsctl status resource -w "TYPE = ora.database.type" -t</strong></span>
--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------

[oracle@DBHOST1 deinstall]$ <span style="color: #ff0000;"><strong>cd $ORACLE_HOME/deinstall</strong></span>

[oracle@DBHOST1 deinstall]$ pwd
/oracle/app/oracle/product/19.3.0/dbhome_1/deinstall
[oracle@DBHOST1 deinstall]$ <span style="color: #ff0000;"><strong>./deinstall</strong></span>
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]: <span style="color: #ff0000;"><strong>IRMPROD</strong></span>

###### 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]: <span style="color: #ff0000;"><strong>n
</strong></span>
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]: <span style="color: #ff0000;"><strong>y</strong></span>
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 #############
4

2.Deinstall oracle grid infrastructure:( Run from node1)

This will deinstall the grid from both the nodes . 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.sh script on node 1: Once script execution is completed. press enter on the 1st screen, where it will resume the deinstall process.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
[oracle@DBHOST1 deinstall] <span style="color: #ff0000;"><strong>cd $GRID_HOME/deinstall</strong></span>
[oracle@DBHOST1 deinstall]$ <span style="color: #ff0000;"><strong>./deinstall</strong></span>
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]: <span style="color: #ff0000;"><strong>y</strong></span>
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


---------------------------------------->

<strong>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.
</strong>
<strong>Run the following command as the root user or the administrator <span style="color: #ff0000;">on node "DBHOST2"</span>.
</strong>
<span style="color: #ff0000;"><strong>/crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp"
</strong></span>
<strong>Run the following command as the root user or the administrator <span style="color: #ff0000;">on node "DBHOST1"</span>.
</strong>
<span style="color: #ff0000;"><strong>/crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp" -lastnode
</strong></span>
<strong>Press Enter after you finish running the above commands
</strong>
<----------------------------------------

[root@DBHOST2 ~]# <strong><span style="color: #ff0000;">/crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force  -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp"</span></strong>
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@DBHOST1 ~]# <span style="color: #ff0000;"><strong>/crsapp/app/oracle/product/19c/crs/install/rootcrs.sh -force -deconfig -paramfile "/tmp/deinstall2021-06-20_05-21-54PM/response/deinstall_OraGI19Home1.rsp" -lastnode</strong></span>
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 ~]#

----------------------------------------


######################### 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 #############
5

3.Delete oracle binary files if any

In the above step output, it shows few directory deletion failed. So we can remove them manually. With this our deinstall of grid infrastructure on both nodes completed.

Code/Command (click line numbers to comment):

1
2
rm -rf /crsapp/app/oracle_base
rm -rf /crsapp/app/oracle/product/19c
6

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

Comments (0)

Please to add comments

No comments yet. Be the first to comment!