How to drop database manually



                                  Drop Oracle Database


We can drop oracle database in 2 ways :

1. Using DBCA (Database Configuration Assistance) utility .

2. Drop Database Manually .

In this Blog I am covering Drop oracle database manually. Please make sure you have proper backup before dropping database.  


Connect to target database with sys user, and issue following query to check database mode:

 sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Tue Sep 11 12:27:53 2018

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

 Step 1:  Normally shutdown your database:

SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.

  Step 2:  Startup database in restrict mode:

SQL> startup mount exclusive restrict;
ORACLE instance started.

Total System Global Area 1603411968 bytes
Fixed Size 2253664 bytes
Variable Size 989858976 bytes
Database Buffers 603979776 bytes
Redo Buffers 7319552 bytes
Database mounted.


SQL> select open_mode,name from v$database;

OPEN_MODE NAME
-------------------- ---------
MOUNTED DBNAME

 Step 3:  Drop database:

SQL> drop database;

Database dropped.

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


 Database dropped successfully.

 Step 4: Cleanup server:
Remove Entry from below files.
/u01/app/oraInventory/ContentsXML/inventory.xml
/etc/oratab














Comments

Popular posts from this blog

Workflow Agent Listener Service WF_DEFERRED + Business Event not processing

Output Post Processor - EBS 12.2.4 Troubleshoot

How to Diagnose Workflow Notification Mailer Issue