Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me






  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

How to deinstall the Oracle 19c database software only

Posted by Mir Sayeed Hassan on August 4th, 2020

How to deinstall the Oracle 19c database software only

Here iam going to deinstall the Oracle 19c database software only, this will delete the Oracle DB configuration files, user data & recovery area (FRA) also the files which are related to the oracle base.

Login to the server with Oracle user

Goto the Oracle Home location:

[oracle@ora19cpri ~]$ cd /u01/source/Oracle_19c
[oracle@ora19cpri Oracle_19c]$ cd deinstall/
[oracle@ora19cpri deinstall]$ ls
bootstrap_files.lst bootstrap.pl deinstall deinstall.pl deinstall.xml jlib readme.txt response sshUserSetup.sh utl

Start the deinstallation process

[oracle@ora19cpri deinstall]$ ./deinstall

Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2020-08-02_11-08-35AM/logs/

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

Checking for existence of the Oracle home location /u01/source/Oracle_19c
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-08-02_11-08-35AM/logs/netdc_check2020-08-02_11-08-46AM.log
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2020-08-02_11-08-35AM/logs/databasedc_check2020-08-02_11-08-46AM.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 []: y

###### For Database 'y' ######

Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]: 1
Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/y]: y
Specify the storage type used by the Database ASM|FS []: FS
Specify the list of directories if any database files exist on a shared file system. If 'y' subdirectory is found, then it will be deleted. Otherwise, the specified directory will be deleted. Alternatively, you can specify list of database files with full path [ ]: y
Specify the fast recovery area location, if it is configured on the file system. If 'y' subdirectory is found, then it will be deleted. []: y
Specify the database spfile location [ ]: y
Specify if database Archive Mode is Enabled. y/n [n]: n
Database Check Configuration END

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

####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/source/Oracle_19c
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration. The databases will be deleted and will not be useful upon de-configuration : y
Database unique name : y
Storage used : FS
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2020-08-02_11-08-35AM/logs/deinstall_deconfig2020-08-02_11-08-45-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2020-08-02_11-08-35AM/logs/deinstall_deconfig2020-08-02_11-08-45-AM.err'

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2020-08-02_11-08-35AM/logs/databasedc_clean2020-08-02_11-08-46AM.log
Database Clean Configuration START y
This operation may take few minutes.
Database Clean Configuration END y

Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2020-08-02_11-08-35AM/logs/netdc_clean2020-08-02_11-08-46AM.log
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 #######################
Successfully de-configured the following database instances : y
#######################################################################

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

Using properties file /tmp/deinstall2020-08-02_11-08-35AM/response/deinstall_2020-08-02_11-08-45-AM.rsp
Location of logs /tmp/deinstall2020-08-02_11-08-35AM/logs/

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

####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2020-08-02_11-08-35AM/logs/deinstall_deconfig2020-08-02_11-08-45-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2020-08-02_11-08-35AM/logs/deinstall_deconfig2020-08-02_11-08-45-AM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to ora19cpri
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2020-08-02_11-08-35AM/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/source/Oracle_19c' from the central inventory on the local node : Done
Delete directory '/u01/source/Oracle_19c' on the local node : Done
Delete directory '/u01/app/oraInventory' on the local node : Done
The Oracle Base directory '/u01/app/oracle' will not be removed on local node. The directory is not empty. User needs to manually cleanup this directory.
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/source/Oracle_19c' from the central inventory on the local node.
Successfully deleted directory '/u01/source/Oracle_19c' on the local node.
Successfully deleted directory '/u01/app/oraInventory' on the local node.
Oracle Universal Installer cleanup was successful.

Run 'rm -r /etc/oraInst.loc' as root on node(s) 'ora19cpri' at the end of the session.
Run 'rm -r /opt/ORCLfmap' as root on node(s) 'ora19cpri' at the end of the session.
Run 'rm -r /etc/oratab' as root on node(s) 'ora19cpri' at the end of the session.
Review the permissions and contents of '/u01/app/oracle' on nodes(s) 'ora19cpri'.
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 #############

Deinstallation process is completed successfully

Note: We need to remove the directory manually from the server as shown below

Login to the Root & delete manually those file as recommended

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

=====Hence tested & verified in our test env=====