HWM and Undo

Hi ,
on 11g R2 on Win 2008,
my undo file is 5Gb and occupied only with 90 Mb. I want to resize to for example 4 Gb. It fails saying that there are users' data. Even if I just restarted database. I think that it is because of HWM.
How can I reduce it to be able to resize my undo file ?
Thanks.

check how much a tablespace shrinks wiith resize command.
column tablespace_name format a10
column file_name format a32
column file_mb format 9999990
column hwm_mb format 9999990
column used_mb format 9999990
column shrnk_mb format 9999990
break on report
compute sum of file_mb on report
compute sum of hwm_mb on report
compute sum of used_mb on report
compute sum of shrnk_mb on report
select a.*
, file_mb-hwm_mb shrnk_mb
from (
select /*+ rule */
a.tablespace_name,
a.file_name,
a.bytes/1024/1024 file_mb,
b.hwm*d.block_size/1024/1024 hwm_mb,
b.used*d.block_size/1024/1024 used_mb
from
dba_data_files a,
(select file_id,max(block_id+blocks-1) hwm,sum(blocks) used
from dba_extents
group by file_id) b,
dba_tablespaces d
where a.file_id = b.file_id
and a.tablespace_name = d.tablespace_name
) a
order by a.tablespace_name,a.file_name;

Similar Messages

  • I erroneously deleted some background icons, that now have left me with only thumbnail images, what appears when I want to enlarge is a grey circle containing a black exclamation symbol, how can I get back full function and undo my mistake

    I have erroneoulsy deleted icons repetious images from the computer which then affected my iphoto images, leaving me in some cases only with the thembnail image.   When I try to enlarge or perform any other function all that appears is a black field containing a grey circle with a black exclamation symbol( !)
    within it.  How to I get back full function of these affected images and undo my goof up.   I have tried restore, but my attempts have not proved successful. 
    Help !!!
    silvercoho

    What exactly did you do to delete these?
    How did you try to "restore" and what did you try to restore?
    Probably the only solution is to restore your backup of the iPhoto library  from before you did this
    LN

  • Why do the "SAVE", "SAVE AS" and "UNDO" functions of InDesign CS6 stop working after a short time?

    Why do the "SAVE", "SAVE AS" and "UNDO" functions of InDesign CS6 stop working after a short time?

    Normally they don't. You might have some sort of problem on your system, possibly a conflict with other software, or corrupt ID prefs or application. Trashing the prefs is easy, and good place to start: Replace Your Preferences
    It will help if you tell us the OS version, whther you've installed the 8.0.1 patch, and how you are trying to access the commands, and what happens when you do. Is this isolated to one file, or does it happen with all files?

  • How do I copy and paste to my mac and undo the change attributes like I do withmy iPad. I cannot shake my mac?

    How do I copy and paste to my mac and undo the change attributes. On my ipad I can shake it and undo the change attributes but not sure how to do this on the imac? Example Excel to email and undo changes?

    Thanks for the information....It did not work,....
    I am copying information from Excel and posting it into Lotus
    It works fine in word and other application, just not in Lotus notes...
    Any other ideas?

  • Forms editing and undos

    Acrobat 8 Pro, OS X 10.5.7
    Acrobat does not appear to able to undo an action when editing forms. A co-worker is working on a multipage form that was created in ID and exported to PDF. In Acrobat, she is creating form fields. Inadvertently, she has selected all of the fields and deleted them with no option to undo that last action.
    I've checked Acrobats preferences and there does not appear to be an option to edit the number of undo's.
    Can Acrobat undo actions when editing form fields?
    Thanks.

    PjonesCET wrote:
    If she closed the file she had to save the changes to retain them. That's what I was trying to get at once you save a File, you have the changes and they can never be undone.
    Oh Phillip. Do you really think no one reads your posts? You mention no such thing in post #3 or any of your following posts.
    Do you need new oars so you can backpaddle?
    Here are your posts:
    PjonesCET wrote:
    It appears the person save the changes once changes are save there are no undo.  That;s the reason I suggested making a Backup of a document before making any major changes. I know of no application that once you do a save or save as can go back and undo anything.
    PjonesCET wrote:
    Maybe I am not saying right. I know of no application once you save a Document, that will allow you to undo an edit.
    PjonesCET wrote:
    If you still don't understand I give up.  Once saved  a document, when you go to edit menu and undo its unavailable (Grayed out), not active.
    (sorry folks. I don't mean to stir things up in your thread but PJ has a tendency to spread misinformation all over the place. I just think it's good to call him on it when it happens.)

  • Authorization object for "set TECO" and "undo TECO"

    We want to control the authorization for "set TECO" and "undo TECO",but we can't find relevant Authorization object. Is there any Authorization object  for these two functions? If there's no Authorization object for them ,then how can we achieve the same result? Thank you very much!

    Hi,
    Under one user ID the auth object B_USERSTAT will have the authorization key in which user will be responsible to change the TECO user status.
    One user will not have any authorization key under B_USERSTAT Auth_Object.
    Hope it's will give you help.
    Regards,
    Vishal Kr. Sharma

  • Macbook pro charger light flickering, tried smc reset and undoing cord in back inside computer, nothing working....

    I have tried to do everything I can find in previous forums, ex: smc reset, removing back panel and undoing cord for a min, nothing seems to work, any ideas please.

    There are no settings Readers can suggest you change for different results.
    Your appointment at the Genius Bar for an evaluation is FREE, in warranty or out. These guys put their hands on these Macs all day every day, and Power and other Physical Problems is what they are good at.
    Plus they have lots of spare parts they can swap around to figure out what it is doing in a hurry.

  • How do I uninstall Windows 7 and undo my partition?

    How do I uninstall Windows 7 and undo my partition? I don't use Windows 7 anymore and would like the space back.

    Partition is gone but my computer is sitll trying to boot to the window sides (it did this automatically before). It works fine when I hit the Option key and select the Mac (the only option), but do you know why it would still try and boot to the other side. I just got a black screen that told me to insert a disk.

  • Segment shrinking and UNDO tablespace

    When i issued
    alter table <table_name> shrink space cascade;
    I got the error 'Unable to extend UNDO ...by 8' . Does Segment shrinking consume space from UNDO tablespace?
    Message was edited by:
    for_good_reason

    As Jonathan said, shrinking segment generates redo and undo data.
    But, this phoenomenon of undo shortage is not normal case.
    Shrinking segment might invole continous DML(deleting and re-inserting),
    but it's transaction seems to be committed internally at regular intervals.
    For this reason, shrinking operation should not hold undo area that long.
    But have no knowledge on exact behavior of shrink operation.
    Someone else will shed a light.
    How big your table and indexes?
    Some cases are reorted that shrinkage on big segment generates really large amount of undo data.
    This might be related with your problem. But not sure.
    Visit metalink note# 3888229.

  • OSB Unused block compression and Undo backup compression

    Dear all.
    I know that osb backup software is faster than other vendor software especially oracle database backup area.
    There are two special method (Unused block compression and Undo backup compression)
    But, normally in case of comparable product using same RMAN API(Veritas/Legato etc...), they only backup used block and skip unused block, right?
    I'm confused, what is different from used block only backup and unused block compression.
    Please explain detail about unused block compression and Undo backup compression.
    Sorry about my poor knowledge.
    Thanks.

    This is explained in detail in the OSB technical white paper:
    http://www.oracle.com/technetwork/products/secure-backup/learnmore/osb-103-twp-166804.pdf
    Let me know if you have any questions
    Donna

  • Relation between undo_retention and undo tablepsace size

    Hello,i am on 10.2.0.3.
    Can someone please clear this things a little bit.
    Let's say that i have one SQL that is doing inserts or updates and this have execution time of 30 minutes,
    and my undo_retention parameter is set to 20mins, undo_management=auto, and undo tablespace of 30GB of which is curently taken only 1GB,
    will this insert fail with ora-1555 snapshot too old or not ?
    Is undo_retention the only thing that determines how long query can be run or i can focus on undo tablespace size also if there is enough space in it ?

    No, the DML activity load on the system during any given period of time is the most important factor in how your undo is handled. How you define your undo tablespace in your choice of building it using extendable data files or with a fixed size (my recommendation) also comes into play.
    If you use a fixed size undo tablespace Oracle will attempt to use it all before overlaying data.
    The DBA Administration manual has a decent discussion of undo tablespace managment and sizing considerations in the chapter on managing undo.
    HTH -- Mark D Powell --

  • Redo and undo operations in lingo.

    I wanted to know how you people develop redo and undo method in a director project using lingo? Is there any standard function which keeps track of user interactions and provide the traditional method of redo and undo? Else should i develop a own logic? I'm new to lingo programming, so asking you experienced people how to go about it?

    Thanks, finally i was able to create undo operation in lingo! Lists are very helpfull in lingo, i got to know these just after coding undo action, i was able to create with counters and two lists.
    Here is just sample i did, not too great though!
    global clicklist, counter, undolist, undocounter
    on mouseUp me
    -- store values in variables for undo operation
      spriteName = undolist.getAt(undocounter - 2)
      spriteX = undolist.getAt(undocounter - 1)
      spriteY = undolist.getlast(undocounter) 
      sprite(spriteName).loc = point(spriteX, spriteY)
      undolist.deleteAt(undocounter)
      undolist.deleteAt(undocounter-1)
      undolist.deleteAt(undocounter-2)
      undocounter = undocounter - 3
    end

  • Rollback and UNDO

    Hi,
    I'm confuse about Rollback and Undo concepts, can some one explain it to me please?
    Felipe :)

    This is a copy of a previous post I made some time ago:
    There might be confusion while undo and rollback segment terms are used interchangeably in db world. It is due to the compatibility issue of oracle.
    Undo
    Oracle Database must have a method of maintaining information that is used to roll back, or undo, changes to the database. Such information consists of records of the actions of transactions, primarily before they are committed. These records are collectively referred to as undo.
    Undo records are used to:
    * Roll back transactions when a ROLLBACK statement is issued
    * Recover the database
    * Provide read consistency
    * Analyze data as of an earlier point in time by using Flashback Query
    When a ROLLBACK statement is issued, undo records are used to undo changes that were made to the database by the uncommitted transaction. During database recovery, undo records are used to undo any uncommitted changes applied from the redo log to the datafiles. Undo records provide read consistency by maintaining the before image of the data for users who are accessing the data at the same time that another user is changing it.
    Undo vs Rollback
    Earlier releases of Oracle Database used rollback segments to store undo. Oracle9i introduced automatic undo management, which simplifies undo space management by eliminating the complexities associated with rollback segment management. Oracle strongly recommends (Oracle 9i and on words) to use undo tablespace (automatic undo management) to manage undo rather than rollback segments.
    To see the undo management mode and other undo related information of database-
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 900
    undo_tablespace string UNDOTBS1
    Since the advent of Oracle9i, less time-consuming and suggested way is—using Automatic Undo Management—in which Oracle Database creates and manages rollback segments (now called “undo segments”) in a special-purpose undo tablespace. Unlike with rollback segments, we don’t need to create or manage individual undo segments—Oracle Database does that for you when you create the undo tablespace. All transactions in an instance share a single undo tablespace. Any executing transaction can consume free space in the undo tablespace, and when the transaction completes, its undo space is freed (depending on how it’s been sized and a few other factors, like undo retention). Thus, space for undo segments is dynamically allocated, consumed, freed, and reused—all under the control of Oracle Database, rather than manual management by someone.
    Switching Rollback to Undo
    1. We have to create an Undo tablespace. Oracle provides a function (10g and up) that provides information on how to size new undo tablespace based on the configuration and usage of the rollback segments in the system.
    DECLARE
    utbsiz_in_MB NUMBER;
    BEGIN
    utbsiz_in_MB ;= DBMS_UNDO_ADV.RBU_MIGRATION;
    end;
    CREATE UNDO TABLESPACE UNDOTBS
    DATAFILE ‘/oradata/dbf/undotbs_1.dbf’
    SIZE 100M AUTOEXTEND ON NEXT 10M
    MAXSIZE UNLIMITED RETENTION NOGUARANTEE;
    Note: In undo tablespace creation, “SEGMENT SPACE MANAGEMENT AUTO” can not be set
    2.Change system parameters
    SQL> alter system set undo_retention=900 scope=both;
    SQL> alter system set undo_tablespace=UNDOTBS scope=both;
    SQL> alter system set undo_management=AUTO scope=spfile;
    SQL> shutdown immediate
    SQL> startup
    UNDO_MANAGEMENT is a static parameter. So database needs to be restarted.
    Reference: 10gR2 Administration Guide and Concepts
    Regards,
    Francisco Munoz Alvarez

  • Tablespace, Rollback segments and Undo tablespace

    hi,
    we are frequently getting an error on tablespaces, rollback segments and undo tabelspaces during the ETL load. This was really distrubing us to go further, is there any best practice how to avoid the tablespace errors or any precautions to be taken, we are very new to this ETL loads, pls advice
    Kishan

    Hello Kishan
    Yes. Make tablespaces bigger. However, the proper way to do it is optimizing your queries. If you don't have experience with Oracle DB, consult your DBA.
    Hope this helps
    Mate

  • Contents of flashback and undo ?

    When Flashback logs are generated would UNDO also be filed ?
    Would the contents of Flashback logs and Undo Logs be the same ?
    I believe undo information is stored in SGA and then the Undo Logs.

    When Flashback logs are generated would UNDO also be filed ?
    Its the other way around. Undo gets filled up and from there a background process, RVWR writes this content into the Flashback logs. Undo can't be retained for a very long period of time. Theoretically, there can be a very long duration but practically its impossible. That's why Oracle has given Flashback logs. The idea is that in the case, some thing terrible has gone wrong (logically) with lots of tables than rather than sitting and doing either, incomplete recovery of the database and/or Flashback for the tables one by one, which both are time consuming and error prone,its better to go with Flashback logs.
    Would the contents of Flashback logs and Undo Logs be the same ?
    In gernal , yes they are. But all that is contained in Undo does NOT go in the Flashback logs.
    I believe undo information is stored in SGA and then the Undo Logs.
    Undo is an old copy of the block change and its sent to the Undo Segment immediately when you do the block change. Undo is not required to be kept in the Buffer Cache as long as some one doesn't need to have a read consistent copy of that block which you have changed.
    HTH
    Aman....

Maybe you are looking for