Delete database

how to delete database? without using dbca
regards
neo

Hi
Again I have no idea why you'd want to drop your database but I will help you perform the "delete". Before we do this it will be a good idea to take a backup of your db (just in case you want it back later ) :-)
Assuming its not production, hence not BIG in size, we will go for a cold backup.
Connect to your db as sysdba
sqlplus "/ as sysdba"
Get details about your db files
SQL>SELECT FILE_NAME FROM DBA_DATA_FILES;
SQL>SELECT FILE_NAME FROM DBA_TEMP_FILES;
Note the path and filenames as we will need to backup these files.
SQL>shutdown immediate;
Now copy the files that you noted earlier to some other location.
Also make a copy of your initSID.ora file to the backup location.
Now run
C:\>ORADIM - DELETE -SID sid <- yourdbname
Database "Deleted" as you requested.
Rgds
Adnan

Similar Messages

  • How to delete database using sql

    I have to delete some databases from oracle 8i. I tried it using the Database Configuration Assistant and I get stuck indefinately as the message always says connecting but nothing happens.
    How can I delete databases using sql not thru the DCA?
    Thanks

    files related to the database and follow these steps:
    1.- shutdown the database
    2.- Delete all files ( Control Files, .dbf, Redo's, Archive�s, parameter file, password file )
    3.- Delete the entrance of this database from
    listener.ora and from tnsnames.ora files.
    and that's it.
    Joel P�rez

  • Delete database with lost initdb.ora

    Hi guys. How can i delete database with lost init file? I just want to recreate the database (with out any recovery or restoring process)
    1. I can't start it because i don't have init.
    2. I can't drop database because i can't start.
    3. I can't recreate database using dbca because the same name somewhere exists:(
    Edited by: America on Jan 18, 2009 12:03 PM

    1. I can't start it because i don't have init.
    recreate init file... you can copy init.ora to init<SID>.ora and then modify DB_NAME and control_files parameters...
    2. I can't drop database because i can't start.
    You can delete manual by remove datafiles, redo file and control files ... After that use "DBCA" to force remove....
    3. I can't recreate database using dbca because the same name somewhere exist
    On DBCA .... You should delete old database before....
    DBCA can delete your database ... by not start database ... that remove databae name from oracle.... But, You have to manual delete on location PATH... Before start "DBCA" to create new database....

  • I want to recover the Deleted Database

    We have an accidentally deleted the database, there is no recent backup file for past 5 months. I want to recover the deleted database. Please give an idea/Suggestions to recover the database. And also we tried some third party tools like kernal,SQL Recovery,Steller
    Phenix and those tools are repairing the corrupted database,but it could not find the deleted ".mdf" file for the database. Please give a best steps/suggestions to recover the database.

    Is there any option to recover the ".mdf" and ".ldf" files  of deleted database by using file recovery softwares
    You can try some of the Windows "undelete" tools, but there is no guarantee it will work or that the database files will be in a valid state afterwards.
    The only reliable way is to restore a backup ... which you don't have.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Drop database vs. dbca delete database

    So I'd like to delete this database: control files, datafiles, log files, spfiles, everything. leave no trace.
    I can use good old sqlplus and run "drop database;", or I can use DBCA and do "delete database".
    What is the difference?
    Documentation clearly explains what "drop database" will do, but it does not explain what DBCA is doing (maybe just running drop database behind the curtains?).

    from the book of «OCP - Oracle Database 10g Administration I», Chap 3. -- Using the DBCA to Delete a Database p 3 - 14
    «Dropping a database involves removing its data files, redo log files, control files, and
    initialization parameter files. The DROP DATABASE statement deletes all control files and all
    other database files listed in the control file. To use the DROP DATABASE statement
    successfully, all the following conditions must apply:
    • The database must be mounted and closed.
    • The database must be mounted exclusively—not in shared mode.
    • The database must be mounted as RESTRICTED.
    An example of this statement is:
    DROP DATABASE;
    The DROP DATABASE statement has no effect on archived log files nor does it have any effect
    on copies or backups of the database. It is best to use Recovery Manager (RMAN) to delete such
    files. If the database is on raw disks, then the actual raw disk special files are not deleted.»
    there is no distinction between the DBCA Delete a database and the drop database statement.

  • Delete Database Automatically When Application Uninstalled

    Hi,
    I wrote one application which stores the Contact number as well their personal details.. every thing working well. To run my application i am using SunWTK2.5 Default Color Phone Emulator. I run my application successfully. To store the personal information i am using Perst Lite Data base and i am using perst-jsr75.jar to store the data base in root.
    Here my issue is : i would like to delete Database from the root when we Uninstall the Application
    Can any one Help Me Out.....
    Advance Thanks for Any suggestion or Examples

    I recommend rewriting the database using RMS. It works quite well, and will automatically uninstall itself upon application uninstall.

  • How to delete database

    hi...i have a problem...may be its a silliy question...but am stuck...
    I have ran the 11g R2 setup for oracle server twice in my local machine without selecting the option CREATE STARTER DATABASE. so no initial schema gets created. Now I want to delete one of the server because it is making my machine slow. When I am running the DBCA to delete that, the DELETE DATABASE option is disabled.
    How can I delete that???
    please help...

    ohhh am very sorry for my misinterpretation....actually i want to delete the server..means I have run the OUI and install the product twice in my machine widout creating a database...So i want to delete those....
    I have tried through running the OUI again and select deinstall products and selected those two db homes...it got deleted successfully....
    thanks a lot... :) :)

  • Deleting database instances of previous Oracle Installations

    How to delete database instances of previous Oracle Installations
    I have Installed new instance of Oracle onto my server but on services window I can still see the older instances of oracle.
    Apart from this I am unable to create database instance with same name as previous instance name.

    Search in the windows registy and delete all occurrence of Oracle

  • Unable to Delete Database or Application

    I am trying to completly remove an Application, however when I right click and select Delete from within the Admin console, nothing happens. No errors - it just doesn't do anything.
    When I try to start the application, (I don't want to start it, but it's the only thing that generates an error) I get the following error:
    Error: 1019038 DB file is missing.
    Any ideas?
    Message was edited by:
    user500213

    Hi,
    The solution would be :
    goto "sessions",there ,try to find the application/database which you would like to delte .You might find a user in a session with it .
    Else ,go to "Locks",and find any of the objects being locked.
    If you find the database/application in any of the session ,you have 2 options
    1)logging off that user or
    2) killing that specific request .
    After thats done , you can delete the database/app.
    Sandeep Reddy Enti
    HCC

  • SAP Netweaver 7.02 Delete Database Table log

    Hi,
    I'm having a problem with a database table(transparent table) that was deleted on an SAP Netweaver 7.02 system. Are there any logs where I can see who deleted the table?
    Thanks,
    Sergiu

    There is a header table in SAP CDHDR, may be you can find something there or if table loggin is enabled then perhaps you can get something on SCU3
    Regards,
    Subhash

  • How to restore a deleted database in Hyperion Strategic Finance (HSF).

    I deleted a database from my HSF server and would like to restore in now. Prior to deletion, I had saved the entire database in an external drive. How can I retrieve it will full access?
    Thanks.

    I am not aware of a way to restore a particular report,
    However the reporting environment is built off the file system and the BI Plus database.
    You could stop the environment,
    Take a current backup of E:\Hyperion\BIPlus\data\RM1_* directory and the BI Plus database,
    Recover the directory above and database from last night's backup, start the services
    export the report and then reverse the process - stop services, restore current versions that you backed up and start back up...
    Nick

  • Why Delete Database not working?

    Hi,
    I see the option Delete, when in administration panel for some databases while it is faded for some other databases. Is there any setting that makes database delete disabled?
    Please clarify.
    regards,

    Delete is only authorized to be done by the server admin user. Out of the box, all of the passwords are defaulted and passwords are stored in your user.cfg file. It is recommended that you change the passwords during the installation process. If the passwords in your user.cfg don't match the ones in the DB you will be prompted for correct ones. There are also ways to control some functionality through permissions. You can find more about the default passwords in both the help and the installation guide.

  • Delete database in unix

    Hi,
    We have a database DEVDB1 and We do not need it anymore. I want to delete it and all the files related to it.
    Is there a process to follow or a command line to do it? aside from using OUI deinstall? because i can not run gui windows.
    Can I just rm -r /u01/DEVDB1 folder?
    Thanks
    Edited by: 843228 on Apr 27, 2011 1:21 AM

    connect with SQL plus as SYSDBA
    Confirm that you are connected with the right database.
    1. shutdown immediate
    2. startup restrict mount
    3. drop database;
    If you also want to remove the oracle software then invoke the OUI and uninstall it. Step 1-3 will only drop your desired database.
    Regards
    Asif Kabir

  • Exchange 2010 Trying to Deleting Database Mailbox(DB13), error database "DB13" has multiple copies on other servers. Must remove all copies from other servers

    Help, not sure how to proceed via Powershell or EMC.
    Thanks!!

    Hi,
    Please use this command to check the status information for copy of database “DB13”
    Get-MailboxDatabaseCopyStatus -Identity DB13
    In the name field, we will know the copy stays on which server. Then use the following command to remove these copies.
    Remove-MailboxDatabaseCopy -Identity DB13\MBX -Confirm:$False
    Use the EMC to remove a mailbox database copy:
    In the console tree, navigate to Organization Configuration > Mailbox.
    In the result pane, on the Database Management tab, select the mailbox database whose copy you want to remove.
    In the work pane, on the Database Copies tab, right-click
    the database copy that you want to remove, and then click Remove.
    Click Yes to remove the database copy.
    After removing these database copies, then try to delete this mailbox database.
    Best Regards.

  • Delete database table with references

    Hi,
    I want to delete a custom database table which is being used in a include. Since I can not get the include, so I want to delete this table anyways. Is there any ways to do this?
    Regards,
    Jeetu

    Dear Jitu,
    use statement
    DELETE Ztable where field = condition.
    Hope this will help you to resolve your query. feel free to ask any help.
    Regards,
    Vijay

Maybe you are looking for