DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Who writes in the Rollback segment and When?

  1. #1
    Join Date
    Jan 2009
    Posts
    3

    Who writes in the Rollback segment and When?

    Hi everybody,
    I have some questions about the rollback segment, i searched in the forum before i opened this thread and i didn't find any answer (may be I didin't search enough...). That is my questions:

    I don't find in my documents any information about the process who writes in the rollback segment. Normally it's the DBW since it is THE process that writes in data files by definition... but I'm not sure !

    I want to know too when exactly rollback segment is written, i know it includes the "before" image of the modified data, but I don't know when this image is written. In all document I read, they speak only about writing of the dirty blocks in data files, but not of the "before" image !!!

    My third and final question is the following:
    When a little bit of information is modified in a data block; Do we keep in the rolloback segment the whole of the data block, or only a part of the block, the one which was modified ?

    Thank you very much for your help.
    Last edited by Tifa; 02-17-2009 at 09:09 PM.

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Rollback segments were officially phased out in 9i, and even then they were not the default. So unless you are running 8i you should not have any rollback segments.

    But if you did, tahiti.oracle.com still has the concepts manual for 8i. In which you can read the following:

    http://download-west.oracle.com/docs...block.htm#4146

  3. #3
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    they are still rollback segments in 11g, just system managed ones

  4. #4
    Join Date
    Jan 2009
    Posts
    3
    gandolf,
    Thank you for your answer, I already read the Oracle documents (Oracle Database Concepts) and I didn't find the answers.
    I don't find the process that writes the rollback data in the data files and i don't know when these data blocks are written; indeed, in documents, they always say that DBW writes DIRTY data block to data files... normally, when the DBW writes the "after" image of the non committed data in the table segment, it should write the "before" image in the rollback segment... but i am not sure of what i'm saying !!!

    davey23uk,
    thank you for your precision.

  5. #5
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Actually it is the LGWR process the one writing into the online redo log; entries from SGA's Log Buffer are written into the online redo log file when you commit a transaction.

    DBW process will then copy the new data from the redo log file into the appropriate datafile.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  6. #6
    Join Date
    Nov 2002
    Location
    Mooresville, NC
    Posts
    349
    PAVB i guess his question is who writes to rollback segments.

    Tifa, i think SMON process does this, however i'm not 100% sure.
    http://www.perf-engg.com
    A performance engineering forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width