drop database in oracle 10g [message #185586] |
Wed, 02 August 2006 08:13 |
sureshht_ny
Messages: 3 Registered: August 2006 Location: Albany
|
Junior Member |
|
|
Hi,
How do i drop database in oracle 10G?
Have anyone used 'DROP DATABASE' command for dropping database in oracle 10G?
Thanks and regards
Suresh H Thopaiah
|
|
|
|
|
Re: drop database in oracle 10g [message #316884 is a reply to message #185620] |
Mon, 28 April 2008 13:32 |
awadhesh999
Messages: 1 Registered: October 2007
|
Junior Member |
|
|
Hi,
For dropping a database from command line in 10. please follow these steps:-
Connect as sysdba user
sqlplus / as sysdba
shutdown immediate
startup mount exclusive restrict;
drop database;
exit
|
|
|
|
|
Re: drop database in oracle 10g [message #431445 is a reply to message #317875] |
Tue, 17 November 2009 06:30 |
samg4ug
Messages: 33 Registered: July 2007 Location: India
|
Member |
|
|
Hi,
If you are dropping the database in Unix make sure that the database 's entry is commented out in /etc/oratab file.
Else you won't be able to create a same named database in the server. While creating it will throw error that database already exists.
Regards,
Sam G
|
|
|
|
Re: drop database in oracle 10g [message #433646 is a reply to message #185586] |
Thu, 03 December 2009 08:03 |
Sanjay Bajracharya
Messages: 279 Registered: October 2001 Location: Florida
|
Senior Member |
|
|
Well I guess the proper way to do it is the command DROP DATABASE (honestly, I did not know about this command in 10, now I do).
So far in my life as DBA and various UNIX flavours (AIX, SunOS and HP), I have done the following:
1. shutdowm immediate
2. rm -Rf /u0[1-4]/oradata/ORACLE_SID
3. update oratab, listener.ora, tnsnames.ora
4. be happy and reclaim your space...
Thanx.
|
|
|
|
|
|
|
|
Re: drop database in oracle 10g [message #434073 is a reply to message #433851] |
Mon, 07 December 2009 02:09 |
samg4ug
Messages: 33 Registered: July 2007 Location: India
|
Member |
|
|
Hi,
Ok to stop the thread.
But is knowing how to drop database without using dbca is so bad as to gather knowledge ?
Atleaset a DBA who has some spare dbs to play with can try it...
If dba s learn about it then what's the offence ?
Regards,
Sam G
[Updated on: Mon, 07 December 2009 02:10] Report message to a moderator
|
|
|