In addition to using DBCA to delete the Oracle 12C database, we can also use the drop database Command to delete it.
This deletion method is very simple, but must meet the following two requirements:
1. The database must be in the mount State and cannot be in the open state;
2. The database must be inRestricted mode.
[Oracle @ rhel6u4 ~] $Sqlplus/as sysdba
SQL * Plus: Release 12.1.0.1.0 Production on Thu Jun 27 23:56:36 2013
Copyright (c) 1982,201 3, Oracle. All rights reserved.
Connected:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0-64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL>Startup mount;
ORACLE instance started.
# Oracle must be started to the mount state.
Total System Global Area 521936896 bytes
Fixed Size 2290264 bytes
Variable Size 432016808 bytes
Database Buffers 79691776 bytes
Redo Buffers 7938048 bytes
Database mounted.
SQL>Alter system enable restricted session;
# Putting oracle inRestricted mode like restricted.
System altered.
SQL>Drop database;
# Delete an oracle database.
Database dropped.
This article is from the "Helloblock DBA footprint" blog, please be sure to keep this source http://helloblock.blog.51cto.com/7899615/1294418