Deinstall Oracle 19c Binaries in Linux

How to Deinstall Oracle 19c Binaries in Linux: During this article we’ll see the way to Deinstall Oracle 19c Binaries from your Linux machine.

Note :

You’ll run the deinstall command from an home directory after installation.

Please always keep in mind this command will also delete or remove your databases and it’s related to respective home from where invoke deinstall command.

Firstly, need to run Deinstall :

[oracle@test ~]$
[oracle@test ~]$ cd $ORACLE_HOME
[oracle@test dbhome_1]$
[oracle@test dbhome_1]$
[oracle@test dbhome_1]$ cd deinstall/
[oracle@test deinstall]$
[oracle@test deinstall]$
[oracle@test deinstall]$ ls
bootstrap_files.lst  bootstrap.pl  deinstall  deinstall.pl  deinstall.xml  jlib  readme.txt  response  sshUserSetup.sh  utl
[oracle@test deinstall]$
[oracle@test deinstall]$
[oracle@test deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2020-09-19_07-35-13AM/logs/

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


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


Checking for existence of the Oracle home location /u01/app/oracle/product/19.0.0/dbhome_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory

## [END] Install check configuration ##


Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2020-09-19_07-35-13AM/logs/netdc_check2020-09-19_07-36-24AM.log

Specify all Single Instance listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2020-09-19_07-35-13AM/logs/databasedc_check2020-09-19_07-36-24AM.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 []:
Database Check Configuration END

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


####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/19.0.0/dbhome_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Single Instance listener(s) will be de-configured: LISTENER
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2020-09-19_07-35-13AM/logs/deinstall_deconfig2020-09-19_07-36-17-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2020-09-19_07-35-13AM/logs/deinstall_deconfig2020-09-19_07-36-17-AM.err'

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2020-09-19_07-35-13AM/logs/databasedc_clean2020-09-19_07-36-24AM.log

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2020-09-19_07-35-13AM/logs/netdc_clean2020-09-19_07-36-24AM.log

De-configuring Single Instance listener(s): LISTENER

De-configuring listener: LISTENER
    Stopping listener: LISTENER
    Listener stopped successfully.
    Deleting listener: LISTENER
    Listener deleted successfully.
Listener de-configured successfully.

De-configuring Naming Methods configuration file...
Naming Methods configuration file de-configured successfully.

De-configuring backup files...
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 #######################
Following Single Instance listener(s) were de-configured successfully: LISTENER
#######################################################################


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

Using properties file /tmp/deinstall2020-09-19_07-35-13AM/response/deinstall_2020-09-19_07-36-17-AM.rsp
Location of logs /tmp/deinstall2020-09-19_07-35-13AM/logs/

############ ORACLE DEINSTALL TOOL START ############





####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2020-09-19_07-35-13AM/logs/deinstall_deconfig2020-09-19_07-36-17-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2020-09-19_07-35-13AM/logs/deinstall_deconfig2020-09-19_07-36-17-AM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to test
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2020-09-19_07-35-13AM/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/oracle/product/19.0.0/dbhome_1' from the central inventory on the local node : Done

Delete directory '/u01/app/oracle/product/19.0.0/dbhome_1' on the local node : Done

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

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

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END


## [START] Oracle install clean ##


## [END] Oracle install clean ##


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


####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/app/oracle/product/19.0.0/dbhome_1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/oracle/product/19.0.0/dbhome_1' on the local node.
Successfully deleted directory '/u01/app/oraInventory' on the local node.
Successfully deleted directory '/u01/app/oracle' on the local node.
Oracle Universal Installer cleanup was successful.


Run 'rm -r /etc/oraInst.loc' as root on node(s) 'test' at the end of the session.

Run 'rm -r /opt/ORCLfmap' as root on node(s) 'test' at the end of the session.
Run 'rm -r /etc/oratab' as root on node(s) 'test' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


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

Secondly, Check and verify Oracle binaries are exist or not till now :

[oracle@test deinstall]$
[oracle@test deinstall]$ ls -ld /u01/app/oracle/product/19.0.0/dbhome_1
ls: cannot access /u01/app/oracle/product/19.0.0/dbhome_1: No such file or directory
[oracle@test deinstall]$

Lastly, you need to remove some files as root user :

[root@test ~]#
[root@test ~]# rm -rf /etc/oraInst.loc
[root@test ~]#
[root@test ~]# rm -rf /opt/ORCLfmap
[root@test ~]#
[root@test ~]#
[root@test ~]# rm -rf /etc/oratab
[root@test ~]#

About Oracle Deinstallation Options:

You’ll stop and take away Oracle Database software and components in an Oracle home with the deinstallation command.

The deinstall command is obtainable in Oracle home directories after installation. It’s located in the $ORACLE_HOME/deinstall directory.

This command creates a response file by using information in the Oracle home and using the data you provide.

Files Deleted by this command :

Thirdly, Before you run deinstaller command, please check and confirm if the central inventory (oraInventory) contains no other registered homes besides the home that you just are deconfiguring and removing. Most important things is, this command removes the following files and directory contents which all are in the Oracle base directory of the Oracle Database installation owner:

  • admin
  • cfgtoollogs
  • checkpoints
  • diag
  • oradata
  • fast_recovery_area

I hope my written content will helped you. Your suggestions/feedback are most welcome from orakldba.com.
Keep learning… Have a great day!!!
Please comment here for your any query related to above content. You could write to mail me through : orakldba@gmail.com.

Leave a Comment