Drop database in mount state [message #618312] |
Thu, 10 July 2014 10:25 |
Database admin
Messages: 365 Registered: September 2006 Location: india
|
Senior Member |
|
|
Hi ,
When we drop a database using following steps in sqlplus tool, why do we drop it in mount state and not in open or nomount state.
Can you please explain ?
connect SYS/<syspwd> as SYSDBA
alter system set cluster_database=false scope=spfile;
shutdown immediate
startup mount restrict
drop database;
exit;
Regards,
Srini
[Updated on: Thu, 10 July 2014 10:27] Report message to a moderator
|
|
|
Re: Drop database in mount state [message #618313 is a reply to message #618312] |
Thu, 10 July 2014 10:31 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
You couldn't drop it in nomount mode, because in nomount you haven't connected to the database. You don't even know where it is. So the command would have to mount the database first.
Similarly, you couldn't drop it in open mode because, well, everything is open. So the command would have to close the database first.
Seems reasonable to me.
|
|
|
|
|
|
|
|
|
|