As this message clearly explains, this
error means that the operation you are going to perform that returned this
error, needs database to be mounted EXCLUSIVELY - by only one instance. In my case, I was trying to drop a RAC database when I
faced ORA-01586. I realized that the other instance of my RAC database is still
up and it is needed that all the instances of a RAC database should be down
before we can drop a database.
SQL>
shutdown immediate
ORA-01109:
database not open
Database
dismounted.
ORACLE
instance shut down.
SQL>
startup restrict mount
ORACLE
instance started.
Total
System Global Area 2.5655E+10 bytes
Fixed
Size 2265224 bytes
Variable
Size 1.3489E+10 bytes
Database
Buffers 1.2147E+10 bytes
Redo
Buffers 16896000 bytes
Database
mounted.
SQL>
show parameter db_name
NAME TYPE VALUE
------------------------------------
----------- ------------------------------
db_name string mydb
SQL>
drop database;
drop
database
*
ERROR
at line 1:
ORA-01586:
database must be mounted EXCLUSIVE and not open for this operation
SQL>
|
SQL> startup mount exclusive restrict;
ReplyDeleteORACLE instance started.
Database mounted.
SQL> drop database;
drop database
*
ERROR at line 1:
ORA-01586: database must be mounted EXCLUSIVE and not open for this operation
Solution: Before dropping the RAC database, you need to change the parameter cluster_database=FALSE
SQL> alter system set cluster_database=FALSE scope=spfile;
SQL> Shutdown abort;
SQL>startup mount exclusive restrict;
ORACLE instance started.
Database mounted.
SQL>Drop Database;
Database dropped.
i got that from this site http://oracledba-duniya.blogspot.com/2014/03/ora-01586-database-must-be-mounted.html
its works on my db
Yes Burhan, that is the other way to do this. Thank you for sharing.
Deletethanks a lot. It really helps.
ReplyDelete