Can long lasting transaction fill up undo tablespace .

Hi,
Let's say we are on 9.2.0.8 and have long lasting transaction , I mean we started some update (1 row only but no commit/rollback) and do nothing for a couple of days .
So the amount of undo is minimal ,but we are having one undo slot used and 1 entry in undo transaction table .
Is that some kind of dangerous ? As far as I know undo is kind of circular buffer so we are fixing some upper end and preventing new transaction from using lower 'end' .
Please elaborate . I've noticed some GUI reports such situation as undo 100% full , not sure if thats ok .
Regards
GregG

Thanks, I knew it, my configuration is as follows (9.2.0.8):
SQL> select * from dba_rollback_segs ;
SEGMENT_NAME                   OWNER  TABLESPACE_NAME                SEGMENT_ID    FILE_ID   BLOCK_ID INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE STATUS           INSTANCE_NUM                             RELATIVE_FNO
SYSTEM                         SYS    SYSTEM                                  0          1          9         114688                       1       32765              ONLINE                                                               1
_SYSSMU1$                      PUBLIC UNDOTBS                                 1          2          9         131072                       2       32765              ONLINE                                                               2
_SYSSMU2$                      PUBLIC UNDOTBS                                 2          2         25         131072                       2       32765              ONLINE                                                               2
_SYSSMU3$                      PUBLIC UNDOTBS                                 3          2         41         131072                       2       32765              ONLINE                                                               2
_SYSSMU4$                      PUBLIC UNDOTBS                                 4          2         57         131072                       2       32765              ONLINE                                                               2
_SYSSMU5$                      PUBLIC UNDOTBS                                 5          2         73         131072                       2       32765              ONLINE                                                               2
_SYSSMU6$                      PUBLIC UNDOTBS                                 6          2         89         131072                       2       32765              ONLINE                                                               2
_SYSSMU7$                      PUBLIC UNDOTBS                                 7          2        105         131072                       2       32765              ONLINE                                                               2
_SYSSMU8$                      PUBLIC UNDOTBS                                 8          2        121         131072                       2       32765              ONLINE                                                               2
_SYSSMU9$                      PUBLIC UNDOTBS                                 9          2        137         131072                       2       32765              ONLINE                                                               2
_SYSSMU10$                     PUBLIC UNDOTBS                                10          2        153         131072                       2       32765              ONLINE                                                               2
_SYSSMU11$                     PUBLIC UNDOTBS                                11          2       1281         131072                       2       32765              ONLINE                                                               2
_SYSSMU12$                     PUBLIC UNDOTBS                                12          2       4673         131072                       2       32765              ONLINE                                                               2
_SYSSMU13$                     PUBLIC UNDOTBS                                13          2         17         131072                       2       32765              ONLINE                                                               2
_SYSSMU14$                     PUBLIC UNDOTBS                                14          2        169         131072                       2       32765              ONLINE                                                               2
_SYSSMU15$                     PUBLIC UNDOTBS                                15          2        193         131072                       2       32765              OFFLINE                                                              2
_SYSSMU16$                     PUBLIC UNDOTBS                                16          2        209         131072                       2       32765              OFFLINE                                                              2
_SYSSMU17$                     PUBLIC UNDOTBS                                17          2       1217         131072                       2       32765              OFFLINE                                                              2
_SYSSMU18$                     PUBLIC UNDOTBS                                18          2       1233         131072                       2       32765              OFFLINE                                                              2
_SYSSMU19$                     PUBLIC UNDOTBS                                19          2       4625         131072                       2       32765              OFFLINE                                                              2
_SYSSMU20$                     PUBLIC UNDOTBS                                20          2       4649         131072                       2       32765              OFFLINE                                                              2
_SYSSMU21$                     PUBLIC UNDOTBS                                21          2       4665         131072                       2       32765              OFFLINE                                                              2
_SYSSMU22$                     PUBLIC UNDOTBS                                22          2       4697         131072                       2       32765              OFFLINE                                                              2
_SYSSMU23$                     PUBLIC UNDOTBS                                23          2       1257         131072                       2       32765              OFFLINE                                                              2
_SYSSMU24$                     PUBLIC UNDOTBS                                24          2       4729         131072                       2       32765              OFFLINE                                                              2
_SYSSMU25$                     PUBLIC UNDOTBS                                25          2       2465         131072                       2       32765              OFFLINE                                                              2
_SYSSMU26$                     PUBLIC UNDOTBS                                26          2       7905         131072                       2       32765              OFFLINE                                                              2
_SYSSMU27$                     PUBLIC UNDOTBS                                27          2        393         131072                       2       32765              OFFLINE                                                              2
_SYSSMU28$                     PUBLIC UNDOTBS                                28          2        417         131072                       2       32765              OFFLINE                                                              2
undo_management                      string      AUTO
undo_retention                       integer     10800
SQL> select * from v$transaction;
ADDR                 XIDUSN    XIDSLOT     XIDSQN     UBAFIL     UBABLK     UBASQN     UBAREC STATUS           START_TIME           START_SCNB START_SCNW START_UEXT START_UBAFIL START_UBABLK START_UBASQN START_UBAREC SES_ADDR               FLAG SPA REC NOU PTX NAME                                                                                                                                                                                                                                                             PRV_XIDUSN PRV_XIDSLT PRV_XIDSQN PTX_XIDUSN PTX_XIDSLT PTX_XIDSQN     DSCN-B     DSCN-W  USED_UBLK  USED_UREC     LOG_IO     PHY_IO     CR_GET  CR_CHANGE
07000000536031B8          6         34    3374347          0          0          0          0 ACTIVE           07/04/12 08:26:02    2855444428       1809         14            2       229515         4958            1 0700000052175B60    4199939 NO  NO  NO  NO                                                                                                                                                                                                                                                                            0          0          0          0          0          0          0          0          1          1          4          0          0          0
0700000053609420          8         30    3118147          0          0          0          0 ACTIVE           07/04/12 08:39:03    2855884108       1809          7            2       320063        31882            1 07000000501DBCB8    4199939 NO  NO  NO  NO                                                                                                                                                                                                                                                                            0          0          0          0          0          0          0          0          1          1          4          0          0          0
070000005360DCB0         12         11     391269          2     675610     -14060          1 ACTIVE           06/26/12 17:12:52    2382349905       1809         47            2       675610       -14060            1 070000004F16E738       7683 NO  NO  NO  NO                                                                                                                                                                                                                                                                            0          0          0          0          0          0          0          0          1          1          6          0         33          0So I've got 28 segments , right ? Half of them are offline (no needed or so) .
And now my long lasting (but small 1 undo rec) transaction can grow and take up all the free space in undo event there is no other activity on that session (only not commit/rollback).
And one more think, could You tell how to troubleshoot that issue I mean how to know we are getting close to disaster (ora 1555 or out of undo space) , that long lasting transaction is taking only 1 undo record
so seems not dangerous .
Thanks in advance.
Please bare in mind I've run select * from dba_rollback_segs ; AFTER killing that transaction so it can be missleading when comparing to v$transaction from time transaction was actice :).
GregG

Similar Messages

  • After transaction completed in undo tablespace what would happen? will they

    after transaction completed in undo tablespace what would happen?
    will they take out of undo tablespace or segment?
    please elaborate, thank you

    Hi,
    Even, if the transaction is committed, there may remains a need to retain the undo data. For instance, for the long running queries or for the flashback features. In automatic undo management, you may specify the undo retention period, which is the minimum amount of time that Oracle Database attempts to retain old undo information before overwriting it.
    One may also enable the retention guarantee, which ensures that the undo data will remain in the undo tablespace, even if that means that the transaction would fail due to lack of space in the undo tablespace.
    In addition, also read the following:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/undo.htm
    regards

  • Executing transaction without active Undo Tablespace

    Hi,
    DB: 9.2.0.5
    OS : AIX 5.2
    I have opened my standby database in READ ONLY mode.I have undo tablespace.It is live setup and users are checking data with standby database.
    SQL> show parameter aq_tm
    NAME TYPE VALUE
    aq_tm_processes integer 0
    SQL>
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 10800
    undo_suppress_errors boolean FALSE
    undo_tablespace string UNDOTBS1
    SQL>
    My standby alertlog getting warning message as
    Mon Dec 13 12:16:39 2010
    ***Warning - Executing transaction without active Undo Tablespace
    Mon Dec 13 12:27:37 2010
    ***Warning - Executing transaction without active Undo Tablespace
    Mon Dec 13 12:28:03 2010
    ***Warning - Executing transaction without active Undo Tablespace
    Mon Dec 13 12:28:17 2010
    ***Warning - Executing transaction without active Undo Tablespace
    Mon Dec 13 12:34:43 2010
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    Mon Dec 13 12:35:22 2010
    ***Warning - Executing transaction without active Undo Tablespace
    ***Warning - Executing transaction without active Undo Tablespace
    Please help me.
    Thanks,
    sunand

    Hi Forstmann,
    Thanks for your quick reply.
    I have temp tablespace and see the below output.
    SQL> select name from v$tempfile;
    no rows selected
    Which means i do not have any temp file to temp tablespace.
    How do i can create tempfile in standby?.In what following states i can create,
    1) MOUNT ( Recovery mode canceled)
    2) READ ONLY
    3) opened after FAILOVER
    4) At any stage i can
    My client is planning to check the DR server by doing FAILOVER.After that will create standby database again from primary.
    Thanks,
    Sunand

  • How can I flash back off on UNDO tablespace?

    I have used flashback on ( oracle database), then I have flashed back off some tablespaces.
    I have some question:
    Can I flashback off on UNDO tablespace?
    When I flashback on Undo tablespace, that'll impact to flashback feature or not?
    Thank you.

    TEST:
    SQL> flashback database to timestamp to_timestamp('2008-05-20 19:13:00', 'YYYY-MM-DD HH24:MI:SS');
    flashback database to timestamp to_timestamp('2008-05-20 19:13:00', 'YYYY-MM-DD HH24:MI:SS')
    ERROR at line 1:
    ORA-38753: Cannot flashback data file 5; no flashback log data.
    ORA-01110: data file 5: '+DATA/testdb/datafile/example.1075.651074487'
    ORA-38753: Cannot flashback data file 3; no flashback log data.
    ORA-01110: data file 3: '+DATA/testdb/datafile/undotbs1.1086.651074273'
    SQL> alter database datafile 5 oflfine;
    alter database datafile 5 oflfine
    ERROR at line 1:
    ORA-01916: keyword ONLINE, OFFLINE, RESIZE, AUTOEXTEND or END/DROP expected
    SQL> alter database datafile 5 offline;
    Database altered.
    SQL> flashback database to timestamp to_timestamp('2008-05-20 19:13:00', 'YYYY-MM-DD HH24:MI:SS');
    flashback database to timestamp to_timestamp('2008-05-20 19:13:00', 'YYYY-MM-DD HH24:MI:SS')
    ERROR at line 1:
    ORA-38753: Cannot flashback data file 3; no flashback log data.
    ORA-01110: data file 3: '+DATA/testdb/datafile/undotbs1.1086.651074273'
    SQL> alter database datafile 3 offline;
    Database altered.
    SQL> flashback database to timestamp to_timestamp('2008-05-20 19:13:00', 'YYYY-MM-DD HH24:MI:SS');
    Flashback complete.
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 18585
    Session ID: 115 Serial number: 5

  • 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

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

  • Open XE without UNDO tablespace

    Hy
    I have an oracle xe installation on linux ubuntu that does not start, it arrives in MOUNT status.
    When i try to open i get the following messages:
    ORA-01172: recovery of thread 1 stuck at block 153 of file 2
    ORA-01151: use media recovery to recover block, restore backup if needed
    Unfortunately it is in NOARCHIVELOG mode.
    Can i open it with no UNDO tablespace, and the add a new datafile to the UNDO tablespace?
    Thanks
    Lorenzo

    Here is alert log content: the last shutdown was not clean
    Here there is not the shutdown log...
    Tue Mar 9 17:42:29 2010
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Tue Mar 9 17:42:31 2010
    ALTER DATABASE MOUNT
    Tue Mar 9 17:42:35 2010
    Setting recovery target incarnation to 2
    Tue Mar 9 17:42:35 2010
    Successful mount of redo thread 1, with mount id 2594312135
    Tue Mar 9 17:42:35 2010
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE MOUNT
    Tue Mar 9 17:42:35 2010
    ALTER DATABASE OPEN
    Tue Mar 9 17:42:35 2010
    Beginning crash recovery of 1 threads
    Tue Mar 9 17:42:35 2010
    Started redo scan
    Tue Mar 9 17:42:36 2010
    Completed redo scan
    1264 redo blocks read, 136 data blocks need recovery
    Tue Mar 9 17:42:36 2010
    Started redo application at
    Thread 1: logseq 175, block 2, scn 6715755
    Tue Mar 9 17:42:36 2010
    Recovery of Online Redo Log: Thread 1 Group 2 Seq 175 Reading mem 0
    Mem# 0 errs 0: /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/o1_mf_2_5dm8sg16_.log
    RECOVERY OF THREAD 1 STUCK AT BLOCK 153 OF FILE 2
    Tue Mar 9 17:42:37 2010
    Aborting crash recovery due to error 1172
    Tue Mar 9 17:42:37 2010
    Errors in file /usr/lib/oracle/xe/app/oracle/admin/XE/udump/xe_ora_4250.trc:
    ORA-01172: recovery of thread 1 stuck at block 153 of file 2
    ORA-01151: use media recovery to recover block, restore backup if needed
    ORA-1172 signalled during: ALTER DATABASE OPEN...

  • TEST -- Active Undo Tablespace Drop

    TEST
    SUMMARY:-
    When no active transactions are in UNDO tablespace, I can offline the undo datafile and subsequently drop the tablespace. No problems there.
    Active Undo transactions combined with SHUTDOWN ABORT , I cannot open the database?
    *****************SCREEN OUTPUT ************************
    SQL>alter system set undo_tablespace='undotbs2' scope=spfile;
    SQL> update mytst set table_name='jj';
    1 row updated.
    From another x-session I issued shutdown abort.
    $mv undotbs02.dbf zz_undotbs02.dbf -- SImulate failure
    SQL>ALTER DATABASE DATAFILE '/u02/app/oracle/oradata/HLCL/undotbs02.dbf' OFFLINE DROP ;
    Database altered.
    When i try to open the DB it gives
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    I tried to trace the error:-
    alter system set "_smu_debug_mode"=1 scope=spfile;
    alter system set event = "10015 trace name context forever, level 10" scope=spfile;
    No pertinent information in trace file is generated either. Any pointers.

    ARC0: STARTING ARCH PROCESSES COMPLETE
    ARC0: Becoming the 'no FAL' ARCH
    ARC0: Becoming the 'no SRL' ARCH
    ARC0: Becoming the heartbeat ARCH
    ARC1 started with pid=17, OS id=4502
    Thu Jun 22 17:58:28 2006
    Errors in file /u02/app/oracle/admin/HLCL/udump/hlcl_ora_4498.trc:
    ORA-00704: bootstrap process failure
    ORA-00604: error occurred at recursive SQL level 2
    ORA-00376: file 6 cannot be read at this time
    ORA-01110: data file 6: '/u02/app/oracle/oradata/HLCL/undotbs02.dbf'
    Thu Jun 22 17:58:28 2006
    Error 704 happened during db open, shutting down database
    USER: terminating instance due to error 704
    Instance terminated by USER, pid = 4498
    ORA-1092 signalled during: ALTER DATABASE OPEN...
    /u02/app/oracle/admin/HLCL/udump/hlcl_ora_4498.trc:
    Hash table buckets = 32768
    Longest hash chain = 0
    Average hash chain = 0/0 = 0.0
    Max compares per lookup = 0
    Avg compares per lookup = 0/0 = 0.0
    tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x1)
    tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x1)
    ORA-00704: bootstrap process failure
    ORA-00604: error occurred at recursive SQL level 2
    ORA-00376: file 6 cannot be read at this time
    ORA-01110: data file 6: '/u02/app/oracle/oradata/HLCL/undotbs02.dbf'
    Thanks for looking.

  • FLASHBACK OFF FOR UNDO TABLESPACE????

    Hi all
    As my Undo tablespace growing evryday 2 GB & NOW it reached 19,
    Database size is 6GB only
    using Oracle 10g Release 2 without patch Set (release 1002000100) on Hp-Unix OS
    Can i use the Undo tablespace with FLASHBACK OFF option?
    what are the Consequences for Turning off the FLASHBACK,
    Can we use this type of Undo tablespace with Flashback OFF???
    CREATE UNDO TABLESPACE UNDOTBS03 DATAFILE
    '/app/oracle/product/oradata/prod/undotbs03.dbf' SIZE 1000M AUTOEXTEND OFF
    ONLINE
    RETENTION NOGUARANTEE
    BLOCKSIZE 8K
    FLASHBACK OFF;
    THANKS ALOT

    Oracle Flashback Database: feature is similar to conventional point-in-time recovery in its results, allowing you to return a database to its state at a time in the recent past. It is, however, much faster than point-in-time recovery, because it does not require restoration of datafiles from a backup and it requires application of fewer changes from the archived redo logs.
    UNDO  Tablespace: Oracle db save the old value when a process change data in undo tablespace.
    I think that you can change de default UNDO tablespace as NO AUTOEXTEND, and
    Configure
    SET UNDO_MANAGEMENT=AUTO
    SET UNDO_RETENTION= ( second need for logger transaction )
    UNDO_RETENTION specifies (in seconds) the low threshold value of undo retention. For AUTOEXTEND undo tablespaces, the system retains undo for at least the time specified in this parameter, and automatically tunes the undo retention period to satisfy the undo requirements of the queries.
    For fixed- size undo tablespaces, the system automatically tunes for the maximum possible undo retention period, based on undo tablespace size and usage history, and ignores UNDO_RETENTION unless retention guarantee is enabled.

  • Why do 2 diff. undo tablespace required in RAC

    Hi -
    1 - I can understand that we do require 2 diff. log files as 2 process can not write on the same redo log files.
    But I could not understand the logic of using 2 diff. undo tablespaces, when tablespaces can be in shared mode.
    They what is the reason of using 2, why can we not have only one undo tablespace in RAC.
    2 - Is there any way to check if one particular instance is running under RAC, Can this be confirmed if instance
    has got extra process like Lms Lmd ...
    your help would be appreciated and apologies for my poor english.
    Regards,
    Lyxx

    Each instance needs its own rollback segments to manage read consistency.
    When you set undo_tablespace=UNDOTBS, you tell the instance to self manage the tablespace UNDOTBS and do dynamic creation of rollback segments.
    This management of undo tablespaces is not "instance shareable". That's why you need 2 undo tablespace (for a 2 node RAC).
    If it's a problem for your environment (don't know why), you can create a single "rollback tablespace" and manage yourself the rollback segments.
    Christophe
    Edited by: willier on 11 sept. 2008 02:44

  • Inactive undo tablespace, still needed?

    Dear All,
    I am using ORACLE 10.2 database server.
    I changed the active undo space from USDOTBS1 to UNDOTBS2 and bring the inactive one to offline (normal mode).. The tablespace UNDOTBS1 is empty. As I read in the documentation an undo table space cannot be put offline if it still contains any data used by ongoing transactions;
    However, when some DML statements (completely new transaction) executes, Oracle complains about having no access to the UNDOTBS1, and datafile associated with it. I don’t understand how it is possible since the active undo tables space is UNDOTBS2.
    After bringing UNDOTBS1 back online (without making it active), everything works fine.
    The error is as follows:

    So how did you confirm there were no outstanding snapshot dependant transactions against the undo tablespace?
    http://stanford.edu/dept/itss/docs/oracle/10g/server.101/b10739/undo.htm
    Looking at the section on dropping undo talks about dependant transactions on before snapshots of undo.
    "However, since DROP TABLESPACE drops an undo tablespace even if it contains unexpired undo information (within retention period), you must be careful not to drop an undo tablespace if undo information is needed by some existing queries."

  • Find undo tablespace  assignment in RAC

    Hi Experts,
    We have 6 nodes 10GR2 rac database. It seems that does not assign each instance order with undo tbs.
    How can I find each instance assigned undo tablespace?
    Thanks very much!
    JIm

    Handle:      user589812
    Status Level:      Newbie
    Registered:      Aug 13, 2007
    Total Posts:      829
    Total Questions:      366 (338 unresolved)
    so many questions & so few answers.
    also Do i have a way to drop a datafile in undo tablesapce?UNDO is no different than any other tablespace.

  • Disabling UNDO altogether so long running transactions have no rollback

    Hi, we have a large Oracle 11g database that we use only to demo our product to potential customers. It's not an important database as far as the quality of the data, it serves its purpose. Well every night we run a script to increment all the date fields in the database so our demos are predictable for our sales people. This date rolling results in a huge UNDO tablespace and we really can't justify the space to house it. How can I turn off transactions altogether so long running queries just commit row by row with no rollback and no writing to the undo tablespace?

    Yes:
    Oracle saves undo data at least until the transaction has been committed. Until this time, the undo data is in the active state. Therefore, the amount of space available in the undo tablespace should be at least large enough to hold the active undo data generated by current transactions. Otherwise, some of these transactions might fail. When active undo data is stored in the undo tablespace, Oracle automatically ensures that it is never overwritten until the corresponding transaction has been committed.
    From http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/storage003.htm.

  • Oracle DB : UNDO tablespace filled 99%

    Hi,
    That's not a problem (I hope) but just a question on Livecycle ES DataBase.
    The Undo tablespace set to 4Gb, always filled 99%.
    Is it normal ? is there preconized size for it ? Does we have to maintain it ...
    The LiveCycle configuration is :
    ES (1) version 8.2.1 SP3, Jboss
    Oracle 10g
    The server is running on Windows Server 2003 Ent OS.
    Thank you for your response !

    It very much depends on the tool used to determine the usage of the UNDO tablespace. Many tools do not take into account that the UNDO tablespace and the TEMP tablespace may seem to be full (have correctly formatted blocks) while still having a lot of functional space available inside of those blocks.
    In other words, if the tool calculates the usage in the same way as data tablespaces, it will be reporting the wrong value. Ideally, the UNDO tablespace will always be close to 100% full using traditional calculation.
    Assuming the tool is doing it's calculation correctly, the second thing to note is that UNDO is the core to Oracle Consistent Read mechanism. (Which is, in turn, the core to many of the Flashback techniques.) The UNDO data, which is created at transaction time, must be available after the transaction has committed if a consistent read or flashback is invoked. The more UNDO, the further back in 'time' you can flash back.
    So the correct way to tune the UNDO is to specify the amount of time you require UNDO to exist. And you verify that using the DBA_UNDO_EXTENTS view and the STATUS column. Totally free space in the undo occurs when the STATUS is EXPIRED. If you have no EXPIRED extents, they can not be reused (except in a pinch) and the system will allocate more space to the UNDO tablespace if possible.
    A great reference is the thread at http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6894817116500
    I am curious - is 4GB UNDO really an issue?

  • UNDO Tablespace is used to fill frequently

    Hi Experts,
    We have an issue with the UNDO tablespace frequently,where we dont see the space occupied for any active transactions and i can see only for "Retained for Use by Queries or Flashback" i.e. more than 2000M.
    Can any one let me know how to purge this space and to free up the undo tablespace.
    FYI -
    Oracle Ver:10.2.0.2
    OS :SUN OS
    Undo Retention : 30 Mins.
    Undo tblspace size:3G
    undo_management:AUTO
    Thanks Much!!
    Senthil

    Hi,
    I think your undo tablespace contains data for inactice transactions and this is mainly because of higher value of undo_retention parameter.
    This space will be overwritten automatically as and when the space will be required by the current transaction.
    Thanks,
    Navneet

Maybe you are looking for

  • Sync/Async communication in JMS adapter without BPM

    Hi, as of SP19 XI's JMS adapter offers this new feature for Sync/Async communication through JMS Adapter modules instead of using a BPE. Now I would be interested to know if anybody has already successfully used this feature especially using WebSpher

  • Organizing pictures in library

    Somehow I have jumbled my pictures in the library so they are not in any order. I wish to return them to a chronological order. How can that be done?

  • display:table.... /display:table   export problem

    HI, when I wrote in the jsp: <display:table pagesize="30" class="isis" name="contacts" export="true"> <display:column property="firstName"/> <display:column property="lastName"/> <display:column property="title"/> <display:column property="gender"/>

  • How do I install Agents on systems after I did the discovery and said agentless?

    I did a discovery and set everything to agentless. pretty much all this seems to tell me is if the comptuer is online or offline when I go into monitoring? (I haven't added any mangement packs yet)  how do I now change a system to having an agent ins

  • Transfer photos from camera to external HD WITHOUT iPhoto

    I have pictures that I have taken for work - I don't want to load them on my iPhoto. I just want to move them from the camera to the external hard drive. Can it be done?  How?