• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

UNDO Space usage question

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A user is executing a transaction in an Oracle database. Which of the following choices correctly identifies all the statements that will generate undo information within the transaction?
A . insert statements only
B . update and insert statements only
C . delete statements only
D*. delete and update statements only
E . delete, insert, and update statements only
could not understand why choice D is correct, I remember that insert also put some information (such as ROWID) into undo segament, otherwise how oracle could rollback?
could anyone kindly explain?
thanks
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would say 'least undo' for insert rather than saying no undo at all.
when we rollback:
delete requires reinserting the row(reconstruct the actual row)
insert requires just to delete the row (takes less bytes to store a rowid).
Hummm! If the question was not 'least undo', I would have given the answer 'E' and gotten a score 0.

Regards
Beksy
[ October 03, 2002: Message edited by: Beksy Kurian ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic