Can't drop UNDOTBS datafile and tablespace

The datafile is already offline but i still can't drop either that or the entire UNDOTBS tablespace.
Please help!

Hi,
the answer gives by mr stevencallan is right.
first create new undo tablespace for ur instance and then assign this undo tablespace by
alter system set undo_tablespace=<undo_tb name> scope=both;
later u drop ur old undo tablespace.
no need of any shutdown inthis scenario.
Thanks and Regards
Kuljeet Pal Singh

Similar Messages

  • Any Software/Program to keep track of growth of Datafiles and Tablespaces

    Hi,
    I am looking for a program that can keep an eye on the growth of the datafiles and tablespaces as well as it can raise an alert when the growth is critical regarding the space.
    Can anybody suggest me such program/tool/utility/script?
    Thanks in advance.
    Himanshu

    There are plenty of vendors out there that sell very high-end database monitoring tools. Quest has a whole suite of them. Any of these guys should have tablespace monitoring (and a variety of other reports) as part of the package.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Drop one datafile from Tablespace

    Hi,
    I have 9i Database on Linux. I want to drop one datafile from tablespace. I have tried to drop datafile through following command but it gave no effect.
    alter database datafile <datafile name> offline drop;
    What should i have to do for dropping datafile?
    Do the needful
    Thankx in advance.

    Hi
    since you dont specify the database version or if you have it setup as archivelog or noarchivelog mode, i paste the drop specs for dropping a datafile, from SQL Reference manual of 9i
    DROP If the database is in NOARCHIVELOG mode, you must specify the DROP
    clause to take a datafile offline. However, the DROP clause does not remove the
    datafile from the database. To do that, you must drop the tablespace in which the
    datafile resides. Until you do so, the datafile remains in the data dictionary with the
    status RECOVER or OFFLINE.
    If the database is in ARCHIVELOG mode, Oracle ignores the DROP keyword.
    Regards
    Message was edited by:
    pcambra

  • Can I Drop a datafile from UNDOTBS

    Hi!!!!
    I want to drop a datafile from UNDOTBS . can I Drop it.
    If yes then how to drop ? what is the effect of it on database?
    If anybody knows the the answer then Pls reply..

    You can do this provided test it before doing it in production
    Steps.
    1. Create a new Undo tablespace
    2. Shutdown the database
    3. Change the parameter UNDO_TABLESPACE to the newly created undo tablespace
    4. Start the database
    5. Do whatever you want with the old undo tablespace.

  • Dropping a Datafile and Deleting its References

    Using sqlplus how do I delete datafiles and any references to them?
    At the moment I start the database in mount mode and use:
    ALTER DATABASE DATAFILE 'O:\BCS\test.ora' OFFLINE DROP;
    Which drops the datafile, but when I try to open the database it fails because it is still referencing the datafile.
    How do I delete this reference?
    Any thoughts or suggestions are greatly appreciated.
    Regards
    Toby

    I usually use the following sql to see what is in a tablespace before I drop it with
    "drop tablespace users including contents and datafiles;"
    column meg format 999999999
    column tablespace_name format a20
    set wrap off
    set lines 120
    set heading on
    set pages 50
    select round(sum(a.bytes)/1024/1024) meg,
    count(*) extents,a.tablespace_name,a.segment_type,a.owner||'.'||a.segment_name
    from dba_extents a
    where a.tablespace_name=upper('&1')
    group by a.tablespace_name,a.segment_type,a.owner||'.'||a.segment_name
    order by round(sum(a.bytes)/1024/1024)
    I also map the contents of datafiles with the following you can get the file_id from v$datafile or dba_data_files:
    column owner format a30
    column object format a30
    set lines 120
    set wrap off
    set trunc off
    set pages 50
    set feedback on
    column file_id format 999
    select     /*+ Rule */     'free space' owner     /*"owner" of free space*/
    ,          ' ' object          /*blank object name*/
    ,          file_id                    /*file id for the extent header*/
    ,          block_id               /*block id for the extent header*/
    ,          blocks                    /*length of the extent, in blocks*/
    from          dba_free_space
    where          file_id=&1
    union
    select     /*+ Rule */ substr(owner,1,20)||' '||substr(segment_type,1,9) /*owner name (first 20 chars)*/
    ,          substr(segment_name,1,32)||'.'||partition_name     /*segment name*/
    ,          file_id                    /*file id for the extent header*/
    ,          block_id               /*block id for the extent header*/
    ,          blocks                    /*length of the extent, in blocks*/
    from           dba_extents
    where          file_id=&1
    order by     3,4
    And datafiles can be dropped in 10g if they are empty:
    alter tablespace users drop datafile '/oracle/oradata/users01.dbf';
    Good luck

  • Why I can't drop ASM disks and stop ASMLib ?

    Hi, I wanted to delete disks but this operation failed:
    1.
    /etc/init.d/oracleasm deletedisk DATA1
    Removing ASM disk "DATA1" [FAILED]
    I know there is solution to overwrite ASM header information on a disk
    dd if=/dev/zero of=<your_raw_device> bs=1024 count=100
    and then droping is successful
    but I also saw resources that said it should be count=50
    Could anyone confirm count=100 or 50 ?
    2.
    Besides of that I tried to stop ASMLib and it failed too:
    /etc/init.d/oracleasm stop
    Dropping Oracle ASMLib disks: [  OK  ]
    Shutting down the Oracle ASMLib driver: [FAILED]
    Ok, so using dd will help me to get rid of disks, but I worry about ASMLib in general, why I can't stop it? All ASM instances were removed before. There is no ASM software installed, besides ASMLib.

    The story is like that:
    During Grid Infrastructure 11.2 installation I wanted to create new disk group but all available disks ware marked as 'MEMBER', so that I couldn't use any of them. Then I investigated that there is no database using ASM, and no ASM software installed. But ASMLib lists some disks. So former diskgroups must have been dropped in a bad way. As disks are marked as 'MEMBER' I wanted to drop them and create new ones. But this operation failed.
    Yes, I use root account
    oracleasm exit failed too:
    oracleasm exit
    Unmounting ASMlib driver filesystem: failed
    Unable to unmount ASMlib driver filesystem
    /var/log/oracleasm :
    Cleaning any stale ASM disks...
    Unmounting ASMlib driver filesystem: umount: /dev/oracleasm: device is busy
    umount: /dev/oracleasm: device is busy
    failed
    Unable to unmount ASMlib driver filesystem
    How to deal with this problem? Please help.
    Edited by: Przemek P on 2012-02-07 07:00

  • I have a MBP from late 2009.  It works fine in all regards except recently, when an icon is grabbed by the built-in track pad, I can't drop the item and have to shut my computer down to resolve the issue.  How do I reinstall the driver for the trackpad?

    Ok, I thought the subject line was the extent of what I could type.  My trackpad has been working fine for over two years now.  But recently if I accidently (or intentionally) drag a picutre that is highlighted on any website, the cursur never lets go of the image and all "clicking" capabilities become useless.  It even manages to lock up the rest of the computer, such that trying to restart manually doesn't work.  I litterally have to hold the power button till the MBP turns off and reboot.  I have looked for a way to unistall and reinstall the driving, but I'm either redirected to a non-Apple website or else I'm directed to the new "Retina" MBP section of the Apple store.  I don't have any other mouse that is connected to this computer, so there shouldn't be any weird interference between mutiple mice. 
    Is there an official applie support section where I can either download the proper driver to simply resinstall the orignal 2009-2010 MBP trackpad driver, or a way for the "Software Update" under the Apple logo in the top file bar to acknowledge this problem an automatically patch it?  I'd rather not have to go into an Apple store just to get this quirk (which doesn't happen 100% of the time anyways) figured out.  I simply don't want it to occur while I'm in the middle of a larger project and then get stuck being unable to save a document and I have to forcefully restart my entire computer (nuisance aside).
    Thank you,
    Hamilton

    Many Thanks, Kurt.
    I knew I'd seen the solution you've provided somewhere - either in MacWorld or MacFormat - but couldn't remember the Gatekeeper bit!
    I shall save it somewhere VERY safe now in case this happens again …
    You have made an old man very happy and saved me from worrying that senile decay had suddenly set in. (I was 70 last week so you might understand the situation from that.)
    Best wishes
    OllyanDinah

  • How to drop the datafile in a tablespace

    hi,
    I need to drop the datafile in a tablespace.How to drop the datafile in the tablespace.If iam able to drop the datafile and is it possible to create the datafiles with the same name.could u pls help me out..
    Thanks in advance,
    R.Ratheesh

    sql > alter database <datafile> offline drop ;
    sql > alter database open ;What if the datafile have the segments in it, I believe users will not be able to access them. And system will put the datafile to Recovry mode not drop it.
    Dropping a datafle is possible only in 10G. In 9i you can reduce the size of file below the size of your min extents so that the space wont be allocated from that datafile or you may need to recreate a new tablespace copy all the segments from old tablespace and drop old one.
    Cheers

  • ORA-03264: cannot drop offline datafile of locally managed tablespace

    Hi list
    A datafile was acidentally created on filesystem in one node of two nodes RAC.
    After that the filesystem on which the datafile was created was out of space because of automatic control file backup and sysadmin move this datafile to another device. And before this action RMAN backup stopped work.
    Now we replace the datafile to the original location, but it stay offline and recover status, and we cant bring them online because the customer dont have necessary archive logs to recover this datafile. RMAN backup is now working. But now we need to create a DataGuard on a third server and want to drop this datafile.
    This datafile dont have any data segment and stay in most critical tablespace of the customer application which have more datafiles. This datafile in question isnt the first datafile of the tablespace.
    SQL> select file#, status from v$datafile where name='/oracle/product/db/ars/dbs/arsystem.old';
    FILE# STATUS
    21 RECOVER
    SQL> select file#, status from v$datafile_header where name='/oracle/product/db/ars/dbs/arsystem.old';
    FILE# STATUS
    21 OFFLINE
    How can I drop this datafile?
    Thanks
    Cristiano

    Review this metalink note, what to do:
    How to 'DROP' a Datafile from a Tablespace
    Doc ID:111316.1
    If you cannot recover the datafile, you have to export the 'rest' of the tablespace (after statement 'alter database datafile '/oracle/product/db/ars/dbs/arsystem.old' offline drop;' was successfully issued). Afterwards drop the tablespace,recreate it and import the data).
    Werner

  • Drop a datafile that is offline and not on the OS

    I am running a 2 node rac on ASM . 10gR2 on HP UX.
    By mistake 1 datafile has been deleted on the OS , and that datafile is marked as offline in the dba_data_files.
    How can I drop the datafile from the database.
    since when I query the dba_data_files the datafile 10 ( which was deleted on OS ) , shows its still present and online_status is offline.
    The datafile is not required and also there is no backup for the datafile.
    Thanks

    Hi,
    ALTER DATABASE DATAFILE '<full file spec>' OFFLINE DROP;
    example: just give '+dg1/../../..' if it not exists also give the same
    Kind Regards,
    Rakesh Jayappa

  • Drop dbf file and then recover - possible?

    We have to 'startup mount' our database and then
    1. alter database datafile ....12.dbf offline
    2. recover using backupcontrolfile until cancel.
    Can we do this on oracle 9.1.7

    Hi,
    I am not sure if I have understood the question.
    Here is my translation of my understanding:
    - you have dropped a datafile and do not have a backup, right?
    - you want to recover the lost datafile, right?
    My question now is:
    - how did you drop the file?
    1. did you remove it on OS level?
    2. did you drop the tablespace?
    Here the possible answers:
    => 1: if you "just" removed the file from the OS it is no problem to recreate it and recover it, under the condition that you have all the redologs archived or online which contain all the changes applied to the db since the creation of the lost datafile. Oracle will know the creation change number for the file and will be able to create a new one. It works like this:
    SQL > ALTER DATABASE CREATE DATAFILE '<name of your lost file>';
    SQL> RECOVER DATAFILE '<name of your lost file>' -- number of the file is also possible
    SQL > ALTER DATABASE DATAFILE '<name of your lost file> ONLINE;
    => 2: if you have dropped teh entire database by DROP TABLESPACE ... INCLUDING CONTENTES AND DATAFILES; it is a little more tricky. Now you first need a controlfile which still contains the talespace information, because the tablesapce has been removed from the controlfile with the drop stsatement. And you can only recover what is in the controlfile. So you need a backup of the old controlfile, either a binary controlfile backup or a backup from a trace controlfile backup.
    In this case you must shutdown the db and startup with a backup controlfile. You must restore the entire db from backup and recover incomplete, which means loss of data!
    You must recover the whole db to a point in time short before the drop tablespace. YOu can find the timestamp for the drop tablespace in the alertSID.log file.
    The first thing you do is to take a full backup of the entire db including redologs and controlfile, just in case you make a mistake in order to be able to get back to where you started!!!
    Then resore db from backup.
    Then:
    SQL> RECOVER DATABASE UNTIL TIME <timestamp> USING BACKUP CONTROLFILE;
    Then you must open teh database with RESETLOGS:
    SQL> ALTER DATABASE OPEN RESETLOGS;
    The next thing you do is check if you met the point in time you wanted and then TAKE A NEW BACKUP OF THE ENTIRE DATABASE, because you do not have ya valid backup any more now. It is a new database you have, at least a new incarnation.
    Let me know if this was helpfull or if I have completely misunderstood your question.
    Good luck,
    Lutz

  • Dropping a datafile

    Can we drop one datafile from a tablspace?
    I have a tablespace TS1 which has 3 datafiles.i made one datafile offline and trying to drop that particular datafile....is it possible ?
    SQL> alter database datafile 'E:\ORACLE\ORADATA\TESTDB\KISH1.DBF' DROP;
    alter database datafile 'E:\ORACLE\ORADATA\TESTDB\KISH1.DBF' DROP
    ERROR at line 1:
    ORA-01916: keyword ONLINE, OFFLINE, RESIZE, AUTOEXTEND or END/DROP expected
    the errror is we are not giving the right option but Oracle itself is suggesting a DROP option...CAN ANYONE HELPME OUT
    THANKS

    I have tried this. If the tablespace contains objects, when you issue command
    alter tablespace <tablespace_name> drop datafile <datafile_name>;
    you will get ORA-03263
    If the tablespace is empty, you can drop the second datafile.
    It doesn't make sense to me to drop one of the datafile. You can drop the entire tablespace with "including contents and datafiles" and create another tablespace. I rarely got the situation to drop one of the datafile.

  • How can i drop datafile

    I have dropped a tablespace with drop tablespace incliding contents command
    Now how can i remove the datafile for that tablespace?

    I have dropped a tablespace with drop tablespace incliding contents command
    Now how can i remove the datafile for that tablespace?Whats the oracle version?
    If you used, drop tablespace tsname including contents, would drop the tablespace from the database.
    You have to manually remove the datafiles from OS.
    If could've used, drop tablespace tsname including contents and datafiles, would have dropped the tablespace as well as removed the datafiles from OS.

  • Drop datafile from tablespace

    I'm new to oracle.
    After I extended a tablespace I understood that it was too large.
    I've been reading about how to drop a tablespace, but I don't want to drop the entire tablespace. I just want to drop the last datafile of this tablespace.
    I know how to drop tablespaces in sapdba and brtools, but I don't know how I can drop one specific datafile (number 29) of the tablespace PSAPBTABD?
    Please Help med.
    Best regards
    Harald V

    Hello Harald,
    see please this thread:
    Re: How to drop data file?
    also the section 43. <i>How can I delete a data file that was created by mistake</i>
    in the SAP Note<i><b> 592393 - FAQ: Oracle</b></i>
    if you have Oracle 9i databases, it is not easy to drop a datafile, but in Oracle 10g
    you can drop a datafile like that:
    <b><i>ALTER TABLESPACE</i></b> <<u><i>Tablespace Name</i></u>> <b><i>DROP DATAFILE</i></b> '<<u>PATH und NAME of Datafile</u>>';
    for example,  you have a tablespace called PSAPC11 and you want to drop a datafile called dat.data15 of this tablespace, you can drop it like that:
    e.g. <b><i>alter tablespace</i></b> <u>PSAPC11</u> <b><i>drop datafile</i></b> <u>'/oracle/C11/psapc11/dat.data15'</u>
    Best regards
    Baran

  • How to drop datafiles and contents

    how to drop datafiles and contents without dropping tablespace?

    May be this helps,
    http://www.mydigitallife.info/2007/08/04/how-to-rename-or-move-oracle-tablespace-datafile-to-another-location/

Maybe you are looking for

  • How to pass Security Header from the Physical Service in ODSI

    We have to call a secured Web service using ODSI. We are trying to build a physical service in ODSI using a WSDL which has username token with password text policy inside it. The requests to that web service are bound by the security policy. But ODSI

  • Sound drops

    My iPod 3 is dropping sound, especially in the mid ranges. Highs and lows seem to be ok (though lows drop out some too), but mids are nearly non-existent. Anyone know what this is and how to correct it?

  • Need Help with giving Colors to Table Cells and Table Borders in Dreamweaver CC - Please!

    Hi, I am a teacher and use Dreamweaver CC to make my class web page. How do I give colors to the cell borders of a table I inserted?  How do I give colors and line thickness to table borders, too? I bought the David Powers DVD and it doesn't show tha

  • Portal Web parts work fine on server but not Windows 7 Machines

    Hi I was testing the Service Manager Portal on the server and couldn't get the web parts to load. I followed the steps here in this blog: http://www.code4ward.net/main/Blog/tabid/70/EntryId/139/Service-Manager-2012-Self-Service-Portal-not-working-bla

  • Field costs in maintenance order

    Good morning, DdsCabeç tab. the maintenance order (IW31/IW32/IW33) there is a field that costs just under the Note field. This field is released for publishing costs while the order is only with ABER status. I wonder if this release has the field to