Manually delete an Oracle 12C Database

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.