Deinstall Oracle 12.2 RDBMS HOME including database from two node RAC ASM environment.

Deinstall Oracle 12.2 RDBMS HOME including database from RAC ASM environments 


Verify the version which is being deinstalled



Run the deinstall command from 12.2 home  location 

























































Working log.

[oracle@wasdba1 deinstall]$ echo $ORACLE_HOME
/u01/app/db122000
[oracle@wasdba1 deinstall]$ $ORACLE_HOME/deinstall/deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/

############ ORACLE DECONFIG TOOL START ############


######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##


Checking for existence of the Oracle home location /u01/app/db122000
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/19300grid
The following nodes are part of this cluster: wasdba1,wasdba2
Active Remote Nodes are wasdba2
Checking for sufficient temp space availability on node(s) : 'wasdba1,wasdba2'

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2021-05-31_02-13-15-AM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2021-05-31_02-15-34-AM.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 [dbauni1]:

###### For Database 'dbauni1' ######

Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database|3.RAC Database|4.RAC One Node Database) [1]: 3
Specify the list of nodes on which this database has instances [wasdba1]: wasdba1,wasdba2
Specify the list of instance names [dbauni1]:
Specify correct number of instances for admin managed database. Number of nodes does not match the number of instances.
Specify the list of nodes on which this database has instances [wasdba1]: wasdba1 wasdba2
Specify the list of instance names [dbauni1]:
Specify correct number of instances for admin managed database. Number of nodes does not match the number of instances.
Specify the list of nodes on which this database has instances [wasdba1]: wasdba1:wasdba2
Specify the list of instance names [dbauni1]:
Specify the local instance name on node   [dbauni1]: dbauni1:dbauni2
Specify the local instance name on node   [dbauni1]:
Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/dbauni]:
Specify the storage type used by the Database ASM|FS []: ASM


Specify if database Archive Mode is Enabled. y/n [n]: y
Database Check Configuration END
Oracle Configuration Manager check START
OCM check log file location : /u01/app/oraInventory/logs//ocm_check2617.log
Oracle Configuration Manager check END

######################### DECONFIG CHECK OPERATION END #########################


####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/19300grid
The following nodes are part of this cluster: wasdba1,wasdba2
Active Remote Nodes are wasdba2
The cluster node(s) on which the Oracle home deinstallation will be performed are:wasdba1,wasdba2
Oracle Home selected for deinstall is: /u01/app/db122000
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration : dbauni1
Database unique name : dbauni1
Storage used : ASM
Checking the config status for CCR
wasdba1 : Oracle Home exists with CCR directory, but CCR is not configured
wasdba2 : Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
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_deconfig2021-05-31_02-11-59-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2021-05-31_02-11-59-AM.err'

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2021-05-31_02-25-08-AM.log
Database Clean Configuration START dbauni1
This operation may take few minutes.
Database Clean Configuration END dbauni1

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2021-05-31_02-25-38-AM.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

Oracle Configuration Manager clean START
OCM clean log file location : /u01/app/oraInventory/logs//ocm_clean2617.log
Oracle Configuration Manager clean END

######################### DECONFIG CLEAN OPERATION END #########################


####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : dbauni1
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
#######################################################################


############# ORACLE DECONFIG TOOL END #############

Using properties file /tmp/deinstall2021-05-31_02-11-48AM/response/deinstall_2021-05-31_02-11-59-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_deconfig2021-05-31_02-11-59-AM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2021-05-31_02-11-59-AM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to wasdba1
Setting REMOTE_NODES to wasdba2
Setting CLUSTER_NODES to wasdba1,wasdba2
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2021-05-31_02-11-48AM/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 '/u01/app/db122000' from the central inventory on the local node : Done

Delete directory '/u01/app/db122000' on the local node : Done

The Oracle Base directory '/u01/app/oracle' will not be removed on local node. The directory is in use by Oracle Home '/u01/app/19300grid'.

Detach Oracle home '/u01/app/db122000' from the central inventory on the remote nodes 'wasdba2' : Done

Delete directory '/u01/app/db122000' on the remote nodes 'wasdba2' : Done

The Oracle Base directory '/u01/app/oracle' will not be removed on node 'wasdba2'. The directory is in use by Oracle Home '/u01/app/19300grid'.

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2021-05-31_02-11-48AM' on node 'wasdba2'

## [END] Oracle install clean ##


######################### DEINSTALL CLEAN OPERATION END #########################


####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/app/db122000' from the central inventory on the local node.
Successfully deleted directory '/u01/app/db122000' on the local node.
Successfully detached Oracle home '/u01/app/db122000' from the central inventory on the remote nodes 'wasdba2'.
Successfully deleted directory '/u01/app/db122000' on the remote nodes 'wasdba2'.
Oracle Universal Installer cleanup was successful.

Review the permissions and contents of '/u01/app/oracle' on nodes(s) 'wasdba1,wasdba2'.
If there are no Oracle home(s) associated with '/u01/app/oracle', manually delete '/u01/app/oracle' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL TOOL END #############

[oracle@wasdba1 deinstall]$

Good Luck.

Comments

Popular Posts