Drop undo datafile

Hi,
Database is 10.2.0.4
I m planning to drop my undo datafile ..im falling short of space on server
I have 2 undo datafiles in different mount points. First one is 10GB and second one is 2 GB
Can i go ahead...i hope there is no risk in dropping second undo file...
Pls advice
Thanks

Create a new undo tablespace
switch database to then new undo tablespace
drop the old one undo tablespace
Don't drop just one datafile. undo tablespace is in use as Your db is in use and probably some activity is going there.

Similar Messages

  • Drop UNDO Datafiles.

    Hi,
    I want to drop some UNDO datafiles from the UNDO tablespace.
    Can some one suggest how can it be done.
    the database is shutdown.
    Oracle 10g
    Sun solaris

    Read the Admin guide?

  • Deleted undo datafile before dropping the tablespace.

    i had accidently deleted a undo datafile which was no more needed before dropping the tablespace.
    i started up the database in mount stage by making that datafile offline.
    now while dropping the database it is giving an error.
    SQL> drop tablespace UNDOTBS1 ;
    drop tablespace UNDOTBS1
    ERROR at line 1:
    ORA-01548: active rollback segment '_SYSSMU1$' found, terminate dropping tablespace
    Do someone have a resolution. I dnt need this tablespace anymore.

    http://www.my-whiteboard.com/oracle-dba/how-to-drop-and-recreate-oracle-undo-tablespace-and-its-data-files.html may be helpful to you.

  • Dropping UNDO did not free space at OS level

    Hi,
    As my UNDO tablespace grew very large, i had to drop it by creating a second UNDO tablespace and switching the database to use it. After i successfully dropped the first UNDO, the file systems, which hosted the datafiles of the first UNDO still shows that they are 100% full. I have checked the alert log and everthing looks perfectly fine with the following message
    drop tablespace undotbs1 including contents and datafiles
    delted file '/u04/oradata/sunshine/undotbs1.dbf'
    deleted file '/u06/oradata/sunshine/undotbs1_1.dbf'
    Completed: drop tablespace undotbs1 including contents and datafiles
    Even the two datafiles 'undotbs1.dbf' and 'undotbs1_1.dbf' were deleted with the "drop tablespace ........" command itself.
    Is it required to bounce the database for the changes to be reflected at the OS level?
    Any insight?
    THanks,
    Harris.

    Hi,
    My Oracle version is 9.2.0.5 and i am running on Solaris 9. I have created a new UNDO tablespace UNDOTBS2 and dropped the old UNDO tablespace UNDOTBS1. After i issued the "drop tablespace UNDOTBS1 including contents and datafiles" it deleted the physical datafiles at the OS level too. I do not see any datafiles of the first dropped undo tablespace UNDOTBS1 in the directories specified i.e.,
    '/u04/oradata/sunshine/undotbs1.dbf'
    '/u06/oradata/sunshine/undotbs1_1.dbf'
    So, the tablespace along with datafiles has been dropped (at the OS level too) with the "drop tablespace........" command itself. But, the file system still does not show the freed up space. I have altered the system to use the second undo tablespace UNDOTBS2 before dropping the first.
    The second undo UNDOTBS2 has auto extend off, so there is no issue of this increasing to this much of size. The first undo tablespace that i dropped was around 15G of size and it has autoextend ON.
    Any suggestions?
    Thanks,
    Harris.

  • Cannot drop undo tablespace with Active extents but no active sessions

    Hi all,
    I am running on 10gr2 oracle database in a Linux 32 bit environment.
    I have a corrupted undo datafile. I've been able to recover the datafile but still the alert logs is still showing that it is corrupted.
    Now what I'm trying to do is to drop the old undo tablespace like the one discussed here Change undo tablespace in Oracle - Switch Oracle's Undo tablespace.
    My problem is I have an Active extent but no active session corresponding to it:
    SYS@ccasdb AS SYSDBA > SELECT a.name,b.status
    FROM   v$rollname a,v$rollstat b
    WHERE  a.usn = b.usn
    AND    a.name IN (
                      SELECT segment_name
                      FROM dba_segments
                      WHERE tablespace_name = 'UNDOTBS1'
                     );  2    3    4    5    6    7    8
    NAME                           STATUS
    _SYSSMU18$                     PENDING OFFLINE
    SYS@ccasdb AS SYSDBA > SELECT a.name,b.status , d.username , d.sid , d.serial#
      2  FROM   v$rollname a,v$rollstat b, v$transaction c , v$session d
      3  WHERE  a.usn = b.usn
      4  AND    a.usn = c.xidusn
      5  AND    c.ses_addr = d.saddr
      6  AND    a.name IN (
      7               SELECT segment_name
      8               FROM dba_segments
      9               WHERE tablespace_name = 'UNDOTBS1'
    10              );
    no rows selected
    but still cannot drop the undotablespace.
    SYS@ccasdb AS SYSDBA > drop tablespace UNDOTBS1 including contents and datafiles;
    drop tablespace UNDOTBS1 including contents and datafiles
    ERROR at line 1:
    ORA-30013: undo tablespace 'UNDOTBS1' is currently in use
    Regards,
    Tim

    Yes i was able to recover the datafile but the alert_log kept on prompting that it is still corrupted. The datafile's status is online.
    I want to kill the session/s contributing to the PENDING OFFLINE status of the rollback segment so I can already drop the undotablespace and so
    that the alert log will stop prompting for that corrupted datafile in that UNDOTABLESPACE.
    Can i Just alter the tablespace's datafiles to offline drop then just drop it. Then I drop the tablespace?

  • Dropping Undo Tablespace 9i

    Hey Folks,
    I really need some help here.
    I'm trying to drop/recreate the undo tablespace (currently 25gig) Oracle 9i
    When I try to drop the undo tablespace 'UNDOTBS1' I get the following error:
    “ORA-01548: active rollback segment '_SYSSMU1$' found, terminate dropping tablespace”
    Here's what I have tried so far:
    - Bounced the DB several times hoping to get rid of the reference to the active rollback segment. No luck.
    - Created a new undo table space
    - Tried 'Alter system set undo_tablespace=new_one' (noticed that 10 new rollback segs were created '_SYSMU11$..SYSMU20$' pointing to the new undo tablespace)
    - I then performed an offline drop of the undo tablespace data file. After the offline drop, the system rollback segs SYSMU01$..SYSMU10$ went offline as would be expected.
    - Even with the new undo tablespace, all other application tablespaces still use the old undo which due to the offline drop, no inserts, deletes, etc. will work.
    After all the above, I still get the same error when trying to drop the undo tablespace.
    Any ideas? Ideally I would like to be able to drop the undo tablespace and recreate it, but at this point I'd be happy to bring back the undo tablespace datafile so we can at least use the database again.
    Thanks in advance!!
    Colin

    SQL> show parameters undo
    undo_retention integer
    10800
    undo_suppress_errors boolean
    FALSE
    undo_tablespace string
    UNDOTBS03
    r.- The undo tablespace which the database is looking for is this one ( UNDOTBS03 )
    What is strange about the lines above is that I have
    all those params above commented out in my
    \pfile\init.ora file (and have bounced the db).
    I’m not sure why they are still showing up.
    r.- Perhaps your instance is started with the spfile instead of the init file
    Here's what we did after the UNDOTBS1 tablespace
    caused the disk to run out of space during a large
    import (from now on we are going to use commit = y):
    1. Created a new undo tablespace UNDOTBS03 - got
    errors so instead we to created it as a temp
    tablespace UNDOTBS03 which worked. r.- Yes, but that tablespace was created as a UNDO TABLESPACE ?
    2. Tried to drop UNDOTBS1 got the following error
    msg:
    ORA-01548: active rollback segment '_SYSSMU1$' found,
    terminate dropping tablespacer.- Of course, the database did not allow to drop it beacause there were pending transactions
    3. SQL> alter system set undo_tablespace =
    'UNDOTBS03' scope = both. Tried dropping UNDOTBS1.
    Same error as in #2 above.r.- There were still pending transactions with the older undo tablespace
    4. We then offline dropped the datafile associated
    with UNDOTBS1 hoping that would then allow us to drop
    UNDOTBS1. Same error as #2.r.- That was the worst you did. You can not drop a tablespace so...
    5. Then tried creating a undo tablespace again:
    Create UNDO tablespace undo_temp
    datafile 'D:\oracle\oradata\usbperf\undo_temp.DBF'
    size 25m autoextend on;
    Error on line 0
    Create UNDO Tablespace undo_temp
    datafile 'D:\oracle\oradata\usbperf\undo_temp.
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00376: file 2 cannot be read at this time
    ORA-01110: data file 2:
    'D:\ORACLE\ORADATA\USBPERF\UNDOTBS01.DBF'
    So that’s where we are. I'm guessing that the
    original undo tablespace corrupted when it tried to
    extend and ran of disk space?
    Thanks again for the help.
    Colin ok I can guide to solve this but you have to do what I am going to tell you step by step. Is this a production database ?
    Joel Pérez
    http://www.oracle.com/technology/experts

  • Undo datafile recover

    hi
    In undo tablespace 3 datafiles are there one datafile damaged now wt is the statud of database.
    how can i recover that corrupted file.

    Hi.You say that your database running in archivelog mode then you can try *"alter database create datafile as"* if this statement does not any effect then you need drop this datafile and you can create new undo tablespace then switch this tablespace.Following example will help you.
    1.Backup your database.
    2.Delete from OS level this/corrupted datafile then
    C:\Documents and Settings\chinar>sqlplus "sys/sm as sysdba"
    SQL*Plus: Release 10.2.0.2.0 - Production on Tue Jun 22 11:50:02 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> archive log list;
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     1
    Next log sequence to archive   3
    Current log sequence           3
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  138412032 bytes
    Fixed Size                  1288172 bytes
    Variable Size              67110932 bytes
    Database Buffers           62914560 bytes
    Redo Buffers                7098368 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS3'
    SQL> alter database create datafile  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDO
    TBS3' as  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS3';
    Database altered.
    SQL> recover datafile  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS3';
    Media recovery complete.
    SQL> alter database open;
    Database altered.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  138412032 bytes
    Fixed Size                  1288172 bytes
    Variable Size              67110932 bytes
    Database Buffers           62914560 bytes
    Redo Buffers                7098368 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS3'
    SQL> alter database datafile  'D:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS3' o
    ffline drop;
    Database altered.
    SQL> alter database open;
    Database altered.
    SQL>If you can not do these then create new undo tablespace then switch to this.In additionally see below link
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/undo.htm#i1106407
    Edited by: Chinar on Jun 22, 2010 12:06 AM

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

  • 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

  • Recover from dropped SYSAUX datafile

    Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups, but I want to drop the tablespaces (not SYSAUX) and in trying to do so, I'm getting an error about the SYSAUX tablespace for some reason. How can I rebuild or recover from the SYSAUX issue, since I cannot drop the SYSAUX tablespace, as it seems to be preventing me from dropping any of the other tablespaces that have missing datafiles as well. I really just need to recreate the tablespaces, but get the below error when I try to drop the schemas (with cascade) or the tablespaces (including contents).
    SQL> drop tablespace DATA001 including contents;
    drop tablespace DATA001 including contents
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 2
    ORA-00376: file 3 cannot be read at this time
    ORA-01111: name for data file 3 is unknown - rename to correct file
    ORA-01110: data file 3: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\MISSING00003'
    ORA-06512: at line 19
    Any help to get past the first issue of dropping the non-SYSTEM tablespaces would be great, and any follow-up on how to rebuild/recreate/recover from the dropped SYSAUX datafiles would be appreciated as well.
    DB is 10gR2 on Windows.

    user4257171 wrote:
    Trying to recover a DEV database without rebuilding it, but not hopeful at this point. Basically, someone dropped the SYSAUX (and a few other) datafiles, so now they are showing up in the database as MISSING0003 instead of the actual filename. There are no backups,
    > DB is 10gR2 on Windows.
    Without backups you are not going to be able recover the dropped data files. Given that one of the tablespaces was the required SYSAUX tablespace you are most likely looking at a rebuild instead of a restore.

  • Block corruption in UNDO datafile

    Hi,
    I am getting block corruption problem related to undo datafile on my pre production db.
    Alert log says:
    Tue Jun 24 17:59:38 2008
    Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
    ORA-01578: ORACLE data block corrupted (file # 2, block # 121)
    ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
    Tue Jun 24 17:59:38 2008
    Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
    ORA-01578: ORACLE data block corrupted (file # 2, block # 137)
    ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
    Tue Jun 24 17:59:38 2008
    Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
    ORA-01578: ORACLE data block corrupted (file # 2, block # 57)
    ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
    Tue Jun 24 17:59:38 2008
    Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
    ORA-01578: ORACLE data block corrupted (file # 2, block # 25)
    ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
    Tue Jun 24 17:59:38 2008
    Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
    ORA-01578: ORACLE data block corrupted (file # 2, block # 105)
    ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
    Tue Jun 24 17:59:38 2008
    Errors in file /oracle/admin/CBOPROD/bdump/cboprod_pmon_2596886.trc:
    ORA-01578: ORACLE data block corrupted (file # 2, block # 73)
    ORA-01110: data file 2: '/oracle/oradata/CBOPROD/undotbs01.dbf'
    Tue Jun 24 17:59:38 2008This issue happend while loading the data into db. I am more worried about data rather than availability as we took a good time move production data.
    I have the cold backup of last night using RMAN (at mount stage) and my db is running in Archive log mode.
    Please suggest to how to approach in current scnario.
    OS: AIX 5.3
    Oracle: 10.2.0.3.0
    Thanks for your time
    Bhupinder

    Bhupinder,
    The problem here it is your undo tablespace, and you are getting this error, because Oracle is hitting these blocks to use them.
    You could try to create a new undo tablespace, but this measure is a bit strange, as obviously you can change the undo tablespace only without current transactions. If you can change the undo tablespace why recover the inactive undo tablespace?
    I would probably try to change the undo tablespace, and if that fails there really is no other solution than at least restore the entire undo tablespace. Likely undo is disabled in mount stage so this should work.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • 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

  • 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 offline Datafile

    Oracle Database version - 10.2.0.3
    I have a tablespace with 2 datafiles. One of the datafile is offline since couple of months. Now I am trying to drop the offline datafile but its not possible to drop that datafile.
    As its production environment I can not take the tablespace in offline mode.
    Can anyone please suggest suitable solution to drop the datafile?
    Regards,
    Sandeep

    SQL> alter tablespace AUDIT_REPORT drop datafile '/data/zus26d-0701/oracle/u04/PZHINF01/cust_idx_04.dbf';
    alter tablespace AUDIT_REPORT drop datafile '/data/zus26d-0701/oracle/u04/PZHINF01/cust_idx_04.dbf'
    ERROR at line 1:
    ORA-03264: cannot drop offline datafile of locally managed tablespace
    SQL>

  • How to drop the datafile?

    Hello Everybody
    is it possible to drop the datafile? i have run the query ALTER DATABASE DATAFILE 'c:\oracle\oracle_db\m300\user\user01.dbf' offline drop. After i checked with DBA_DATA_FILES its there.Can any one help in this regards
    Regards
    Hameed

    Please see this link:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/dfiles.htm#i1006556
    Restrictions for Dropping Datafiles
    The following are restrictions for dropping datafiles and tempfiles:
    The database must be open.
    If a datafile is not empty, it cannot be dropped.
    If you must remove a datafile that is not empty and that cannot be made empty by dropping schema objects, you must drop the tablespace that contains the datafile.
    You cannot drop the first or only datafile in a tablespace.
    This means that DROP DATAFILE cannot be used with a bigfile tablespace.
    You cannot drop datafiles in a read-only tablespace.
    You cannot drop datafiles in the SYSTEM tablespace.
    If a datafile in a locally managed tablespace is offline, it cannot be dropped.
    Regards

Maybe you are looking for

  • Is there a for-each statement in XSQL like the one in XSL?

    I'm trying to do the following: <?xml version="1.0" ?> - <!-- <?xml-stylesheet type="text/xsl" href="/dvd/xsl/admin/listuser.xsl"?> --> - <database> - <request> - <parameters> - <row> <checkboxuser>jonathan</checkboxuser> </row> - <row> <checkboxuser

  • Time Capsule Hard Drive/External Hard Drive

    Hello all, Just a quick question, will probably sound ridiculously stupid but here we go: Is it possible to use time capsule with my external hard drive, but also create another folder that I can simply drag and drop films, music etc into? Keeping th

  • Just upgraded GC to 10.2.0.4 on Linux x64

    We just upgraded our OMS GC from 10.2.0.3 to 10.2.0.4 and I have a few questions. Right now, we only manage Linux and Solaris hosts (about 20 total right now.) The big reason we upgraded to 10.2.0.4 is so we could monitor our SQL Servers that we have

  • Why is 11.1.3 opening all on its own?

    The app is opening randomly on its own and even after I close the app and force close it in some instances, it continuously opens and I can't accomplish a thing as it starts playing music...and randomly starts and stops the song. It is very weird and

  • IPhone, Wi-Fi and LAN

    I have an iPhone and connected it with Wi-Fi / WLAN. So I'm able to surf in internet. But if I want to look at a local Web server (in LAN) it is not found by Safari. What have I done wrong? All IP adresses are correct. Sometimes I'm asked for usernam