UNDO tablespace reaching maximum size - WHO is using it?

My UNDO tablespace has been pretty static for a while but this morning it was at 93% and within 20 minutes I saw it at 98%. I added a datafile to buy some time, but is there any way I can identify specific sessions which may be filling it rapidly ?
Thanks

Thank you Pierre! I must have missed that particular piece. Mind you, it was a rather long thread!
select sum(used_ublk) from v$transaction
This now works..
SELECT   SUBSTR (terminal, 1, 10) terminal, SUBSTR (osuser, 1, 15) osuser,
         SUBSTR (SID, 1, 3) SID, SUBSTR (username, 1, 18) username,
         SUBSTR (program, 1, 30) program,
         TO_CHAR (logon_time, 'DD/MM/YYYY HH24:MI:SS') logon_time,
         SUBSTR (command, 1, 20) command, SUM (used_ublk) undo_used
    FROM (SELECT   s.terminal, s.osuser, s.SID, s.username, s.program,
                   s.logon_time,
                   DECODE (s.command,
                           0, 'No Command',
                           1, 'Create Table',
                           2, 'Insert',
                           3, 'Select',
                           6, 'Update',
                           7, 'Delete',
                           9, 'Create Index',
                           15, 'Alter Table',
                           21, 'Create View',
                           23, 'Validate Index',
                           35, 'Alter Database',
                           39, 'Create Tablespace',
                           41, 'Drop Tablespace',
                           40, 'Alter Tablespace',
                           53, 'Drop User',
                           62, 'Analyze Table',
                           63, 'Analyze Index',
                           s.command || ': Other'
                          ) command,
                   used_ublk
              FROM v$session s,
                   v$process p,
                   v$transaction t,
                   v$rollstat r,
                   v$rollname n
             WHERE s.paddr = p.addr
               AND s.taddr = t.addr(+)
               AND t.xidusn = r.usn(+)
               AND r.usn = n.usn(+)
          ORDER BY 1)
GROUP BY terminal, osuser, SID, logon_time, username, program, command
  HAVING SUM (used_ublk) > 0
ORDER BY SUM (used_ublk) DESC

Similar Messages

  • Tablespace Index almost reached maximum size

    Dear support,
    I have some issue which is Tablespace <SID>#BTABI almost reached maximum size.
    running on DB2 version 8.2 fp  11 OS AIX 5.2
    KB Total : 63 GB
    Page Size : 4 KB
    Please advice, should i do a conversion or any suggestions?
    thanks in advance
    -shah

    Hi Tuan,
    Page Size of aTablespace Maximum Size of Table with DB2 Version 8
    4 KB 64 GB
    8 KB 128 GB
    16 KB 256 GB
    32 KB 512 GB
    The size limit which you have mentioned is only for tables and not for the tablespaces. You can have a tablespace of size more than 64 GB.
    In case if your tablespaces are autoresize enabled, then you have to ensure that you have enough space in the drive/file system. Else,
    1. You can create a new containers for that particular tablespace.
    2. Resize all the containers of the tablespace (if you have space in the drive/file system associated with the tablespace).
    Regards,
    Varadharajan M

  • Undo tablespace reached to 99.99 %

    Hi all,
    I am using Oracle Apex 3.1 & Database oracle 10g Release 1002000100 on HP-Unix
    my Undo Tablespace is increasing Regularly, I turned off its auto Extent,
    On Querying thru v$Session
    user APEX_PUBLIC_USER,osuser Apache are
    logged on for 16 times,
    my Undo tablespace reached to 99.99 %
    I now added more 500 MB,
    Again it occupied to 99.99 %
    I didnt temper with Undo tablespace,
    usinG Default Settings except i did Auto EXTENT Turned off,
    please Suggest me the Fixing & cause for this
    many thanks
    -Khaja
    Edited by: ahuja on Feb 7, 2009 3:26 PM

    Hi all
    i tried with the Following
    SQL> SELECT SUM(a.bytes) "UNDO_SIZE"
    2 FROM v$datafile a,
    3 v$tablespace b,
    4 dba_tablespaces c
    5 WHERE c.contents = 'UNDO'
    6 AND c.status = 'ONLINE'
    7 AND b.name = c.tablespace_name
    8 AND a.ts# = b.ts#;
    UNDO_SIZE
    1.4680E+10
    SQL>
    SQL> SELECT MAX(undoblks/((end_time-begin_time)*3600*24))
    2 "UNDO_BLOCK_PER_SEC"
    3 FROM v$undostat;
    UNDO_BLOCK_PER_SEC
    59.7333333
    SELECT d.undo_size/(1024*1024) "ACTUAL UNDO SIZE [MByte]",
    SUBSTR(e.value,1,25) "UNDO RETENTION [Sec]",
    ROUND((d.undo_size / (to_number(f.value) *
    g.undo_block_per_sec))) "OPTIMAL UNDO RETENTION [Sec]"
    FROM (
    SELECT SUM(a.bytes) undo_size
    FROM v$datafile a,
    v$tablespace b,
    dba_tablespaces c
    WHERE c.contents = 'UNDO'
    AND c.status = 'ONLINE'
    AND b.name = c.tablespace_name
    AND a.ts# = b.ts#
    ) d,
    v$parameter e,
    v$parameter f,
    SELECT MAX(undoblks/((end_time-begin_time)*3600*24))
    undo_block_per_sec
    FROM v$undostat
    ) g
    WHERE e.name = 'undo_retention'
    AND f.name = 'db_block_size'
    ACTUAL UNDO SIZE [MByte] UNDO RETENTION [Sec] NEEDED UNDO SIZE [MByte]
    14000 900 420
    Now my Undo tablespace reached 99% Again, i wanted to know the what is eating my Undo tablespace Space
    Do I need to drop and recreate a new undo tablespace? I don't want to do this until I understand what is eating all the space. Please help me here
    please Help me out
    many many thanks
    - Khaja
    Edited by: ahuja on Feb 14, 2009 4:42 PM
    Edited by: ahuja on Feb 14, 2009 4:44 PM

  • LocalStorage reach maximum size while there are only 800 Kb data in it.

    I met an localStorage exception when I call API "localStorage.setItem()"<br>
    we are developing a web site, we used host like aaaa.bb.com the case is :<br>
    the local storage has about 560KB Data in localstorage and then I want to set an item into localStorage, the size of the new item is 301KB<br>
    then the browser throw exception, the content of the exception is as follows:<br>
    <br>
    The way I used to test the size of localStorage is: JSON.stringify(localStorage).length<br>
    <br>
    "Persistent Storage maximum size reached" code:"1014" nsresult: "0x80530f6(NS_ERROR_DOM_QUOTA_REACHED)"<br><br>
    I tested this function in other machines and in chrome, this exception will not occur, I want to know why this exception occurs on the machine, if there is any settings in firefox? or if there is any relationship with the cache size?

    the root cause is found.
    the reason is that aaa.domain.com and bbb.domain.com, the two sub domain will share the same space of localStorage because they are under the same top level domain domain.com.
    aaa.domain.com reach maximum size when there is only 500KB data in localStorage because there is already 4.5MB data in localStorage of bbb.domain.com.

  • If I have two undo tablespace, under what situation oracle will use another

    if I have two undo tablespaces, under what situation oracle will use another
    one is default undo tablespace, another is created manually
    will it use it when the default one is full?
    it seem like to be it won't use the second undo tablespace.
    thanks
    Edited by: user11402556 on Jul 3, 2010 2:18 PM

    You can have two Undo Tablespaces created with the CREATE UNDO TABLESPACE syntax.
    However, the current database instance will use the Undo Tablespace specified by the instance level parameter undo_tablespace.
    When you want to switch the datafiles of an undo tablespace from, say, one mount point to another (or when you want to "resize" an undo tablespace that has grown very large for specific one-off / adhoc jobs), you would create another undo tablespace, reset the instance level parameter to the new undo tablespace and wait for a decent interval (e.g. at least undo_retention or autotuned undo retention) before dropping the old undo tablespace.
    So yours is not a hypothetical question. Having two undo tablespaces is a real-world practice -- but the two are concurrently present for only a short duration, while transactions and queries switch from one to the other.
    (In RAC, each database instance must have it's own Undo tablespace as well).
    Hemant K Chitale

  • Outlook 2010 Data files have reached maximum size and can't delete.

    This is the message I get whenever I try to send/rec mail.. it is also the message that I get when I try to delete any messages, whether from inbox, sent items, or deleted... just seems locked up. This is not enterprise or Exchange server this is from my
    wife's home office. I have been playing around with this for hours, and still get the same message and still dead in the water.. Please help! I am running windows 7home.
    I was attaching the photo.. but won't take it until verified. "The Outlook data file C:\Users\Owner\AppData\Local\Microsoft\Outlook\Outlook.pst has reached the maximum size. To redude the amount of data in the file, permanently delete some items that
    you no longer need. You could also consider using the new Outlook data file (.pst) introduced with Outlook 2003 that provides greater capacity for storing items and folders.
    Thanks,
    Cashmando07

    Hi,
    You can try compacting the data file:
    Go to File tab -> Account Settings -> Account Settings
    -> Data Files tab, double click on the data file -> Under
    General tab, click on the Compact Now button ->
    OK.
    This will reduce the size of your Outlook data file. Then you can test if any items can be deleted from the .pst file.
    More information about the size limit for both (.pst) and (.ost) files in Outlook, please refer to the kb below:
    http://support.microsoft.com/kb/832925
    Regards,
    Melon Chen
    TechNet Community Support

  • VHD Size is Maximum Size Allowed Without Using All Space in OS

    Hello - I have a Hyper-V VM whose maximum size allowed is 700GB. Currently, the VHD file size is 700GB yet the OS is only using ~400GB (300GB free). Shouldn't the VHD size be about 400GB instead of 700? Every other VM I have checked matches the size being
    used in the OS.
    As I was typing this I think I answered my own question. This VM has a fixed size and all of the other VMs we have are dynamic. I assume this is why? It is a SQL server so I guess it is fixed for better performance. I didn't set this up
    Can I safely shrink the VHD down a little bit? When trying to get replicas of this VM, it keeps crashing the VM due to space limitations. It is on its own Cluster Disk but it only has a few GB free which is why I believe it is failing. How much free
    disk space is needed where the VHD is located in order for replication to work?
    This is our SQL server so I am a little cautious in what we do with it.
    Thanks for your help,
    Mike

    Hi Mike ,
    Based on my knowledge for vhd , when you delete a file then this file was not deleted on disk  thoroughly , just give it a deleted tag (the "old space" was not recycled until there is no new space for writing).
    I think you can not make it smaller via shrinking .
    Maybe you can try to compress the vhd file ( "edit disk..."  ), before you doing this please backup your VM first .
     BTW , it is recommended to use fixed disk for SQL server .
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Is there a maximum size for photos used in a slideshow? I cannot anymore put my slideshow into a wmv

    Is there a maximum size for photos imported in a slideshow ? I cannot anymore put my slide show into a wmv file.

    About CLOB size, it's 4Go not 4000 characters - VARCHAR2 supports up to 4000 bytes. Pay attention also to unicode encoding!
    Are you using CFQUERYPARAM to insert into the CLOB fields ?
         <CFQUERYPARAM CFSQLTYPE="CF_SQL_CLOB" VALUE="    ">
    use the Firebug extension (https://addons.mozilla.org/en-US/firefox/addon/1843) in Firefox3 and do some network monitoring: let me know what you're seeing there.
    Hope it will help...

  • What is the maximum size i can use as for File

    Hi,
    Its a File to JDBC Scenario having Java Module to convert the csv file to xml structure.
    I have uploaded a file of 29MB.
    It is throwing error as Insufficient heap space.
    I assume that error  is coming from Java Module.
    Could you please help me out.
    Thanks,
    Lalitha

    Hi,
    Following thread might be helpful to you...
    http://scn.sap.com/thread/1637092
    http://scn.sap.com/thread/1284704
    BR,
    Anirban

  • SQL Statement using Undo Tablespace

    Hi
    Is there a way to find out which SQL Statement is using the highest amount of Undo Tablespace ?

    Query v$undostat.
    Use column "MAXQUERYID" for identgifying long running queries.
    Refer Metalink Note 262066.1 for undo information.
    Regards
    Sethu

  • How to Shrink UNDO Tablespace

    Hello,
    We had a UNDO Tablespace of 22Gb but it is using just 2GB. How to shrink undo tablespace. we are using clustered 3 node production database 10.2.0.4
    Is there is way that we can shrink UNDO Tablespace or do i need to create a UNDO tablespace and assign the undo tablespace to DB and drop the old UNDO?
    How to ensure that transactions are done and free to drop the old UNDO?
    Is it something we need to restart all the three nodes as each node has its own UNDO Tablespace.
    Need Help on this issue.
    would appreciate your quick response.
    Thanks

    if i am in your place i will do the following:
    <pre class="jive-pre">1-Query DBA_DATA_FILES to determine the name of the datafiles of the UNDO</pre>
    2. Create a new UNDO tablespace.
    <pre class="jive-pre">CREATE UNDO TABLESPACE undo_ts2 DATAFILE '/directory/undo_ts2_01.dbf' SIZE xxxM;</pre>
    3. Modify the database parameter to use the new UNDO tablespace.
    <pre class="jive-pre"> ALTER SYSTEM SET undo_tablespace=undo_ts2 SCOPE=BOTH; </pre>
    4-The Drawback:
    <pre class="jive-pre">New transactions will begin using the new undo tablespace. After some time passes (at least the number of seconds specified by the UNDO_RETENTION initialization parameter), you can drop the old UNDO tablespace. The downside to this approach is that for a short time period, your database will have two UNDO tablespaces</pre>
    Regards
    Mohamed

  • Undo Tablespace - Huge file growth.

    Hi,
    My undo tablespace increases in size rapidly. We have to perform huge number of update operations in this database. How can I reduce the size of the undo tablespace on a regular basis?
    Regards,
    Santhosh

    There is known bug in prior 9.2.0.5 releses . Undo tablespace does not use expired extents properly if it can allocate new segment. Upgrade to 9.2.0.5 is regular solution. Workaround is seting undotablespace autoextend off.
    ciaos
    Srdjan Rasulic

  • HT200040 I'm a still photographer who is using Motion5 for presentation of my work.

    I'm a still photographer who is using Motion5 for presentation of my work. I'm exporting images out of Photoshop at 4000, 3840 or 1380 pixels wide at 72 DPI
    I;m trying to see which file size will render me the best sharpiness for my images. I'm having issues because as a photographer I need my images to render very sharp when view in my Motion5 projects. I look at the properties menu the canvas size is 1280 by 720. Yes I know Motion5 is rendering my files at 30 frames per second or something like that. Yet I need sharp rendering of my images, help

    For maximum sharpness, your canvas should be 1920 x 1080 for HD output and set your export settings (or Canvas Render settings) to Best. Upon export, you can access that property in the export dialog from the Render tab > Render Quality -- the default is Use canvas setting, but you can override your canvas settings here.  Since one of your pix sizes is 1380, then the 720 canvas would be the maximum size you could use. You do not want to scale images larger to fill the canvas as they will soften in appearance, but you can always scale images down to fit the canvas and retain their "apparent" sharpness (you still lose pixels and fine detail, but the images will sharp).
    HTH

  • 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

  • UNDO Tablespace :: Who is using how much of it ?

    Hallo,
    I'd like to know who is using how many blocks of the undo-tablespace.
    I know there's a view called v$undostat, but how to link this information to user, sql or session ?
    Regards,
    Mynz

    Execute the following query to determine who is using a particular UNDO or Rollback Segment:
    SQL> SELECT TO_CHAR(s.sid)||','||TO_CHAR(s.serial#) sid_serial,
    2 NVL(s.username, 'None') orauser,
    3 s.program,
    4 r.name undoseg,
    5 t.used_ublk * TO_NUMBER(x.value)/1024||'K' "Undo"
    6 FROM sys.v_$rollname r,
    7 sys.v_$session s,
    8 sys.v_$transaction t,
    9 sys.v_$parameter x
    10 WHERE s.taddr = t.addr
    11 AND r.usn = t.xidusn(+)
    12 AND x.name = 'db_block_size';
    SID_SERIAL ORAUSER PROGRAM UNDOSEG Undo

Maybe you are looking for

  • First time iPhone user. How to sync?

    Finally gave in to purchasing an iPhone. So my first order of business is syncing stuff that I've downloaded to my phone. I've had my friend download some contents to it prior to this. So here are my questions: 1. Will syncing erase the contents of m

  • 3g v2.1 Yahoo email set up problem

    I think I made a mistake - I bought a 3G, I had an old iphone it worked fine for my yahoo mail and gmail. I installed v2.1 on the 3G. I can't set up any of my yahoo accounts on the 3G. I get the error message "Cannot get mail .. user name or password

  • Best configuration of TimesTen

    What is the best configuration of TimesTen database on Windows 2008 64 bit OS,how much RAM(Min & Max) is needed. Thanks!

  • Detect change in Infotype records

    Hi All, Is there any FM or std program through which we can detect any change(modification/deletion/delimit) in Infotype records. If not then please suggest how it can be achieved. Any pointers in this regard would be helpful. Thanks, Saher

  • DHCP client not working

    Ok here is the scenario: I have a laptop with an up to date Arch installation, at home I use a static ip with my router which still has dhcp enabled for some other desktops. Now at work I needed to use DHCP, so i reconfigured rc.conf to say eth0="dhc