High Water Mark for Undo tablespace..!!

Hello Everybody,
I was searching since long to get how much maximum the undo tablespace might have reached.
Can somebody please help me with the query to find out what is the maximum that undo tablespace has been reached.
Any help will be greatly appreciated.
Thanks -
Harsh.

Hi,
Undo tablespace are different from the normal tablespace. They consist of undo segments which can have undo blocks in three status
1)ACTIVE
This means that undo extent is Active and being currently used by a transaction
2)UNEXPIRED
This represents the extents which are required to satisfy the time specified by Undo_retention Initialisation parameter.
3)EXPIRED
These are extents which are not being used by transaction and have crossed the time specified by Undo_retention .
(http://askoracledba.blogspot.com/2008/04/undo-tablespace-sizing.html)
Now there might be case that the blocks for committed transactions which has passed undo_retention are in middle of datafile.
In case you want HWM information so as to reduce the datafilesize, then I would recommend you to create a new undo tablespace and switch to it. After that you can drop the old undo tablespace.
-Amit
http://askoracledba.blogspot.com

Similar Messages

  • Query high water mark for my rollbacksegment

    can somone give me a query to find it out high water mark from my rollback segments.
    Thansk

    Which version of Oracle are you using ?
    If 9i and above, you'd better choose auto undo management, then there's no need to worry about rollback segment "HWM"
    Actually there's no HWM problem for rollback segment, in 8i and before, you can set the OPTIMAL size of your rollback segment.
    The idea is let rollback segment shrink to OPTIMAL size after it grows. However, if rollback segment is sized properly, it shoundn't grow. Because frequent rollback segment shrinking and growing will have impact on performance, it's not worth the few hundred mega space saved temporarily.

  • Datafile High Water Mark Script....

    Hello,
    How can I find out high water mark for a datafile?
    Thanks.

    Hi,
    If you have access on Oracle Metalink, so you can take a look at Note:130866.1 about calculation of High water mark of datafiles. In addition to that, you also take a look at this [url http://forums.oracle.com/forums/message.jspa?messageID=1605840#1605840]thread.
    Cheers
    Legatti

  • High water mark creates performance degradation

    Hi all,
    I need help...
    How to find High water mark for tables. How to decide what are all tables needs to be reorginised. I want clear cut idea on this issue.
    Please help me.
    Regards,
    Kiran

    You use online segment shrink to reclaim fragmented free space below the high water mark in an Oracle Database segment. The benefits of segment shrink are these:
    Compaction of data leads to better cache utilization, which in turn leads to better online transaction processing (OLTP) performance.
    The compacted data requires fewer blocks to be scanned in full table scans, which in turns leads to better decision support system (DSS) performance.
    Please visit here:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/schema.htm#ADMIN10161
    what were the objects and recommendations generated after Segment Advisor job execution?
    SQL> select af.task_name, ao.attr2 segname, ao.attr3 partition, ao.type, af.message
    from dba_advisor_findings af, dba_advisor_objects ao
    where ao.task_id = af.task_id
    and ao.object_id = af.object_id
    what are the objects my database that can be reduced?
    select tablespace_name, segment_name, segment_type, partition_name,
    recommendations, c1 from table(dbms_space.asa_recommendations('FALSE', 'FALSE', 'FALSE'));
    where c1 is the command to be used.Before such operations this has to be issued,
    ALTER TABLE ... ENABLE ROW MOVEMENT.
    Hope it helps.
    Adith

  • How to reset high water mark into LOBSEGMENT

    Hi
    I am using oracle 10g R2. I need to reset high water mark from LOBSEGMENT, I have already reset it from table segment. Please help me regarding this. Necessary information as under :
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Productio
    NLSRTL Version 10.2.0.3.0 - Production
    SQL> SELECT dbms_metadata.get_ddl('TABLE','F_JOB_LIST_1','T24') FROM DUAL;
    DBMS_METADATA.GET_DDL('TABLE',
    CREATE TABLE "T24"."F_JOB_LIST_1"
    ( "RECID" VARCHAR2(200),
    "XMLRECORD" "SYS"."XMLTYPE" ,
    CONSTRAINT "F_JOB_LIST_1_PK" PRIMARY KEY ("RECID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "GLOBUSINDEXXML" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "GLOBUSDATAXML"
    XMLTYPE COLUMN "XMLRECORD" STORE AS CLOB "LOB_F_JOB_LIST_1"(
    TABLESPACE "GLOBUSDATAXML" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
    NOCACHE LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)) ENABLE ROW M
    OVEMENT
    Regards
    Rabi
    Edited by: user623166 on Dec 30, 2011 9:17 PM

    You can rebuild the LOB segment using ALTER TABLE MOVE or you can shrink the table using cascade. Cascade will also shrink the LOB segment as much as possible.
    In version 11g, you can compress LOB segments and turn on de-duplication if you have an advanced compression license. You cannot shrink LOB segments if they are stored as SECUREFILE.

  • High water  mark level

    hi all
    Does 'HWML' has any significant role in performance
    regards
    josh

    hi,
    just out of interest this script will tell you each datafile size and its high water mark value.
    set serveroutput on
    execute dbms_output.enable(2000000);
    declare
    cursor c_dbfile is
    select tablespace_name
    ,file_name
    ,file_id
    ,bytes
    from sys.dba_data_files
    where status !='INVALID'
    order by tablespace_name,file_id;
    cursor c_space(v_file_id in number) is
    select block_id,blocks
    from sys.dba_free_space
    where file_id=v_file_id
    order by block_id desc;
    blocksize binary_integer;
    filesize binary_integer;
    extsize binary_integer;
    begin
    /* get the blocksize of the database, needed to calculate the startaddress */
    select value
    into blocksize
    from v$parameter
    where name = 'db_block_size';
    /* retrieve all datafiles */
    for c_rec1 in c_dbfile
    loop
    filesize := c_rec1.bytes;
    <<outer>>
    for c_rec2 in c_space(c_rec1.file_id)
    loop
    extsize := ((c_rec2.block_id - 1)*blocksize + c_rec2.blocks*blocksize);
    if extsize = filesize
    then
    filesize := (c_rec2.block_id - 1)*blocksize;
    else
    /* in order to shrink the free space must be uptil end of file */
    exit outer;
    end if;
    end loop outer;
    if filesize = c_rec1.bytes
    then
    dbms_output.put_line('Tablespace: '
    ||' '||c_rec1.tablespace_name||' Datafile: '||c_rec1.file_name);
    dbms_output.put_line('Can not be resized, no free space at end of file.')
    dbms_output.put_line('.');
    else
    if filesize < 2*blocksize
    then
    dbms_output.put_line('Tablespace: '
    ||' '||c_rec1.tablespace_name||' Datafile: '||c_rec1.file_name);
    dbms_output.put_line('Has a highwater mark of: '||2*blocksize
    ||' Bytes, actual size: '||c_rec1.bytes||' Bytes');
    dbms_output.put_line('.');
    else
    dbms_output.put_line('Tablespace: '
    ||' '||c_rec1.tablespace_name||' Datafile: '||c_rec1.file_name);
    dbms_output.put_line('Has a highwater mark of: '||filesize
    ||' Bytes, actual size: '||c_rec1.bytes);
    dbms_output.put_line('.');
    end if;
    end if;
    end loop;
    end;
    regards
    Alan

  • Explain about high water mark and low watermark

    explain about high water mark and low watermark?

    biju2012 wrote:
    Here are a few links..
    http://www.orafaq.com/tuningguide/
    Look at Analysing problem SQL > Data Storage Problems > High Water Mark
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:575223085419
    I checked both those links, and neither says anything about a "low water mark". One link has a copyright notice of 2003, the other starts with a question about 8.1.6.
    Given the nature of the question I think we should be allowed to guess that the OP is probably thinking about the "low high water mark" and "high high water mark" that applies to segments using ASSM (automatic segment space management).
    Under ASSM, Oracle doesn't format blocks for use in absolute order, it will pick batches of blocks (typically 16 - unless that's changed fairly recently) in the most recently allocated extent. This means that you can end up with some UNFORMATTED blocks near the start of the extent with some FORMATTED blocks later in the extent.
    The "low high watermark" is the last block below which there are no UNFORMATTED blocks; the "high high watermark" is the block above which there are no FORMATTED blocks. Looking at it another way - between the low and high high watermarks you may find both formatted and unformatted blocks, but this condition doesn't exist anywhere else in the segment.
    Regards
    Jonathan Lewis

  • What is High Water mark?

    Hi,
    What is high water mark in an Oracle data block? I have gone thorugh some material on this, but could not understand fully.
    Thanks.

    In that case No body can answer anything unless otherwise he is from oracle corp who was involved in development of DB
    A copy from other site and pasting here doesnt sound weell but atleast he did a search for you
    But your point is valid moreover it seems the OP does not have time to search in google :)

  • High water mark

    what is high water mark iin oracle all about. secondly what type of PL/SQL is describe dbms_start

    High Water Mark is all about knowing what table storage is used and what table storage is free. Blocks stored below the high water mark may be full, but if not they should be considered for use when inserting or updating records. On the other hand, blocks below the high water mark also need to be inspected during a full-table-scan query whether they are empty or not.
    DESCRIBE is not PL/SQL. It is a SQLPlus command used to show the API of a table or a procedure. Described [sic] in the SQLPlus reference manual at http://tahiti.oracle.com

  • Table high-water mark

    Hi Guys,
    please help me in this table high-water mark in sql tuning.
    regards
    Sub

    use the dbms_space.unused_space procedure to tell you what you want to know. total_bytes - unused_bytes will tell you used bytes -- your HWM in bytes. total_blocks - unused_blocks will tell you used blocks -- your HWM in blocks.
    But this information is not of much use in tuning as it only tell you where in the table allocation your data ends. Beyond the HWM is terra incognito, so far as the optimizer is concerned.

  • Need to save some e mails but my high water mark is on how do i have e mails

    want to save e mails.have folder but my high water mark comes up.what to do

    You can save iCloud emails to your computer by creating a new Mailbox in Apple Mail, making sure that it is under 'On My Mac'. If you then drag messages from the iCloud mailbox to the new mailbox they will be downloaded and removed from the server. Don't try to do too many at once, and if you have a lot expect it to take quite some time.

  • How to turn off high priority mark for emails

    I would like to turn off high priority mark for emails. Plaese advise!

    If you are talking about flagging and unflagging email messages in the mail app .... Find the email - open it - tap on Mark - select unflag.

  • Why high water mark?

    Hi,
    These days I am always thinkin' about a question that why Oracle introduces high water mark.
    I've found some documents describing this concept, but I still can't make out what's the advantage of the high water mark.
    If someone could tell me, I will be very appreciated!

    Jaffy wrote:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:669044239081
    regards
    Jaffythanks Jaffy, I think I can accept this answer, maybe Oracle takes FTS from HWM as a safe way.
    The same thanx to Pavan Kumar and Aman....
    ----quote from http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:669044239081:
    The blocks are in use. The table is a complex data structure, it is not a fifo/lifo queue or
    anything like that -- it is a big old heap. Once used -- implies "could still be used".
    Edited by: user12977032 on May 14, 2010 12:54 AM

  • License high water mark

    Hi Gurus,
    In alert log file , i find License high water mark with some number after shutdown immediate command.
    What does it signify ?
    Is this problem ?
    What information can we derive after finding this ?
    Thanks & Regards

    It is the number of sessions. A end user may open multiple sessions. A connection pooled applicaion such as a web server based application may open a minimun number of connection pooled sessions such as 20 to 50 at all times even if idle.
    What kind of applications do you have using the database.
    Did you query v$session to see how many sessions there were?
    Ok, so you do not use dbms_scheduler but do you use PQO? If a single user submits a query that runs under PQO then numerous sessions may be created to run the query.
    I have seen a single .net applicaiton flood a database with connections. Every time it ran a look it opened a new connection when it was supposed to be using a pooled connection. It took the developers a while but they eventually found where another parameter had to set in the system to get the .net code to function correctly.
    What you expect and what you have appear to be different. Looking at v$session should allow you to confirm the information and if the number of sessions is greater than what you expect it should allow you to trace them back to the source.
    HTH -- Mark D Powell --

  • ORA-01111: for undo tablespace

    Hi,
    We have large archive gap in standby.
    When we try to apply archive log manually using recover standby database, it throws the below error
    SQL> recover standby database;
    ORA-00283: recovery session canceled due to errors
    ORA-01111: name for data file 35 is unknown - rename to correct file
    ORA-01110: data file 35: '/data/db/tech_st/11.1.0/dbs/UNNAMED00035'
    ORA-01157: cannot identify/lock data file 35 - see DBWR trace file
    ORA-01111: name for data file 35 is unknown - rename to correct file
    ORA-01110: data file 35: '/data/db/tech_st/11.1.0/dbs/UNNAMED00035'
    We have added File 35 in Primary in undo tablespace , hence it's throwing error.
    Please advice.
    Thanks

    Hi,
    If you have the same filesystem on both primary and standby database, then why dont you try backing up single file and restoring to standby database.
    Connect to your primary database:
    rman target /
    run
    allocate channels...;
    backup datafile 35;
    Copy the backup piece to standby database. On standby database:
    rman target /
    catalog start with 'backup location';
    restore datafile 35;
    then on your sqlplus:
    recover standby database;
    Hope this will resolve your problem.

Maybe you are looking for

  • I am having a small problem. with Media Go??

    I have a program call " Creative MediaSource Go!" but when click on it to open so i can do some setup, nothing happens. Is ee the hour glass then nothing happens. I already updated with creative. please can some one tell me wat i am missing yo get th

  • How do I sync my Iphone with my home pc since the pc crashed lost everything and had a new hard drive installed

    my Pc crashed & had a new hard disc. now when I want to sync the iPhone Itunes wants to erase the contents of the phone which I do not want. How to sync the contents of the phone to itunes withot losing my phone contents?

  • Change in File Name of Adobe Form

    Hi Gurus,                  I have a requirement..such that i had a text field in the Form.I need to get the text field value as file name,when iam saving the adobe form...is that posssible..???

  • Pdf 1.4/ Acrobat 6

    Hi, Can anyone tell me if and how I can index pdf verion 1.4 files in a Oracle 9.2 database? Does 10g support the new pdf version? Thanx for your response. Greetings, Mark

  • ClassCastException launching Applet under JRE 7u21

    I'm working on a signed Applet that will no longer start under version 7u21 of the JRE, and I've been able to isolate the problem to the Java Plugin's cache. If I disable Temporary files in the Java Control Panel, then everything's file. If I enable