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

Thread: Oracle Concept

  1. #1
    Join Date
    Mar 2001
    Posts
    287
    In terms of resource usage (rollback segment and other resource), what type of transaction uses more "rollback segment" than the other transaction?

    a. Update
    b. Delete
    c. Insert

    And, why?

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    In terms of rollback space ussage, INSERT requires less than UPDATE, UPDATE (generally) requires less than DELETE. Why? Ask yourself what information does the database need to be able to rollback the changes. For INSERT, all it needs to know is the ROWID of the inserted row. For UPDATE, it needs the ROWID and the values of the *changed* column before the change. For DELETE it needs ROWID and values of *all* the columns befor the DELETE.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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