Drop RAC database [message #328405] |
Fri, 20 June 2008 01:34  |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
Hi,
I want to drop the RAC database. I am using two ASM environment.(ASM1 and ASM2)
Please give me the steps to follow.
|
|
|
|
|
Re: Drop RAC database [message #328415 is a reply to message #328410] |
Fri, 20 June 2008 02:04   |
 |
Mahesh Rajendran
Messages: 10706 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
Same as a regular,single instance database.
Drop the files, clean oratab, clean init.ora files, clean $ORACLE_BASE...
Additonally, you need to use srvctl to remove specific instances and database settings from CRS.
If you are using dedicated diskgroups for ASM, clean them if you want.
Using DBCA is most recommended.
[Updated on: Fri, 20 June 2008 02:05] Report message to a moderator
|
|
|
|
|
Re: Drop RAC database [message #328533 is a reply to message #328519] |
Fri, 20 June 2008 07:14   |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
I followed below steps in instance1.
connect SYS/sWaZeru4 as SYSDBA
shutdown immediate
startup mount restrict
drop database;
exit;
Giving the error...
drop database
*
ERROR at line 1:
ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
|
|
|
|
Re: Drop RAC database [message #329046 is a reply to message #328538] |
Mon, 23 June 2008 23:02   |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
I think we can not give CLUSTER_DATABASE = FALSE becoz before that database is shutting down.So How to include and Where we have to set the CLUSTER_DATABASE = FALSE.
IF i set in the script it is giving errors...
connect SYS/<syspwd> as SYSDBA
shutdown immediate
CLUSTER_DATABASE=FALSE
startup mount restrict
drop database;
exit;
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jun 24 10:27:13 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected.
Database closed.
Database dismounted.
ORACLE instance shut down.
SP2-0734: unknown command beginning "CLUSTER_DA..." - rest of line ignored.
ORACLE instance started.
Total System Global Area 364904448 bytes
Fixed Size 1219448 bytes
Variable Size 113247368 bytes
Database Buffers 247463936 bytes
Redo Buffers 2973696 bytes
Database mounted.
drop database
*
ERROR at line 1:
ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
|
|
|
|
Re: Drop RAC database [message #329120 is a reply to message #329048] |
Tue, 24 June 2008 03:24   |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount restrict
ORACLE instance started.
Total System Global Area 364904448 bytes
Fixed Size 1219448 bytes
Variable Size 117441672 bytes
Database Buffers 243269632 bytes
Redo Buffers 2973696 bytes
Database mounted.
SQL> drop database;
drop database
*
ERROR at line 1:
ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
SQL> shut immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup mount exclusive
ORACLE instance started.
Total System Global Area 364904448 bytes
Fixed Size 1219448 bytes
Variable Size 117441672 bytes
Database Buffers 243269632 bytes
Redo Buffers 2973696 bytes
Database mounted.
SQL> drop database;
drop database
*
ERROR at line 1:
ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
When I mount the database in exclusive mode / restrict mode it is giving same error.
Please advice...
|
|
|
|
Re: Drop RAC database [message #329171 is a reply to message #329160] |
Tue, 24 June 2008 07:21   |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
Already the parameter "cluster_database= false" in both the instances of cluster environment. If I do the below steps I am getting the below errors.
I know how to change the cluster_database parameter but already it is false.
|
|
|
|
Re: Drop RAC database [message #329184 is a reply to message #329175] |
Tue, 24 June 2008 08:00   |
grpatwari
Messages: 288 Registered: June 2008 Location: Hyderabad
|
Senior Member |
|
|
see the below o/p from my database...
SQL> l
1* select * from v$parameter where name='cluster_database'
SQL> set lines 1000
SQL> /
NUM NAME TYPE VALUE
---------- -------------------------------------------------------------------------------- ---------- ------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------------------
DISPLAY_VALUE ISDEFAULT ISSES ISSYS_MOD ISINS ISMODIFIED ISADJ ISDEP DESCRIPTION
------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------- --------- ----- --------- ----- ---------- ----- ----- ------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------
UPDATE_COMMENT HASH
------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------- ----------
548 cluster_database 1 TRUE
TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE if TRUE startup in cluster database mode
3044213568
[Updated on: Tue, 24 June 2008 09:16] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: Drop RAC database [message #620023 is a reply to message #337616] |
Sun, 27 July 2014 23:45   |
Database admin
Messages: 365 Registered: September 2006 Location: india
|
Senior Member |
 
|
|
Hi,
Quote:Using DBCA is most recommended.
Is it enough if we use dbca to delete a 2 node rac database ? or Is something else should be done before invoke dbca to delete database like remove instance , stop database or deleting database files manually etc...
Pls note that this question is related to delete a multiple node rac database using dbca utility.
Regards,
Srini
[Updated on: Sun, 27 July 2014 23:49] Report message to a moderator
|
|
|
|
|
|
|
|