jQuery in Action, 2nd edition
The moose likes Oracle/OAS and the fly likes UNDO Space usage question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Reply Bookmark "UNDO Space usage question" Watch "UNDO Space usage question" New topic
Author

UNDO Space usage question

Lipman Li
Ranch Hand

Joined: May 02, 2002
Posts: 122
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
Beksy Kurian
Ranch Hand

Joined: Jul 11, 2001
Posts: 254
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 ]
 
IntelliJ Java IDE
 
subject: UNDO Space usage question
 
Threads others viewed
Undo features...
ResultSet object from executeUpdate()
Oracle - Will the output of a Select query depend on how long the Query took for execution?
Which of the following statement will not implicitly begin a transaction?
Transactions
MyEclipse, The Clear Choice