Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Drop oracle 12c database

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 06 Jun, 2019
  • 0 Comments
  • 1 Min Read

Drop oracle 12c database

Oracle 12c is a multi tenant architecture Oracle 12c database is having the root container database and it includes a pluggable database. following are the different ways to drop the Oracle 12c database.

1. DBCA (Silent Method or GUI)

2. Command Line Interface (startup mount restrict and then issue drop database)

3. Manually cleaning up files

In this blog we are dropping the database by using the command line interface. below command will delete root container database as well as all pluggable database. make sure you have proper client approval and the backups before dropping the database.

STEP1. set the environment for the database. in this example we are dropping p r t e s t database.

[oracle@prim ~]$ . oraenv

ORACLE_SID = [pritst] ?

The Oracle base remains unchanged with value /data/oracle/app/oracle

[oracle@prim ~]$

[oracle@prim ~]$

STEP 2. if the database is up and running then shutdown the database.

[oracle@prim ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Thu Nov 22 16:05:46 2018

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 – 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL>

STEP 3. start a database in mount stage with the restricted mode.

[oracle@prim ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Thu Nov 22 16:09:46 2018

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to an idle instance.

SQL>

SQL>

SQL> startup mount exclusive restrict;

ORACLE instance started.

Total System Global Area 834666496 bytes

Fixed Size 2929888 bytes

Variable Size 608176928 bytes

Database Buffers 218103808 bytes

Redo Buffers 5455872 bytes

Database mounted.

STEP 4. drop the database.

SQL> drop database;

Database dropped.

Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 – 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL>

Following video will give you the clear idea how to drop Oracle 12c database