Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

remove a database via command line

658086Oct 1 2008 — edited Oct 1 2008
hello,
i need to find a way to remove a db using command line instead of DBCA.

I tryed this:

connect sys/syspwd@mydb as sysdba;
shutdown abort;
startup mount exclusive restrict;
drop database;
exit

but when i arrive to execute "startup mount exclusive restrict" i get the error:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

indeed i've read that this way of proceed retains INIT.ora and any password file....

SO

i need the translation (onto command line procedure) of DBCA delete database utility

someone can help me?
thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2008
Added on Oct 1 2008
14 comments
1,746 views