You are on page 1of 1

Manually Delete or Remove an Oracle Database

Some DBAs prefer to use a command-line interface to perform their tasks. You can
delete
a database using the command-line tool SQL*Plus.
To do so, first connect to SQL*Plus as an administrator who has the ability to
start up the
database—that is, an administrator with either the SYSOPER or the SYSDBA privilege.
Here’s an example:
/u01/app/oracle>sqlplus sys/**** as sysdba
Once you are connected, you need to put the database in MOUNT RESTRICT mode. Issue
the following command if the database is not running:
Startup mount restrict;
Next, issue the following command:
Drop database;
This command shuts down the instance and deletes all the files associated with the
database, including the server parameter file. You may have to remove any archived
logs
from the database archive area using the appropriate operating-system command.

You might also like