Before You Begin
This tutorial shows you how to remove and deinstall an RPM-based Oracle Database 18c installation.
Background
You can use this procedure to remove an 18c Oracle Database that you might have installed using RPM packages on Oracle Linux 6 or Oracle Linux 7.
This procedure will not work for databases installed using other methods.
Note: The ORACLE_HOME path for this software
installation is /opt/oracle/product/18c/dbhome_1
.
What Do You Need?
- Oracle Linux 7 or Oracle Linux 6 64-bit on the target server.
- A minimum of 2 GB swap space.
- If you are performing the installation on your laptop, then
ensure that the
/etc/hosts
file contains a fully qualified name for the target server.
Remove
an RPM-based Oracle Database 18c Installation
- Log in as
root
. - Run the following command to remove the RPM-based database
installation:
# yum -y remove oracle-database-ee-18c
Note: If the yum command detects other configured components in the Oracle home such as databases or listeners, then it stops the deinstallation process.
A message is displayed that instructs you to remove the configured components manually. Remove those configured components.
Remove
Configured Components in the Oracle Home
- Login as the Oracle Database installation owner user
(oracle)
. - To remove any database associated with your installation,
use Oracle Database Configuration Assistant (Oracle DBCA):
$ cd $ORACLE_HOME/bin $ ./dbca
- In Select Database Operation window, click
Delete database.
Description of the illustration dbca-delete-database.png - In Select Database window, select the database that you want to delete. For example, delete the database ORCLCDB.
- Specify the SYSDBA user credentials.
- In Select De-Register Management Option window, uncheck the De-register from Enterprise Manager (EM) cloud control to skip this option. Click Next to view the summary page.
- In the Progress Page window, click Yes to confirm deletion of Oracle instances and data files for your database.
- To remove any listeners associated with your installation,
run Oracle Net Configuration Assistant (Oracle NETCA).
$ cd $ORACLE_HOME/bin $ ./netca
- In Oracle Net Configuration Assistant window, select Delete.
Description of the illustration netca-delete-listerner.png - In Select Listener window, select the listener that you want to delete.
- Click Yes to delete the listener.
- Log in as
root
and run theyum
command again to remove the rpm-based database installation.# yum -y remove oracle-database-ee-18c