Delete the database

Hello frnds
In my test server I have to delete my database including all tablespaces and datafiles everything and create the new database with new character set which i need ,
So i just need a sujjestion which is best method to delete a old database ...
simply delete all the files from Operating system or is there any safe method to delete database
environment:
OS: Sunsolaris 10
database:10g R2
your sujjestions will be valuable for me
thanks

Hi!
It's completely up to you how you delete a database. You may do it with OS rm command without any problems. Another way that is as safe as the rm command is the database configuration assistant that is also able to delete your DB. It is also possible to delete your DB with the DROP DATABASE commando from SQL*Plus. As I know there is no big difference in all three ways. My favorite way to drop a database is the DBCA because it is easy to use.
yours sincerely
Florian W.

Similar Messages

  • Delete the database without shutdown!!!!

    Hey all....
    I delete my database (rm -Rf *) without doing a dbshut.
    Now i am trying create the same database ( the same instance ) and i get this message: the db is running... destroy the db first.
    (i already kill the processes with my instance)
    I know that if i reboot my machine will works.
    But there is another way without rebooting??
    Because the db is in a server with others db.. and i just can't reboot.... =/

    I try all:
    [oracle@lab2 bin]$ sysresv
    IPC Resources for ORACLE_SID "VM06" :
    Shared Memory
    ID KEY
    No shared memory segments used
    Semaphores:
    ID KEY
    No semaphore resources used
    Oracle Instance not alive for sid "VM06"
    SQL> shutdown abort
    ORACLE instance shut down.
    SQL>
    [oracle@lab2 bin]$ ps aux | grep ora_
    nothing with my instance VM06
    SQL> oradebug ipc
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directory
    [oracle@lab2 bin]$ ps -ef|grep smon
    oracle 4334 3992 0 11:34 pts/1 00:00:00 grep smon
    [oracle@lab2 bin]$ ps -ef|grep pmon
    oracle 4336 3992 0 11:35 pts/1 00:00:00 grep pmon
    nothing....

  • How to delete the database table

    hi all
    i want to delete the data  from the custrmize table so if u can heilp me to do that....not the internal table ..i write the code but that using that code i can delete only one raw.. but i want to delete all raw in my table..
    ZLAB_SUBMIT-SHADE = '1'.
    ZLAB_SUBMIT-SUBMIT = '1'.
    ZLAB_SUBMIT-RM = 'RINGS'.
    ZLAB_SUBMIT-REMARKS = 'Approved'.
    ZLAB_SUBMIT-AP = ''.
    ZLAB_SUBMIT-USNAM = 'INDIKAF'.
    ZLAB_SUBMIT-CPUDT = '05.10.2006'.
    ZLAB_SUBMIT-CDATE = '05.10.2006'.
    ZLAB_SUBMIT-CPUTM = '21:29:19'.
    DELETE  ZLAB_SUBMIT.
    regard
    nawa
    this is my code....

    Hi,
    data itab type standard table of zlab_submit.
    select * from zlab_summit into table itab.
    delete zlab_summit from table itab.
    Kindly reward points by clicking the star on the left of reply,if it helps.

  • Delete the database records

    Hi All
    I  want to delete the records that are older than 40 days in my custom table ZTABLE.
    How can I use table maintenence generator to achieve the same?
    Will this be done by archiving the records..
    Thanks..
    Prabhas

    hi..
    But I do not have a date field in my table..so how can we compare here...
    Cam this be done automatically by some settings in table..
    thanks..

  • Error: 28005, Severity: 16, State: 2...An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impe

    I've seen some similar questions, but want to make sure I can get an answer quickly and how to fix.
    Thanks,
    Paul
    spid24s     Error: 28005, Severity: 16, State: 2
    spid24s     An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated,
    or you do not have permission.

    Hi Paul,
    I also had the same error on one of my servers, and it was because the user that created the database no longer worked for the company.
    So when his AD account got deleted, the database had NULL as owner
    Using the following query I asked for the owners of the databases:
    select name, suser_sname(sid) from master.dbo.sysdatabases
    So changing the owner of the databases that had a NULL owner solved the issue for me.
    use <databasesname>
    go
    exec sp_changedbowner 'sa'
    Thanks for triggering the solution.
    Peter

  • Problem in starting the database

    hi for all
    i have installed successfully 10g on my redhat system and it is just work fine , but after the first reboot it gives me this error on sqlplus
    Enter user-name: system
    password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    when trying to login via isqlplus gives me this error
    TNS:listener does not currently know of service requested in connect descriptor
    so i run dbca and i have deleted the database and created a new one and it's again work fine i reboot the system again the above errors again occurs.
    thanks

    The problem here is that neither your database nor your listener are started. You should use regular commands to start them up.
    sqlplus /nolog
    conn / as sysdba
    startup
    exit
    lsnrctl start
    export ORACLE_SID=instanceName
    emctl start dbconsole
    If you want to start services automatically, then you should configure your linux environment to start processes automatically at OS start time.
    For automatic startup / shutdown you may want to check Oracle documentation: 2.2 Automating Shutdown and Startup
    ~ Madrid.

  • How to delete a Database view?

    HI Everyone,
    Created a Database in ECC to get the bank details from two tables BNKA and BKPF,
    but now I wanted to delete this View. Can someone tell me how to delete the Database view?
    Thanks
    Vandana

    Goto SE11 > select radio button for view > type view name > press delete icon in top menu (where you have icons for activate, check etc).
    Regards,
    Gaurav

  • Enabling "Delete a Database" option in DBCA

    Hi,
    I want to delete my database using DBCA, i know i can directly drop the database , since i have tried all options to enable the option of
    "+Delete a Database+" but guess need right process...i have also tried by stopping all oracle services ..but still the option is DISABLED
    need experts experience..why this is happening and how i can overcome by this...
    I am uisng oracle 10g, OS: Windows...
    thanks
    SG

    I uninstalled Oracle 10g completly and then installed again, adding the database seprately using DBCA and checking DBCA again, the delete the database was activated.
    Resolved the problem same day..thought would close the unanswered Q.
    Thanks..

  • How to delete unwanted databases that keep coming back?

    Hi,
    Besides the usual Google mail database I have somehow acquired 2 other databases that I want to get rid off because I don't trust them.
    The first is the one a lot of other people seem to have as well RLDGUID and the other one is from a blog I visited. It's called sql-evercookie.
    I know how to delete the databases but when i do that they just pop back up. I have tried a lot of things, there isn't much you can do, I delete all my cookies, cache and history, rebooted the iPad. Nothing works. There must be a way to get rid of them right?
    I especially upset about the sql one. It's from a friend's blog who hired a company to design her a ' professional' blog. Why that has to include putiing databases on people's devices I don't know but I sure will ask. In the mean time I want it gone.
    Anyone has any ideas?

    So you never received a response to this?  Did you ever get an answer. I just found some on my original...not ipad2.
    Thanks!

  • Delete oracle database

    how to delete oracle database from OEM?
    regards
    wire

    You can't delete the database from OEM.
    You can do it either manually or using DBCA (database configuration assistant) utility supplied by oracle.
    I believe 10g has drop database command.
    Jaffar

  • Aperture crash when start and the database is damaged

    Hello
    I have been playing around with a trial of Aperture
    My mac crashed when i was importing a big library -my fault, because the hot-
    After that Aperture has not been able to start, until i have deleted the database -moved to a different location-
    Is this the normal behaviour when the database is broken?
    Would be nice if Aperture was able to "keep alive" even when the photo database library was broken
    Something like "Sorry it seems the library has a problem, do you want to create a new one or choose one that actually exists?"
    Bruno

    Bruno
    have a read of the articles at these two links
    Aperture 3: Troubleshooting Basics
    http://support.apple.com/kb/HT3805
    Aperture 3: Frequently Asked Questions (FAQ)
    http://support.apple.com/kb/HT4007
    See if these help.
    Tony

  • Deleting Oracle Database.

    Hi
    Current Enviroment : Oracle 10g/ Windows 2003 Server.
    On one of our Prod Server, in addition to the Prod Database that we have another database that we would like to delete.
    Can anyone suggest me whats the best method of doing this.
    1) Delete the database using DBCA
    or
    2) Delete the instance using ORADIM command and then delete all the respective files of this other database.
    If both the methods are just the same, i would like to go with Method -2 , seems to be safer keepin in mind that we have a Prod DB on this box.
    Please suggest me on this issue.
    Thanks
    Vamshee
    Message was edited by:
    user448242

    If you can, use DBCA, under windows, it also delete service<br>
    <br>
    Nicolas.<br>
    <br>
    Oups, sorry, it seems I didn't refresh my screen for a long time here... what does it mean ? ;-)<br>
    Message was edited by: <br>
    N. Gasparotto

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

  • Delete record from the form and from the database

    hi,
    i want delete record from the form and the database ,but the record is only delete from the from !!!
    this is my code :
    if //condition then
    delete_record;
    commit;
    end if ;
    Any solutions ??
    thnx

    You have unique key field(s) on the table you are trying to insert which actually restricts you from inserting the same value again.
    When you are deleting the record and issue commit there is a record to be inserted in the table which is a duplicate that's why you are getting this unique error.
    As oracle is not able to insert your commit fails and stops your deletion of record from table

  • How to delete the content of a datatable by the "Database Adapter"

    Hello,
    i want to delete all entries in a table by a database adapter - like "DELETE FROM table" in SQL. (Oracle SOA Suite 11g SR1, with Oracle DB over JDBC))
    When i create a new Database adapter i can select standard functions for "insert, select, delete". The function delete does have the disadvantage, that it needs a input message with the key values of the data entry which have to be deleted, which i don't have and don't want to get.
    So i tried the "Pure SQL" mode for the adapter with the SQL string "DELETE FROM table" but this instruction is somehow not commited to the database.
    My questions are:
    - Is there any commit needed for the pure sql instructions? How is the syntax to write several SQL instructions for one Database Adapter?
    - Does anyone have another solution to delete the entries?
    Thanx in advance
    Tobias

    Hi Shishir,
    it is a pretty simple example. I think the problem is that the Database Adapter is not commiting.
    The BPEL is simple sending an empty message to the adapter which should trigger the SQL execution (See Code below)
    The PURE SQL String i'm using is "DELETE FROM table"
    Thanks Tobias
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Wed May 05 09:13:00 CEST 2010
    Author: oracle
    Purpose: Asynchronous BPEL Process
    -->
    <process name="BPELProcess1"
    targetNamespace="http://xmlns.oracle.com/App_DWH_Prototype/TestDELETE/BPELProcess1"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/App_DWH_Prototype/TestDELETE/BPELProcess1"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:ui="http://xmlns.oracle.com/soa/designer/"
    xmlns:task="http://xmlns.oracle.com/bpel/workflow/task"
    xmlns:taskservice="http://xmlns.oracle.com/bpel/workflow/taskService"
    xmlns:wfcommon="http://xmlns.oracle.com/bpel/workflow/common"
    xmlns:wf="http://schemas.oracle.com/bpel/extension/workflow"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/App_DWH_Prototype/TestDELETE/TestDelete%2F"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/top/TestDelete">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="bpelprocess1_client" partnerLinkType="client:BPELProcess1" myRole="BPELProcess1Provider" partnerRole="BPELProcess1Requester"/>
    <partnerLink name="TestDelete" partnerRole="TestDelete_role"
    partnerLinkType="ns1:TestDelete_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:BPELProcess1RequestMessage"/>
    <!-- Reference to the message that will be sent back to the requester during callback -->
    <variable name="outputVariable" messageType="client:BPELProcess1ResponseMessage"/>
    <variable name="Invoke_1_delete_InputVariable"
    messageType="ns1:TActIngredientCollection_msg"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
    <receive name="receiveInput" partnerLink="bpelprocess1_client" portType="client:BPELProcess1" operation="process" variable="inputVariable" createInstance="yes"/>
    <!--
    Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
    -->
    <assign name="Assign_1">
    <copy>
    <from expression="''"/>
    <to variable="Invoke_1_delete_InputVariable"
    part="TActIngredientCollection"
    query="/ns2:TActIngredientCollection/ns2:TActIngredient/ns2:plotNo"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:process/client:input"/>
    <to variable="outputVariable" part="payload"
    query="/client:processResponse/client:result"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" inputVariable="Invoke_1_delete_InputVariable"
    partnerLink="TestDelete" portType="ns1:TestDelete_ptt"
    operation="delete"/>
    <invoke name="callbackClient" partnerLink="bpelprocess1_client" portType="client:BPELProcess1Callback" operation="processResponse" inputVariable="outputVariable"/>
    </sequence>
    </process>

Maybe you are looking for

  • RPM Measurement using Quadrature Encoder and PXI 6602 counter

    Hi, I am on a project at work where I need to verify the speed (in RPM) of an unloaded motor which can operate up to 1400 rpm.  After doing some research, i determined that a quadrature encoder could be used to make the measurement.  I am looking at

  • Calling an overriden function in a [b]super-super[/b] class

    I have overriden a method in a class that extends a class that extends another class: class Parent {      method A() { ... } class Child {      method A() { ... } class GrandChild {      method A() { ... } }I now want to call the Parent.A() function

  • Discoverer 3.1 Turorial PDF

    I am trying to get the PDF version of the Discoverer 31 enduser tutorial. Does anyone know where I can get it. The only ones that are online are the 4.1 and greater. Any help would be greatly appreciated.

  • Apple Hardware Test at Startup

    I restarted my computer and it is not seeing the startup disc. Ran disk utility through C drive boot disk, but now when I reboot I get a screen with the Apple Hardware test icon, a right arrow icon, what looks like the refresh screen icon and the CD

  • Please check your billing information.

    I have updated my credit card, and I am sure all my information is correct, but the pop-up keeps running the countdown. Can a staff member please resolve this issue for me?