0% found this document useful (0 votes)
14 views

Drop Database

Uploaded by

greetje zwart
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Drop Database

Uploaded by

greetje zwart
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

Dropping with Database Configuration

Assistant

OR

Dropping a Database with SQL*Plus


http://dba-services.berkeley.edu/docs/oracle/manual-10gR2/backup.102/b14191/
recoscen012.htm#sthref1949
You may need to remove a database, that is, the database files that form the database, from the
operating system. For example, this scenario can occur when you create a test database and then
no longer have a use for it. The SQL*Plus command DROP DATABASE can perform this function.

See Also:
Oracle Database Backup and Recovery Basics to learn how to use the
equivalent RMAN command DROP DATABASE

Start SQL*Plus and connect to the target database with administrator privileges, then ensure
that the database is either mounted or open with no users connected. For example:
SQL> STARTUP FORCE MOUNT

Remove the datafiles and control files listed in the control file from the operating system.
For example:
SQL> DROP DATABASE; # deletes all database files, both ASM and non-ASM

If the database is on raw disk, the command does not delete the actual raw disk special
files.
Use an operating system utility to delete all backups and archived logs associated with
the database because these are not automatically deleted by the SQL*Plus command. For
example:
% rm /backup/* ?/oradata/trgt/arch/*

You might also like