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.

Similar Messages

  • Drop database using DBCA

    DB:11.2.0.2
    OS:Linux
    I have 2 node RAC database and i want to drop it using DBCA but the "Delete Database" options is disabled. Please Suggest.

    Your answer is here
    deleting db disabled in DBCA

  • 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....

  • 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

  • How To register The manually Created Database into DBCA

    hi guys .. !! -:)
    using test linux 4 with the vmware , manually i create RAC database , the database is working proper , i planned to delete the RAC database through DBCA , but when i issued $dbca !!! the database can not be see from DBCA to delete it or to manage it
    so i don't know is there is any configuration file belong to DBCA to detect the existing database or there is
    command to register the database into DBCA
    note:-
    i added the instance name into the /etc/oratab
    but it's not working
    also i tried to use this command
    $dbca -silent -adddb database_name also this command is not work perfectly
    so really i don't know what is the step i have to follow to let the DBCA detect my existing database
    with my regard
    Edited by: user12122471 on Oct 28, 2009 2:19 AM

    user12122471 wrote:
    hello guys ,,,, i am waiting ????? >>>This is a forum. It is not chat. It is not instant message. No one is paid or obligated to sit around and monitor this forum. No one is paid to respond to anything posted here. Maybe the only guy with an answer lives 12 time zones away from you . . . .

  • ORA-12547 error while creating new database through dbca

    i installed oracle 10g R2 on parallels virtuozzo container. (it is a product similar to openvz and solaris containers)
    added: oracle version is 10.2.0.1.0
    the installation goes off without too much fuss but when i try to create a general purpose database through dbca it throws up an error
    ORA-12547 : TNS lost contact
    my listener is up and runing and did stop and restart it. i also created a new listener after deleting the previous one.
    still the error persists.
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                19-MAY-2009 15:39:06
    Uptime                    0 days 0 hr. 55 min. 56 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /export/home/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File         /export/home/oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfullyi am running dbca from oracle user only and i did ensure that the contents of the oracle home directory (on which oracle is installed) has permissions of oracle:oinstall.
    i am clueless as to what is causing this error.
    just to add to issues which i faced during installation on virtuozzo containers. containers does not allow me to create a swap space. but i had to ignore the error and go ahead with the installation with most of the steps followed from http://wiki.openvz.org/Oracle_10g_VE.
    please guide
    Edited by: iinfi on May 19, 2009 4:53 PM

    hi all
    virtuozzo during creation of containers doesnt install the following.
    sysstat-5.0.5-1
    libaio-0.3.103-3
    libaio-0.3.103-3 (i386)
    libaio-devel-0.3.103-3
    the oracle documentation tells us to install the following and so i didnt know i had to install other packages as well.
    make-3.79.1
    gcc-3.2.3-34
    glibc-2.3.2-95.20
    compat-db-4.0.14-5
    compat-gcc-7.3-2.96.128
    compat-gcc-c++-7.3-2.96.128
    compat-libstdc++-7.3-2.96.128
    compat-libstdc++-devel-7.3-2.96.128
    openmotif21-2.1.30-8
    setarch-1.3-1
    thanks for your time.

  • 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... :) :)

  • ORA-27103, can not create a database with dbca 10gR2 in SL3

    Hello,
    I'm just trying to install Oracle Database 10g Release 2 (10.2.0.1.0) , Enterprise/Standard Edition for Linux x86 in Scientific Linux CERN Release 3.0.8 (SL) following the instructions
    http://www.oracle.com/technology/obe/obe10gdb/install/linuxpreinst/linuxpreinst.htm
    The installations goes right, but when I try to create a new database with dbca assistant I got the following errors while copying database files
    ORA-27103: internal error
    using the scripts:
    startup nomount pfile="/u01/app/oracle/admin/samdb/scripts/init.ora";
    ORA-27103: internal error
    Linux Error: 13: Permission denied
    Additional information: 101
    Additional information: 134920812
    I've checked the permissions but they seem ok, so I wonder if anyone could figure out what I'm doing wrong.
    Thanks in advance

    the error is dropped when there is an issue with the (db) block size, needs to be a multiple of the system page size, or when there is an issue with the heap allocation,
    so please check init.ora/spfile parameters
    maybe an strace -frt -s 512 gives a hint
    guido

  • Error while creating database using DBCA

    Hi,
    I installed Oracle10gR2 on my windows machine.Now am creating a database with dbca but just after i click the finish button it gives me the error -
    Cannot create directory "F:\oracle\cfgtoollogs\dbca\ora10g" where F:\oracle is the directory where i have installed Oracle 10g and ora10g is the database name.
    I have full permission on the folders.Can anyone please let me know what is the problem here.
    Regards,
    Somd

    Hi OrionNet,
    At last i could create the database successfully.But these are the issues I faced and am listing down the solution so that it can help others too.
    1.I could not find the Administrative Tools-> Local security Policy --> Local Policies --> User Right Assignment in the Windows Vista Home Premium.I went and checked many blogs and forums on where is it located.It seems it is not included in the home premium and people are having a tough time working out the round abouts.
    2.The problem was that my UAC (User Account Control) in the Windows Security Center was turned on which was not allowing me to create the database.I turned it off,and it created the db smoothly.
    Thanks a lot for your help..I really appreciate it :)
    Regards,
    Somd

  • Paraller Query Server Error while creating the database using DBCA on UNIX

    Hi All,
    I am try to create the database on UNIX PLATFORM database 11g R1.
    At the end of database creation using DBCA i got the errors:
    ORA-12801:error signaled in parallel query server P077
    ORA-00018: maximun number of sessions exceeded
    ORA-06512:at"SYS.UTL_RECOMP",line 760
    ORA-06512:at"SYS.UTL_RECOMP",line 773
    ORA-06512:at line 1
    Please suggest what can i do to remove this issue.
    Regards
    Girish Sharma

    user12104101 wrote:
    Hi All,
    I am try to create the database on UNIX PLATFORM database 11g R1.
    At the end of database creation using DBCA i got the errors:
    ORA-12801:error signaled in parallel query server P077
    ORA-00018: maximun number of sessions exceeded
    ORA-06512:at"SYS.UTL_RECOMP",line 760
    ORA-06512:at"SYS.UTL_RECOMP",line 773
    ORA-06512:at line 1
    Please suggest what can i do to remove this issue.
    Regards
    Girish SharmaIncrease value of SESSIONS(also processes) parameter as
    sqlplus "/as sysdba"
    show parameter sessions
    alter system set sessions =<new big value> scope=spfile;
    shutdown immediate;
    startup;

  • ORA-12547 tns lost contact while creating 11gr2 database using dbca

    Hi All,
    I am installing oracle 11gr2 rac on centos 4. Grid infrastrucure and oracle home is successfully installed.
    When i try to create database using dbca during that time i am getting an error that PRCR-1079: Failed to start resource ora.racdb.db
    ORA-12547: TNS lost contact.
    when i check the database on node 1, Its running fine.
    However its giving me an error on the second node.
    on Node 1
    [oracle@rac1 dbs]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Aug 28 19:31:55 2011
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    SQL> select instance_name , host_name from v$instance;
    INSTANCE_NAME
    HOST_NAME
    racdb1
    rac1.oracle.com
    on node 2:
    [oracle@rac2 ~]$ sqlplus "/as sysdba"
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Aug 28 19:33:05 2011
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    ERROR:
    ORA-12547: TNS:lost contact
    Enter user-name:
    I tried to installed to many a time but no luck.
    Please help me on this.
    Your assistance in this regards is much appreciated.
    Thanks in advance.

    Do you have a support.oracle.com User Account?
    If yes search there for TNS-12547 and you will get a huge list of possible root causes.
    Just to name a few (which you can check - also compare with your first node):
    Permission oracle executable
    Kernel Parameter
    Environment variables
    etc.etc.
    Regards
    Sebastian

  • Rollback in database adapter with delete polling strategy

    Hi All,
    We have designed a database adapter with "Delete the Rows That Were Read" after read strategy with auto-retry attempts as 5. In BPEL process, where we are receiving the DB records, we are throwing a rollback fault in case of any fault.
    Database adapter polling is being re-tried 5 times in case of faults but the data is being deleted from the tables after 5 retries. Is this is the expected behavior of DB adapter? Doesn't the rollback fault rollback the complete transaction and leave the failed data back in the tables?
    Can any one provide more information on this polling strategy after the number of auto-retries are completed?.
    Thanks.
    -Pavan

    You need to include your bpel process in the same DB adapter transaction
    Use the following properties in the bpel component to do this
    <property name="bpel.config.transaction" type="xs:string" many="false">requiresNew</property>
        <property name="bpel.config.oneWayDeliveryPolicy" type="xs:string"
                  many="false">sync</property>
    Make sure the connection factory that you are using in the DB adapter is XA transaction enabled

  • Can use ASM only when creating database using dbca

    I have a problem. When i create a database using DBCA, i can only use ASM as the file sytem. why ?
    i just installed the 10gR2 with cluster and donno why i cannot use ocfs.
    Thanks.

    What were your reasons with going with OCFS rather than ASM?
    Thanks.

  • Exchange 2007 Public Folder Database cannot be deleted

    We are in the process of decommissioning exchange 2007 server from 2007 <-> 2013 coexistence.
    All user MailboxDatabases have been sucsessfully removed, however PF Mailbox databases return an error. 
    “The public folder database 'Public Folder Database' cannot be deleted”
    Object is read only because it was created by a future version of Exchange: 0.10 (14.0.100.0). Current supported version is 0.1 (8.0.535.0).
    I am suspecting the presence for 2 OAB is the reason why we can’t delete Public folder database from 2007 server.
    Get-OfflineAddressBook on 2007 returns
    Name               
    Server             
    Versions           
    AddressLists
    Default Offline ... ex07                
    {Version4}         
    {\Default Global...
    Default Offline ... Offline Address ... {Version4}         
    {\Default Global...
    Get-OfflineAddressBook on 2013 returns
    Name                                   
    Versions                               
    AddressLists
    Default Offline Address Book           
    {Version4}                             
    {\Default Global Address List}
    Default Offline Address Book (Ex2012)  
    {Version4}                             
    {\Default Global Address List}
    Questions:
    How can I check if both exchange servers are still OAB generation servers?
    I am not sure if the previous service provider moved OAB,  can I potentially cause any problems by executing  
    Get-MailboxDatabase | Set-MailboxDatabase -OfflineAddressBook "\Default Offline Address Book (Ex2013)"
    Move-OfflineAddressBook -Identity "Default Offline Address Book" -Server EX13
      3. Is it safe to delete 2007 OAB ?
    Thanks

    Default and System public folders show up under PF Management Console, however their preview pane on the right says "There are no items to show in this view" for both of them.
    below is the output from Get-PublicFolderStatistics on ex07
    Name                                     ItemCount              
    LastAccessTime
    Marketing                                   479              
    1/4/2014 10:15:14 AM
    Default                                  0                
    3/16/2014 1:34:35 PM
    EX:/o=First Organization/ou=Exchange Adm 2                 3/13/2014 1:00:00 AM
    inistrative Group (FYDIBOHF23SPDLT)
    EX:/o=First Organization/ou=Exchange Adm 0                 3/13/2014 1:00:00 AM
    inistrative Group (FYDIBOHF23SPDLT)
    exchangeV1                               401              
    3/16/2014 1:34:35 PM
    globalevents                             0                
    3/16/2014 1:34:35 PM
    internal                                 0                
    3/16/2014 1:34:35 PM
    Sales                                     713              
    1/4/2014 10:15:15 AM
    microsoft                                0                
    3/16/2014 1:34:35 PM
    OAB Version 2                            0                 
    1/4/2014 4:09:49 AM
    OAB Version 3a                           0                 
    1/4/2014 4:09:49 AM
    OAB Version 4                            0                 
    1/4/2014 4:09:49 AM
    OWAScratchPad{8382AFC4-6D63-4804-AC49-7B 0                 3/16/2014 1:34:35 PM
    4FDA2A4514}
    schema-root                              0                
    3/16/2014 1:34:35 PM
    Accounting                                 953              
    1/4/2014 10:15:16 AM
    StoreEvents{8382AFC4-6D63-4804-AC49-7B4F 0                 3/16/2014 1:34:35 PM
    DA2A4514}
    /o=First Organization/cn=addrlists/cn=oa 0                 3/13/2014 1:00:00 AM
    bs/cn=Default Offline Address Book

  • How to use icons (database, database backup, save, delete etc.) in Oracle f

    Hi Everyone,
    I am using Oracle forms 5.
    I want to use iconic buttons in Oracle forms 5 for database, database backup, save, delete etc.
    Example:
    Like Oracle Enterprise Manager, a GUI tool, we can see the different icons for different items (icon for database backup, database etc).
    How should I get these icons? How should I attach these icons to the buttons/Image item in Oracle Forms ?
    Should I give the file path of these icons in property palette of an item in Oracle forms?
    If yes, then which property of item, will I use in order to attach the icons?
    Please send the solution.
    If some one can also send the related icons, I will thankful to him.
    Regards
    Martin

    Hi FRANKS,
    Thanks for your useful information.
    WIth regards to attach icons to button/text item in Oracle forms,I am still facing problem.
    As you said, I created the parameter/variable UI_ICONS in Forms Home and gave the value pointing to the directory holding the .ico files.
    And then set the iconic property of the button and the icon's name without its extension.
    But it didn't work.Could ypu please let me know what is going wrong?
    I am thankful to you.
    Martin

Maybe you are looking for