Cannot drop undo tablespace

Hello:
I've created a new undo tablespace undotbs2. I've set it to the default undo tablespace. When I've tried to drop the old one, I get the following error:
SQL> conn / as sysdba
Connected.
SQL> DROP TABLESPACE undotbs1 INCLUDING CONTENTS AND DATAFILES;
DROP TABLESPACE undotbs1 INCLUDING CONTENTS AND DATAFILES
ERROR at line 1: ORA-01548: active rollback segment '_SYSSMU7$' found, terminate dropping tablespace
This is a production database. The service is down because the partition with the Oracle tablespaces: system, undo, temp, etc is full.
After shutting down the database the problem persist: I cannot drop the old undo tablespace because of the same error.
I've followed the note 1321093.1. Here the query results:
Select segment_name, status, tablespace_name, rs.segment_id
from dba_rollback_segs rs
where status not in ('ONLINE','OFFLINE');
_SYSSMU7$ PARTLY AVAILABLE UNDOTBS1 7
SELECT KTUXEUSN, KTUXESLT, KTUXESQN, /* Transaction ID */ KTUXESTA Status, KTUXECFL Flags
FROM x$ktuxe
WHERE ktuxesta !='INACTIVE' AND ktuxeusn =7;
7 47 382687 ACTIVE DEAD
SELECT LOCAL_TRAN_ID,GLOBAL_TRAN_ID,STATE,MIXED,COMMIT# FROM DBA_2PC_PENDING;
No rows
SELECT LOCAL_TRAN_ID,IN_OUT,DATABASE,INTERFACE FROM dba_2pc_neighbors;
No rows
As you can see, there is no pending transactions. No application is connected to the database (service is down), however the database is appling rollbacks since 2 days.
A lot of archivelogs are being created at rolling back (30 GB archivelogs per hour). Here a tail of the alertlog file:
Wed Apr 17 06:19:53 2013
Thread 1 advanced to log sequence 7382
Current log# 5 seq# 7382 mem# 0: /ora2/origlogs/webfrbr/redo05_m1.log
Current log# 5 seq# 7382 mem# 1: /ora3/mirrorlogs/webfrbr/redo05_m2.log
Wed Apr 17 06:21:16 2013
Thread 1 advanced to log sequence 7383
Current log# 6 seq# 7383 mem# 0: /ora2/origlogs/webfrbr/redo06_m1.log
Current log# 6 seq# 7383 mem# 1: /ora3/mirrorlogs/webfrbr/redo06_m2.log
Wed Apr 17 06:22:41 2013
Thread 1 advanced to log sequence 7384
Current log# 4 seq# 7384 mem# 0: /ora2/origlogs/webfrbr/redo04_m1.log
Current log# 4 seq# 7384 mem# 1: /ora3/mirrorlogs/webfrbr/redo04_m2.log
Wed Apr 17 06:24:02 2013
Thread 1 advanced to log sequence 7385
Current log# 5 seq# 7385 mem# 0: /ora2/origlogs/webfrbr/redo05_m1.log
Current log# 5 seq# 7385 mem# 1: /ora3/mirrorlogs/webfrbr/redo05_m2.log
Wed Apr 17 06:25:24 2013
Thread 1 advanced to log sequence 7386
Current log# 6 seq# 7386 mem# 0: /ora2/origlogs/webfrbr/redo06_m1.log
Current log# 6 seq# 7386 mem# 1: /ora3/mirrorlogs/webfrbr/redo06_m2.log
Wed Apr 17 06:26:46 2013
Thread 1 advanced to log sequence 7387
Current log# 4 seq# 7387 mem# 0: /ora2/origlogs/webfrbr/redo04_m1.log
Current log# 4 seq# 7387 mem# 1: /ora3/mirrorlogs/webfrbr/redo04_m2.log
Oracle Database - Enterprise Edition 10.2.0.3
Linux x86-64 Oracle Linux 5
Please, consider the output of the following queries too:
select * from V$FAST_START_TRANSACTIONS
USN 7 -- Undo segment number of the transaction
SLT 47 -- Slot within the rollback segment
SEQ 382687 -- Incarnation number of the slot
STATE RECOVERING --
UNDOBLOCKSDONE 0 -- Number of undo blocks completed on the transaction
UNDOBLOCKSTOTAL 2079151 -- Total number of undo blocks that need recovery
PID 15 -- ID of the current server it has been assigned to
CPUTIME 1153 -- Time for which recovery has progressed (in seconds)
PARENTUSN 0 -- Undo segment number of the parent transaction in PDML
PARENTSLT 0 -- Slot of the parent transaction in PDML
PARENTSEQ 0 -- Sequence number of the parent transaction in PDML
XID 07002F00DFD60500 -- Transaction ID
PXID 0000000000000000 -- Parent transaction ID
RCVSERVERS 1 -- Number of servers used in the last recovery
select * from x$ktuxe where ktuxecfl = 'DEAD';
ADDR 00002B3E808B9BD8
INDX 145
INST_ID 1
KTUXEUSN 7
KTUXESLT 47
KTUXESQN 382687
KTUXERDBF 2
KTUXERDBB 2080076
KTUXESCNB 424110769
KTUXESCNW 0
KTUXESTA ACTIVE
KTUXECFL DEAD
KTUXEUEL 3739
KTUXEDDBF 0
KTUXEDDBB 0
KTUXEPUSN 0
KTUXEPSLT 0
KTUXEPSQN 0
KTUXESIZ 2079151
select * from v$fast_start_servers;
RECOVERING 0 15 07002F00DFD60500
IDLE 0 16 0000000000000000
IDLE 0 17 0000000000000000
IDLE 0 18 0000000000000000
IDLE 0 19 0000000000000000
IDLE 0 20 0000000000000000
IDLE 0 21 0000000000000000
IDLE 0 22 0000000000000000
IDLE 0 25 0000000000000000
IDLE 0 26 0000000000000000
IDLE 0 27 0000000000000000
IDLE 0 28 0000000000000000
IDLE 0 29 0000000000000000
IDLE 0 30 0000000000000000
IDLE 0 31 0000000000000000
IDLE 0 32 0000000000000000
Any ideas to solve this issue?
Thank you in advance
Edited by: albrotar on Apr 17, 2013 1:48 AM
Edited by: albrotar on Apr 17, 2013 1:49 AM
Edited by: albrotar on Apr 17, 2013 1:51 AM
Edited by: albrotar on Apr 17, 2013 1:52 AM
Edited by: albrotar on Apr 17, 2013 1:54 AM

I've found some errors in alert log file occurred at shutting down the database:
+...+
Control autobackup written to DISK device
handle '/orabck/rman/webfrbr/ora_cfc-3587726327-20130414-00'
Completed: CREATE UNDO TABLESPACE undotbs2 DATAFILE '/orabck/undo/undotbs02.dbf'
SIZE 500M reuse autoextend ON NEXT 5M maxsize 32767M
Sun Apr 14 15:46:43 2013
Successfully onlined Undo Tablespace 5.
Undo Tablespace 1 moved to Pending Switch-Out state.
*** active transactions found in undo tablespace 1 during switch-out.
Sun Apr 14 15:46:44 2013
ALTER SYSTEM SET undo_tablespace='UNDOTBS2' SCOPE=BOTH;
Sun Apr 14 16:11:42 2013
ALTER ROLLBACK SEGMENT "_SYSSMU7$" offLINE
Sun Apr 14 16:11:42 2013
Completed: ALTER ROLLBACK SEGMENT "_SYSSMU7$" offLINE
Sun Apr 14 16:12:36 2013
DROP TABLESPACE undotbs1 INCLUDING CONTENTS AND DATAFILES
Sun Apr 14 16:12:36 2013
+...+
Thread 1 advanced to log sequence 5107
Current log# 4 seq# 5107 mem# 0: /ora2/origlogs/webfrbr/redo04_m1.log
Current log# 4 seq# 5107 mem# 1: /ora3/mirrorlogs/webfrbr/redo04_m2.log
Sun Apr 14 19:00:28 2013
Stopping background process CJQ0
Sun Apr 14 19:00:29 2013
Stopping background process QMNC
Sun Apr 14 19:00:31 2013
Stopping background process MMNL
Sun Apr 14 19:00:32 2013
Stopping background process MMON
Sun Apr 14 19:00:34 2013
Shutting down instance (immediate)
License high water mark = 31
Sun Apr 14 19:00:34 2013
Stopping Job queue slave processes
Sun Apr 14 19:00:34 2013
Job queue slave processes stopped
All dispatchers and shared servers shutdown
Sun Apr 14 19:00:42 2013
ALTER DATABASE CLOSE NORMAL
Sun Apr 14 19:04:28 2013
+...+
Thread 1 advanced to log sequence 5118
Current log# 6 seq# 5118 mem# 0: /ora2/origlogs/webfrbr/redo06_m1.log
Current log# 6 seq# 5118 mem# 1: /ora3/mirrorlogs/webfrbr/redo06_m2.log
Sun Apr 14 20:11:21 2013
Errors in file /ora1/admin/webfrbr/bdump/webfrbr_smon_4629.trc:
+ORA-07445: exception encountered: core dump [_intel_fast_memcpy.A()+10] [SIGSEGV] [Invalid permissions for mapped object] [0x2B6B66003000] [] []+*
Sun Apr 14 20:11:21 2013
Errors in file /ora1/admin/webfrbr/bdump/webfrbr_smon_4629.trc:
ORA-00600: internal error code, arguments: [999], [0x107C14015], [], [], [], [], [], []*
+ORA-07445: exception encountered: core dump [_intel_fast_memcpy.A()+10] [SIGSEGV] [Invalid permissions for mapped object] [0x2B6B66003000] [] []+*
Sun Apr 14 20:11:22 2013
+...+
Sun Apr 14 20:11:48 2013
Errors in file /ora1/admin/webfrbr/bdump/webfrbr_pmon_4617.trc:
ORA-00474: SMON process terminated with error
Sun Apr 14 20:11:48 2013
+...+
The instance could start up, but after this, it is recovering undo and generating redo since 2 days

Similar Messages

  • 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

  • Cannot drop a tablespace

    Hi,
    A datafile of my database has been deleted from the OS and cannot be recovered. The related tablespace exits in the database.
    I want to drop this tablespace, but oracle does not allow me to do so. I dont have the backup of the datafile.
    Can something be done.
    Regards
    ANiL.

    Hi
    If your database is in archivelog mode and u have all the archive files than u can recover this datafile
    no need to drop it or create the controlfile also.
    steps are ...
    [SUNSHINE ~]$ sqlplus
    SQL*Plus: Release 10.1.0.3.0 - Production on Wed Oct 11 16:14:20 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 209715200 bytes
    Fixed Size 778432 bytes
    Variable Size 191897408 bytes
    Database Buffers 16777216 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: '/home/oracle/orcl/data/abc.dbf'
    SQL> alter database create datafile '/home/oracle/orcl/data/abc.dbf' as '/home/oracle/orcl/data/abc.dbf';
    Database altered.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '/home/oracle/orcl/data/abc.dbf'
    SQL> recover database;
    Media recovery complete.
    SQL> alter database open;
    Database altered.
    SQL>
    Regards,
    Symal

  • Drop Undo Tablespace taking more than 1 hr

    Hi,
    To give you background, I had given an "insert into .. select" command which was inserting 3 millions of rows of rowidth approx 5000 bytes. The window on which it was given, was closed by mistake.
    After sometime when I checked the size of undo_tablespace, it was 5.5GB. I decided to create a new one and drop the old undo_tbsp.
    I have successfully created new undo tablespace and changed the same in spfile also.
    now when i am dropping the old undo tablespace, its taking long time. its almost an hour, but the tablespace has not been dropped yet.
    I have given following command
    drop tablespace undotbs_01 including contents;
    Any idea, why is it taking so much time, and how long should I wait?
    If someone can give me any other idea on how can I drop the tablespace, that will be great.
    Regards,
    Archana.

    To give you background, I had given an "insert into .. select" command which was inserting 3 millions of rows of rowidth approx 5000 bytes. The window on which it was given, was closed by mistake.This could be the cause.
    I wonder the killed/closed session doesn't hangup with a latch or lock.
    Since the old undo tbs had active transaction, it might have to pending offline status. If so, you can drop it.
    Jaffar

  • Help Dropping Undo Tablespace

    Guys,
    I want to create a new undo tablespace and drop the old one.
    I followed the below steps, but could not drop it
    create undo tablespace UNDOTBS datafile '/ora01/oradata/DEVTDB/undotbs.dbf' size 100m AUTOEXTEND ON MAXSIZE 5G;
    alter system set undo_tablespace=UNDOTBS scope=both;
    alter tablespace UNDOTBS1 offline; -- this was successful
    DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS;
    -- Last command threw the following error:
    ORA-01548: active rollback segment '_SYSSMU6$' found, terminate dropping tablespace
    I am using oracle 10.2.0.4G on Linux Redhat.
    Any help is appreciated.
    Thanks!

    Charlov wrote:
    Guys,
    I want to create a new undo tablespace and drop the old one.
    I followed the below steps, but could not drop it
    create undo tablespace UNDOTBS datafile '/ora01/oradata/DEVTDB/undotbs.dbf' size 100m AUTOEXTEND ON MAXSIZE 5G;
    alter system set undo_tablespace=UNDOTBS scope=both;
    alter tablespace UNDOTBS1 offline; -- this was successful
    DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS;
    -- Last command threw the following error:
    ORA-01548: active rollback segment '_SYSSMU6$' found, terminate dropping tablespace
    I am using oracle 10.2.0.4G on Linux Redhat.
    Any help is appreciated.
    Thanks!Hi,
    I think you need to wait until there's no active rollback segments in the old undotbs before you can drop it. You can also restart the instance to force Oracle to release the old undotbs.
    HtH
    //Johan

  • Drop undo tablespace

    Tive que criar uma segunda undo tablespace, mas agora não preciso mais dela. Posso apagá-la normalmente com um drop tablespace ou tenho que fazer alguma verificação antes? Ela não é mais a undo tablespace da instância.

    Tive que criar uma segunda undo tablespace, mas agora
    não preciso mais dela. Posso apagá-la normalmente com
    um drop tablespace ou tenho que fazer alguma
    verificação antes? Ela não é mais a undo tablespace
    da instância.Writing in a language different from english greatly reduces your chances to receive an answer. The official forum language is english. People here have made a great effort to reply to your post. You could try those on-line translators to translate from Portuguese to English, instead of letting the posters translate your request.
    On the other hand, once you have created a second undo tablespace which is no longer requried, just drop the tablespace, assuming you have not declared this as your database undo tablespace at the UNDO_TABLESPACE instance parameter. You may issue the command:
    drop tablespace yourUndoTablespace including contents and datafiles;
    and you are done.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Drop undo tablespace but space not release (du and df show different value)

    hi guys,
    i just change my undo and drop the previous 1.
    create undo tablespace UNDOTBS4 DATAFILE '/u03/oradata/starhub/undotbs4.dbf' size 2g;
    Tablespace created.
    SQL> ALTER SYSTEM SET UNDO_TABLESPACE = undotbs4;
    System altered.
    SQL>  drop tablespace undotbs3 including contents and datafiles;
    Tablespace dropped.
    SQL>
    However, when i check my diskspace using df -h , it is still showing. 32 gig is used. where infact, only 30G should be used.
    71G 32G 37G 47% /u03
    when i check using du -h, it is showing only
    30G ./oradata
    I have to bounce the database to get my 2G back, why ?
    Is there anyway to get my 2G back without bouncing the DB ?
    Regards,
    Noob

    Oracle has the file still open, so the i-node of that file is still in use, so the file shows up.
    Learn your Unix!
    Sybrand Bakker
    Senior Oracle DBA

  • Dropping Undo Tablespace

    Hi,
    I am running Oracle 9.2 on Solaris. I have Automatic undo management turned on and have a Undo tablespace by name UNDOTBS. It has a single datafile and has AUTOEXTEND feature turned on. My UNDO_RETENTION was set to 4 hours.
    Presently, the size of UNDOTBS has grown to around 40G and has filled up the file system in which it resides. I need to clean up the file system. In order to do this, I followed the below procedure.
    SQL> create undo tablespace UNDOTBS1 datafile '/u04/oradata/proddb/undo_00.dbf' size 1024M autoextend off;
    SQ> alter system set undo_tablespace=undotbs1 scope=both;
    SQL> alter system set undo_retention=3600 scope=both;
    Now, i checked the alert log and it is offlining all the UNDO segments of the first undo tablespace UNDOTBS. It is taking time and has been more than 1.5 hours. I have a couple of questions here,
    1. As i have issued "alter system undo_tablespace=undotbs1 scope=both", all the new transactions will use the new UNDOTBS1. No new transactions will be using the first undo tablespace UNDOTBS right?
    2. Since, i have issued "alter system undo_retention=3600 scope=both", all the transactions in first undo tablespace UNDOTBS will be rolled back after 2 hours, no matter if it is commited or not. After this period, i am safe to drop the first undo tablespace using "drop tablespace UNDOTBS including contents and datafiles;". Did i get it right?
    Any information will be of a great help.
    THanks,
    Harris.

    Hi,
    Thank you all for the replies. It has been two days since i switched the undo_tablespace to use the new tablespace(undotbs1) but my alert log is still being flooded with " Undo tablespace 1 moved to pending switch out state". I tried the following to see if there are any rows returne from the above query and it did 3 rows, showing some undo segments with the following output
    SQL> select a.name, b.status from v$rollname a, v$rollstat b where a.name in (select segment_name from dba_segments where tablespace_name='UNDOTBS') and a.usn=b.usn;
    Name Status
    _SYSSMU15$      UNKNOWN
    _SYSSMU33$      UNKNOWN
    _SYSSMU9$        PENDING OFFLINE
    I have seen gone through the metalink id: 341372.1 that speaks about this SWITCH-OUT state. How can i make sure what old transactions are still using the Undo segments in first undo tablespace and how can i go about killing them. Could anyone please let me know that i could use the following queries to find the correct sessions that are using the Old Undo tablespace.
    SQL> select ADDR, XIDUSN,STATUS, START_TIME from v$transaction;
    SQL> SELECT
    a.usn,
    a.name,
    b.status,
    c.tablespace_name,
    d.addr,
    e.sid,
    e.serial#,
    e.username,
    e.program,
    e.machine,
    e.osuser
    FROM
    v$rollname a,
    v$rollstat b,
    dba_rollback_segs c,
    v$transaction d,
    v$session e
    WHERE
    a.usn=b.usn AND
    a.name=c.segment_name AND
    a.usn=d.xidusn AND
    d.addr=e.taddr AND
    b.status='PENDING OFFLINE';
    Just wanted to make sure that the second query lists the PENDING OFFLINE segments of the first tablespace right?
    This is a prod. box, so wanted to confirm with you guys before proceeding.
    Thanks,
    Harris.

  • Cannot drop tablespace

    I cannot drop the tablespace create earlier today by me. The tablespace have 2 files and they are empty. Here is the case.
    Thansk a lot,mj
    SQL> select tablespace_name from dba_tablespaces;
    TABLESPACE_NAME
    SYSTEM
    UNDOTBS1
    SYSAUX
    TEMP
    ADDR_IX2
    CFG_DATA
    CFG_IX
    TS_ATTR_IX
    TS_Nums_DT
    TS_NAME_DT
    TS_INSERT_ONLY_DT
    11 rows selected.
    Elapsed: 00:00:00.01
    SQL> drop tablespace TS_Nums_DT INCLUDING CONTENTS and datafiles;
    drop tablespace TS_Nums_DT INCLUDING CONTENTS and datafiles
    ERROR at line 1:
    ORA-00959: tablespace 'TS_NUMS_DT' does not exist

    As Aron says, there may be other, non-printing, characters in the name. You can check this by running:
    SELECT DUMP(tablespace_name)
    FROM dba_tablespaces
    WHERE tablespace_name like 'TS\_N%' ESCAPE '\'Which will give you the ascii values of the characters in the tablespace name like this:
    SQL> SELECT DUMP(tablespace_name)
      2  FROM dba_tablespaces
      3  WHERE tablespace_name = 'ONECALL';
    DUMP(TABLESPACE_NAME)
    Typ=1 Len=7: 79,78,69,67,65,76,76
                  O  N  E  C  A  L  LHTH
    John

  • Droping an undo tablespace ????????????????

    Hi Gurus,
    How to drop an undo tablespace in oracle 10.2.
    when i issue drop tablespace undo including contents
    it shows like "ORA-30013: undo tablespace 'UNDO' is currently in use"
    Pls help it out......
    Regards
    Rajesh

    The reason why you cannot drop this tablespace is because it has been declared as the undo tablesapace for the database by means of the UNDO_TABLESPACE instance parameter.
    You have to create a new undo tablespace and change the undo_tablespace instance parameter value to point to the new undo tablespace:
    ALTER SYSTEM SET UNDO_TABLESPACE=<N EW UNDO TS>;
    Afterwards you will have to wait for a while before you are able to drop the current tablespace if there are active transactions or if the information is still required to perform flashback queries (it depends on the UNDO_RETENTION instance parameter), so it is suggested to temporarily reduce this value so you can perform the switch to the new tablespace and you can get rid of the current tablespace.
    ~ Madrid
    http://hrivera99.blogspot.com/

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

  • Drop Temporary Tablespace!

    Hi All,
    I have tried dropping my old temporary tablespace TEMP after making new TEMP2 as default.
    All the users (checked in dba_users) are using TEMP2 as default temporary tablespace.
    Now, issue is when I am trying to take TEMP offline and dropping it some of the users are not able to open the forms.
    Please suggest, is it necessary that I must do this activity after taking a proper downtime or I can do it in business hours.
    Thanks,
    Anchorage

    It's done now!!!
    Actually issue was
    You cannot drop a tablespace if it contains any rollback segments holding active transactions.*
    Try to check whether any one using the temp segments or not on query "v$sort_usage"*
    If it returns the rows, the sessions are using the temp tablespace. Once the Sessions Closes then the the command execution will be completed, else you and go head and kill the session with respect to session Id.*
    Which was been explained to me by Pavan in General Database Forum!
    I have killed the active session and it was success!
    Anchorage

  • Unable to drop und tablespace

    Iam getting error when dropping undo tablespace
    drop tablespace undotbs1 including contents and datafiles;+
    ORA-01548: active rollback segment '_SYSSMU1$' found, terminate dropping tablespace+
    Version 10.2
    Thanks in Advance
    Abk

    as per the document
    http://www.dba-oracle.com/t_fix_undo_log_corruption.htm
    select
    segment_name,
    status
    from
    dba_rollback_segs
    where
    tablespace_name='undotbs1'
    and
    status = ‘NEEDS RECOVERY’;
    _SYSSMU1$
    _SYSSMU2$
    _SYSSMU3$
    _SYSSMU4$
    _SYSSMU5$
    _SYSSMU6$
    _SYSSMU7$
    _SYSSMU8$
    _SYSSMU9$
    _SYSSMU10$
    _SYSSMU11$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Separate UNDO tablespace for each instance

    Version: 10.2.0.4, 11.2.0.2
    I've noticed that there is an UNDO tablespace for each instance in RAC. Since UNDO tablespace lies in the shared storage, isn't it better to have just one UNDO tablespace for all instances?

    Max wrote:
    Version: 10.2.0.4, 11.2.0.2
    I've noticed that there is an UNDO tablespace for each instance in RAC. Since UNDO tablespace lies in the shared storage, isn't it better to have just one UNDO tablespace for all instances?Each instance in the RAC system can only use one undo tablespace at a time. In other words, instances cannot share undo tablespaces. Each instance in the cluster, being an independent transaction-processing environment, maintains its own UNDO area for undo management.
    Either automatic undo management or rollback segment undo can be used to manage undo space. If the automatic rollback method will be used, set the global parameter undo_management to auto in the server parameter file, and set the undo_tablespace parameter to assign the undo tablespace to the instance.
    The RAC system allows the creation and use of several undo tablespaces. When the instance is started, it uses the first available undo tablespace. A second instance will use another undo tablespace. Thus, each instance in a RAC system will have exclusive access to a particular undo tablespace at a given time. The undo tablespace cannot be shared among the instances at the same time. Only once an undo tablespace is released by an instance, it can be assigned to another instance. However, all instances can read blocks from any or all undo tablespaces for the purpose of constructing read-consistency images.
    source:http://www.dba-oracle.com/real_application_clusters_rac_grid/undo_management.htm

Maybe you are looking for

  • How do I get drop shadows to work correctly when using HTML5 to publish?

    When publishing this course in HTML 5, drop shadows applied to smart shapes go a little haywire. What settings can I update on these objects to make them appear correctly?  Thanks for your help! Object settings: White solid fill, opactiy 100% 1pt str

  • User Accerss to InfoView Folder Structure

    I have a general question on InfoView. I have an installation that will have 30 folders containing standard reports for 30 different groups. I need to allow users to view only the folder that pertains to their group and not any other. I donu2019t wan

  • How was this done (Stacking)?

    Hello! How was this effect done? http://www.riccardomagherini.com/fine_art/, I think I know how it is finished in PS, but how do you shoot this?

  • Spotlight Search for Application Names

    Hello, I use Mac OS X 10.5.2 localized for the Dutch language; since a few days Spotlight refuses to give any results when I look for the localized application name, e.g. 'Netwerkhulpprogramma' which is the Dutch name for 'Network Utility'. When I lo

  • Apple tv2 doesn't show picture subfolders

    Hi, I'm having Problems with my Apple tv 2. I'm using Win XP and Picasa and everything on the pc is in fine shape, means all Pictures are sorted in subfolders - but on my Apple-tv there is only one folder with lots of pictures in it. No sorted subfol