SCN and undo

hi,
say we start a transaction, and then we want to read a value, and that value has not been changed since our transaction started, but it is in a data block where another row in it has been changed since our transaction started.
So Oracle will see that that block's SCN is later than our transactions, and so it will go to the undo segment. This makes no sense to me.
Please help.
thanks

OracleGuy777 wrote:
hi,
say we start a transaction, and then we want to read a value, and that value has not been changed since our transaction started,This means that the block's transaction header has not recorded any active transaction and there is no Transaction SCN assigned within it. Whatever is there in the block, it can be read as it is without any kind of modifications done over it.
but it is in a data block where another row in it has been changed since our transaction started. That value change should not effect you. I believe what you are trying to say that there in the block, you got two values, Aman and employee code 1234 and you want to read the value Aman which is unchanged. The second value is getting updated ,may be to 5678 right?
So Oracle will see that that block's SCN is later than our transactions, and so it will go to the undo segment. This makes no sense to me.Okay, this certainly makes no sense. If you are not querying what's not changed, there is no point for Oracle to read the data from Undo for it. Oracle would do a current read for the data and would give the same content to you.
>
Please help.HTH
Aman....
thanks

Similar Messages

  • Differance between Rollback Segements and Undo Tablespace/segments

    Hi everyone.
    I have some confusion that how Rollback Segements and Undo Tablespace/segments and different? Functionally they seem to be the same but why then Oracle recommends not using Rollback segments?...please explain. Kindly post any links useful in this regard.
    Thanks,
    Mukesh

    1.when does the changed data written to the undo tablespace?It never gets moved to the undo tablespace.
    The ORIGINAL data gets moved to the rollback/undo. Oracle assumes that most of the time the transaction is going to commit, so the change is made to the real block (in memory). At that time, enough information to roll back that change is written into the rollback segment.
    2.which process writes the changed data to the undo tbs?The server process. The one to which the user connects. The one the user gets by contascting the listener.
    3.What are the identifiactions which is used to undo the changes made(like SCN) ? plz...AFAIK, Transaction Id is the only thing used. SCN, a redo log construct, may be used to recreate the transaction ID in the rollback.

  • 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

Maybe you are looking for

  • Exposing complete data structure in webservice

    Hello Experts,   I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice . So scenario will be SOAP -> XI -> Proxy (calls a BAPI) In our BAPI (proxy, target structure) we are having 100+ fields. Currently the WS consumer

  • Static over cd playback (HP Pavilion dv6-6b57sa)

    HP Pavilion dv6-6b57sa windows 7 64 bit i got my new laptop today, really excited, everything seemed great, i installed all the updates, everything worked well and most still does but... i put in a cd and during playback there was a vast amount of st

  • TextEdit won't display recent files

    TextEdit won't display recent files!  THIS USED TO WORK-- but now all I see is the words (greyed-out) "Clear Menu".  Not even sure what that means. My recent files works fine in WORD and other applications that offer this.  Any comments appreciated a

  • Contract in PO - Issue.

    Hi , While i am creating PR assigned Source as Contract . After PR get triggered , using PR creating i am creating PO... now PR is not getting populating in PO ... also clients needs to  know the list of the materials which created under Contract.. P

  • Easy Question - Playing song through iTunes when song is on external drive

    iTunes is set up as the default music player. When I play a song that's on an external hard drive it appears that iTunes not only plays the song but it also copies it to iTunes permanently. Am I correct? Is this an option that I can turn off? Thanks.