Home > RAC > Drop database in 11gR2 RAC & Updating OCR

Drop database in 11gR2 RAC & Updating OCR


1. Login as oracle user and stop the database

srvctl stop database -d racdb

 

2. Start the first instance in mount state

srvctl start instance -d racdb -i racdb1

 

3. Set CLUSTER_DATABASE=FALSE and shut it down

alter system set cluster_database=false scope=spfile sid=’*’

shut immediate

 

4. Start the database in restrict mode

startup exclusive restrict mount

drop database;

or

To remove archivelogs and backups

RMAN> drop database including backups;

 

Updating OCR

Issue below commands to update OCR

srvctl remove database -d racdb

or

If there is any issue in removing database details from OCR due to unknown state, remove the resource using crsctl

crsctl delete resource ora.racdb.db

Advertisements
Categories: RAC Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Oracle database internals by Riyaj

Discussions about Oracle performance tuning, RAC, Oracle internal & E-business suite.

StartupForce

Where all the Action Is !!!!

Pavan DBA's Blog

The DBA Knowledge Store

ORACLE-BASE - Latest Articles

Where all the Action Is !!!!

%d bloggers like this: