Before You Begin
Select the Oracle Database release:
This 15-minute tutorial shows you how to keep your Oracle Database software up-to-date.
What Do You Need?
- Oracle Database 18c19c
Uninstall
Oracle Database
If you want to remove an Oracle software installation, you can use the deinstallation tool to completely uninstall the software from your computer.
- Log on to your computer as a member of the administrative group that is authorized to deinstall Oracle Database software.
- Open a terminal and change the current working directory to
ORACLE_HOME
. TheORACLE_HOME
is by default set to your installation directory.$ export ORACLE_HOME=/scratch/u01/app/oracle/product/18.0.0/dbhome_1 $ cd $ORACLE_HOME
$ export ORACLE_HOME=/scratch/u01/app/oracle/product/19.0.0/dbhome_1 $ cd $ORACLE_HOME
- Invoke the deinstallation tool by using this command:
$ $ORACLE_HOME/deinstall/deinstall
OUTPUT:Checking for required files and bootstrapping ... Please wait ... Location of logs /tmp/deinstall2019-05-05_09-32-20AM/logs/ ############ ORACLE DECONFIG TOOL START ############ ######################### DECONFIG CHECK OPERATION START ######################### ## [START] Install check configuration ## Checking for existence of the Oracle home location /scratch/u01/app/oracle/product/18.0.0/dbhome_1/scratch/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: /scratch/u01/app/oracle Checking for existence of central inventory location /scratch/u01/app/oraInventory ## [END] Install check configuration ## Network Configuration check config START Network de-configuration trace file location: /tmp/deinstall2016-05-05_09-32-20AM/logs/netdc_check2016-05-05_09-33-05-AM.log
- In the terminal, when prompted to enter the instance
listeners that you want to de-configure, accept the default
value by pressing Enter.
Specify all Single Instance listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]: Enter
OUTPUT:Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /tmp/deinstall2019-05-05_09-32-20AM/logs/databasedc_check2019-05-05_09-35-32-AM.log
- In the terminal, when prompted to enter the database names
that are configured in this Oracle home, accept the default
value by pressing Enter.
Use comma as separator when specifying list of values as input
Specify the list of database names that are configured in this Oracle home [orcl]: Enter
OUTPUT:###### For Database 'orcl' ###### Single Instance Database The diagnostic destination location of the database: /scratch/u01/app/oracle/diag/rdbms/orcl Storage type used by the Database: FS Database file location: /scratch/u01/app/oracle/oradata/orcl,/scratch/u01/app/oracle/recovery_area/orcl Fast recovery area location: /scratch/u01/app/oracle/recovery_area/ORCL database spfile location: /scratch/u01/app/oracle/product/18.0.0/dbhome_1/dbs/spfileorcl.ora/scratch/u01/app/oracle/product/19.0.0/dbhome_1/dbs/spfileorcl.ora
- In the terminal, when prompted to modify the details of the
discovered database, accept the default by pressing Enter.
The details of database(s) orcl have been discovered automatically.
Do you still want to modify the details of orcl database(s)? [n]: Enter
OUTPUT:Database Check Configuration END Oracle Configuration Manager check START OCM check log file location : /tmp/deinstall2019-05-05_09-32-20AM/logs//ocm_check8037.log Oracle Configuration Manager check END ######################### DECONFIG CHECK OPERATION END ######################### ####################### DECONFIG CHECK OPERATION SUMMARY ####################### Oracle Home selected for deinstall is: /scratch/u01/app/oracle/product/18.0.0/dbhome_1/scratch/u01/app/oracle/product/19.0.0/dbhome_1 Inventory Location where the Oracle home registered is: /scratch/u01/app/oraInventory Following Single Instance listener(s) will be de-configured: LISTENER The following databases were selected for de-configuration : orcl Database unique name : orcl Storage used : FS Checking the config status for CCR Oracle Home exists with CCR directory, but CCR is not configured CCR check is finished
- In the terminal, enter y, when asked if you want to
continue.
Do you want to continue (y - yes, n - no)? [n]: y
Open output.txt to view the output.txt. - The Oracle software is successfully uninstalled.