UNDO and TEMP usage by a schema

Hi,
How can I findout UNDO and TEMP space usage by a schema? do we have any tables for this?
If I want to get UNDO,TEMP space or any other resource used by a schema for 24 Hours period,can get this info.
Can you please suggest the procedure to know the high resource consumption application?
I am using Oracle 9.2.0.4 in SUN cluster environment.
Thanks very much in advance.I apreciate your help
Thanks
Thanks

Hi,
About UNDO, you can check the status of the undo segment currently used by active transactions.
select s.username, t.xidusn, t.ubafil, t.ubablk, t.used_ublk
from v$session s, v$transaction t
where s.saddr = t.ses_addr;About others user session's information, you can try this below:
select osuser,
       machine,
       username,
       segment_name,
       sa.sql_text
from   v$session s,
       v$transaction t,
       dba_rollback_segs r,
       v$sqlarea sa
where  s.taddr = t.addr
and    t.xidusn = r.segment_id(+)
and    s.sql_address = sa.address(+)
order by osuserAbout TEMP:
To monitor tempspace eating by sessionSELECT a.sid,b.BLOCKS FROM v$session a , v$sort_usage b
WHERE a.saddr=b.SESSION_ADDR;
To monitor tempspace eating by SQLSELECT a.sql_text,b.BLOCKS FROM v$sql a , v$sort_usage b
WHERE a.sql_id=b.sql_id;Cheers

Similar Messages

  • How to exclude UNDO and temp tablespace using monitoring template

    hi,
    as per MOS note id 816920.1 undo and temp tablespace is excluded from monitoring starting version 11G onwards.It says that thresholds will need to be explicitly set if undo and temp needs to be monitored
    we have grid 12C implemented now with monitoring templates which sets thresholds for all tablespaces. does it apply that thresholds to undo and temp too?? we are receiving alerts for undo and temp tablespaces and we wish to disable them. We have undo tablespaces with different names in many databases as per naming conventions for that line of business.
    How can i exclude undo and temp tablespaces from monitoring using grid 12C monitoring templates. is there a way through templates where i can set thresholds of permanent tablespaces only???

    In EM12c, go to the 'Enterprise' menu, then 'Job', then 'Library'. There should be an out-of-the-box job called "DISABLE TABLESPACE USED (%) ALERTS FOR UNDO AND TEMP TABLESPACES" that you can run against your database targets, and that job will disable database-generated alerts.
    If a previous admin has set up EM12c-generated alerts for undo and temp, then yes, a monitoring template will take care of disabling them. Either remove those alerts from the existing monitoring template and apply them to your targets, or create a new monitoring template based on one database's current settings, remove those warning/critical thresholds for your undo and temp tablespaces, and apply it to your targets.

  • How to rebuil undo and temp tbspc

    Hi hussein/helios
    Our apps undo and temp tablespaces got so big ( like 10Gb each) that it almost run out of space. Ho do i resync in back to 2Gb each.
    Is there a system commnad like > alter tablespace undo resync?
    Thanks a lot
    msK

    Hi,
    Please refer tech note *262066.1 : How To Size UNDO Tablespace For Automatic Undo Management*
    Hope helps.
    Regards,
    X A H E E R

  • How to exclude undo and temp from "Tablespace Space Used (%)"

    Dear All
    Is it possible to exclude undo and temp tablespace monitoring from "Tablespace Space Used (%)" matric?
    Thanks & Regards
    Quazi Abdur Rab

    If you use TEMP >=100 as Warning, this warning can still be raised.
    What version of the database is it? If Oracle 10g, Grid Control (the agent) searches the alert table in the database for alerts, so the database raises the alert and the agent just passes this alert to Grid Control.
    If you are using Oracle 10g, you can use the following statement (connected as sys):
    DBMS_SERVER_ALERT.SET_THRESHOLD(
    metrics_id => DBMS_SERVER_ALERT.TABLESPACE_PCT_FULL,
    warning_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    warning_value => '90',
    critical_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    critical_value => '100',
    observation_period => 1,
    consecutive_occurrences => 1,
    instance_name => NULL,
    object_type => DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE,
    object_name => 'TEMP');
    This will create the GT (Greater Than) instead of GE (Greater Equal).
    Kind regards,
    Dave
    ps. I'm using GC 10.2.0.3.0, so thanks for the note that 10.2.0.4 doesn't take 100+ values.

  • Question about PGA and TEMP usage

    hi,
    we had a situation whereby OEM was reporting that because the PGA was too small during a time frame that extra I/O on the TEMP was being created. Does this then mean that the TEMP was acting as a pseudo PGA.
    regards

    Have a look at these threads
    Re: PGA memory problem - Oracle 10.2.0.4 on windows 2003
    Re: PGA Memory Usage Details
    <br>
    Oracle Database FAQs
    </br>

  • Database restore without temp, undo and control files.

    Hi All,
    You might found this question silly but I don't know so asking this question here.
    I have cold back up of the database. Now, I want create clone of that database, but I have some different paths for the DBFs so I will create new control file after restoring the database.
    Now, I know that I don't need control files and tempfiles to be restored. I have 10 undo files in backup but on the new clone database I don't need all 10. I want only 5. So can I do the restoration without undo , temp and control file and later on add undo and temp?? and if yes then tell me that can I add them at mount level??
    This is my first restore, Please guide me its very urgent

    Nitin Joshi wrote:
    f the COLD Backup does not include the Online Redo Logs, an ALTER DATABASE OPEN RESETLOGS is requireed >>to create these Online Redo Logs. Unfortunately, an OPEN RESETLOGS can only be done after an Incomplete >>Recovery or when using a Backup Control file.
    Therefore, we do a RECOVER with a CANCEL to simulate an Incomplete Recovery.Completely agree with you Hemant. And the links you've provided,i've gone through many times. Excellent description.
    I just wanted to know in above(OP's) scenario if he has complete cold backup(includes online redo logs), does he really need open reset logs or any recovery?
    Regards!no , if you have cold backup with online redo log files then i don't think so you need to open database in resetlogs.Resetlog is always after incomplete recovery or recovery using backup controlfile or you dont have redo logs.
    I am completely agree with you that with given scenario for the cold backup undo tablespace would not be part of recovery and you can
    -offline drop undo tablespace file
    -create another one undo tablespace and its undo datafile
    -point spfile to that newly undo tablespace
    I think Aman is saying in the context of restore and recover online database where undo tablespace create a vital role in database recovery, the undo blocks roll back the effects of uncommitted transactions previously applied by the rolling forward phase.
    Khurram

  • Tuning temp usage - 21GB Table

    Hello,
    11gR2 OEL, 2 CPU machine (test box).
    select id,avg(col1),avg(col2),avg(col3),avg(col4),avg(col5)
    from t1
    group by id;id - VARCHAR2(15) NOT NULL - Not Indexed
    Avg row length - 100 bytes
    Table t1 is 21GB in size. Degree 4.
    The query fails with ORA-01652 even after consuming 35 GB of Temp.
    Problem at hand is to reduce temp usage as DBAs are not Ok with such huge temp usage with other jobs running.
    We have come up with 2 options.
    1. Create Index on id column - Looks like this works but takes longer. Testing is ongoing.
    2. Create Hash Partitions (10 partitions) hash by id column. Loop through each partition and compute avg.
    Option 1 is being tested currently.
    The question I have is, is Option 2 reliable. Is it guaranteed that a given value for id will always go to partition x ?
    Meaning, is it possible the same id value is stored in more than one hash partition ?
    Pls let me know.
    Rgds,
    Gokul

    The table has about 270 million rows with 3 - 4 million unique ids.
    Will Hash partitioning still help in this case ?With 4 million Unique IDs, you'd have to create a large number of HASH partitions to "reasonably" distribute them ! You could also use RANGE partitioning if you can predict the ID values.
    But don't go and partition/re-partition a table just to suit one type of query. Partitioning can well impact all sorts of queries (and DML) against the table. So you need to review the pattern of activity, performance implications for each type of access and maintenance overheads before deciding on a partitioning scheme.
    Hemant K Chitale

  • Subtotal and routine list in MM Schema

    Hi Friends,
    Could you please share the Std functionality of MM schema
    Subtotal("",1,2,3,4 etc)
    Requirement(2,3 etc...)
    CAl Type (2,3 etc...)
    BAse type (2,3 etc...)
    i know its not possible to list the functionality of all . I only onl the most important one.
    like say - Bas type 362 is given against Gross amount  in MM Schema . Reason : 363 Bas type will fetch the net PO value to tax pricing . now Tax base price is this ( freight is not considered)
    like wise i want to know the relevance of the above and important items in it.
    Say subtotal -  what it do and main items in it and its usage say 2,6, 9, 12 and its usage.
    regards
    manu

    I know its Business specific . am not getting into any specific .
    If some one be kind enough to tell say 5 items per 4 things i mentioned above.
    If such 5 people tell 5 different items - i will get 25 . Almost all std will be covered in it . rest will explore .
    I have searched in forums and no where its detailed. Its  humble try from my side to collect this so that people can use it and think on its logic.

  • Move undo and temporary tablespace to new path

    Hi All,
    I want to move my undo and temporary tablespace to new path because of space issue. I am using Oracle 10g release 2 and working on production server can't take shutdown without prior permission.
    Please tell me the steps to do so...
    thanks
    Api

    About create/change/drop
    UNDO:
    SQL>show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 900
    undo_tablespace string UNDOTBS1
    SQL> CREATE UNDO TABLESPACE undotbs2 DATAFILE '+DATA_NEWPATH' SIZE 100M AUTOEXTEND ON;
    http://www.oracle-base.com/articles/9i/AutomaticUndoManagement.php
    SQL> alter system set undo_tablespace=undotbs2;
    *** after that can drop UNDOTBS1
    TEMP:
    SQL> CREATE TEMPORARY TABLESPACE TEMP TEMPFILE '+DATA_NEWPATH' SIZE 500M AUTOEXTEND ON NEXT 100M MAXSIZE unlimited EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    http://www.idevelopment.info/data/Oracle/DBA_tips/Tablespaces/TBS_3.shtml
    SQL> ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
    *** after that can drop old temp tablespace -> DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES

  • Get CPU and memory usage

    Hi!
    I would like to know if there is any way of getting system CPU and memory usage using Java code.

    I want to get the system CPU and memory usage using the performance monitor dll, the perfctrs.dll, but access this data using Java language.Then you should create wrapper dll between your java code and perfctrs.dll and convert data from format of dll to format of your java code.
    So, that is next question - how to create wrapper dll, how to deal with or how perfctrs.dll works?

  • Scratch disks and RAM usage

    i would like to understand the relationship between scratch disks and RAM usage in Photoshop.
    While i was working on a fairly big psb file (2gb), photoshop kept prompting that I was out of memory, but in fact the utilization was only 75% (i had 16gbs total, photoshop was only using 7gb, and i allowed PS to use up to 14gb in total). when it says out of memory, it was actually my scratch disk at fault ( i only set 1 scratch disk, which was my 120gb SSD running out of space).
    any idea how I can optimize PS to use up all my RAM first before even touching my scratch disk? (short of using a RAMdisk, please).
    thanks!

    I am curious about this also. I just reinstalled W-7--have 11 G of physical memory--a ton of hard drive empty space also, and I have been wondering why PS_CC is so slow--since basically I have only put my Security and Browser in addition to Adobe back on the Dell XPS computer..... At least now it does show the downloading percentage (like .psd file) , but that must be what is happening.  I do think that some of these "frozen" screens I have been experiencing, was because the program was using scratch disk, instead of the Ram... I came up from CS-5, and can't describe it in detail, but just realize how slow PS-CC is in most everything.  Going back and see if reallocating will help...

  • How can we find the most usage and lowest usage of table in Sql Server by T-SQL

    how can we find the most usage and lowest usage of table in Sql Server by T-SQL
    The table has time stamp column
    StartedOn datetime
    EndedOn datetime

    The Below query has been used , but the textdata column doesnot include the name of the table ServiceLog.
    SELECT
    FROM
    databasename,
    duration
    fn_trace_gettable('F:\Program
    Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\log_148.trc',
    default)
    WHERE
    DATABASENAME='ZTCFUTURE'
    AND TEXTDATA
    IS
    NOT
    NULL
    --AND TEXTDATA LIKE 'SERVICE%'
    order
    by cpu
    desc; 

  • Question regarding roaming and data usage

    I am currently out of my main country of service, and as such I have a question regarding roaming and data usage.
    I am told that the airplane mode is sufficient from keeping the phone off from roaming, but does this apply to any background data usage for applications and such?
    If the phone is in airplane mode, are all use of the phone including wifi and application use through the wifi outside of all extra charges from roaming?

    Ann154 wrote:
    If you are getting charged to use the wifi, then it is possible.  Otherwise no
    Just to elaborate here, Ann154 is referring to access charges for wifi, which is nothing to do with Verizon, so if you are using it in a plane, hotel, an internet cafe etc that charges for Wifi rather than being free .   Verizon does not charge you (or indeed know about!) wifi usage, or any other usage that is not on their cellular network (such as using a foreign SIM for example in global phones)  So these charges, if any, will not show up on the verizon bill app.  Having it in airplane mode prevents all cellular data traffic so you should be fine

  • Problem with memory usage and CPU usage

    Hello,
    i have a problem with the memory usage and cpu usage in my project!
    My application must run for more than 24 hrs. The problem is that the longer it runs the bigger is the memory and cpu usage!
    It starts with ~15% CPU usage and ~70 MBytes memory usage. After ~ 24hrs the CPU usage is ~60% and the memory usage is ~170 MBytes!
    After  3 days the CPU usage is almost about 70% and the memory usage is about 360 MBytes!
    What can I do to reduce this huge recource usage?
    Thank you!

    Hi Pahe,
       I think the issue is memory usage, since CPU usage can increase due to greater memory requirements.
       Anyway, it's difficult to debug without seeing your code, can you post it (possibly for LV 7.1 compatibility)?  Or just post a JPEG of the piece of code that can give problems...
       I guess you're appending data to an array instead of replace data elements, but I can't be sure...
       Have a nice day!
    graziano

  • Where to see CPU and RAM usage in IPAD 1

    Hi:-)
    While i have Apps running , I would like to be able to see CPU and RAM in use..and ideas how/where?
    Thanks

    There are several apps in the app store that can show you cpu and ram usage of your device, e.g. "system info"

Maybe you are looking for

  • Error When Creating Maintenance Plan

    Hi, recently I upgraded to sql server 2008 R2 from sql 2008, everything went OK and my server is up and running since 10 days. This evening I wanted to modify a maintenance plan that backs up all DBs which I run on command, I started to get "MSSQL se

  • CSS problem in WPC

    Hi community,    I am implimenting styles in my WPC pages through XSL. I am using the following code in XSL: <span style="font-family:arial;color:#0267fe;font-size:16px"/> xml data </span> The resultant text has the specified color, but the font stle

  • Having trouble moving/scaling pic 4 home/lock screen...

    I just updated to iOS7 on my mini-iPad, when I try to use a picture for either home/lock screen I try to scale n move the picture(landscape mode) like before the iOS7 update n it snaps back to a very zoomed in view of my picture n won't save or hold

  • Automatically booting into safe mode?

    Hi, For the last few days my imac has been automatically opening in safe mode and I have no idea why or how to stop it doing this. Before it started doing this, I never tried to safe boot it and had been having no problems with the mac at all. No new

  • Find redemption code used for movie

    I used a redemption code to redeem a movie on itunes.  I didn't realize till after I threw out the code that I could also redeem it for ultraviolet as well.  Is there a way to find the code I used to redeem the movie via my itunes account?