Requires Free Membership to View
DELETE FROM emp WHERE empno IN (1001,1002);The online redo logs will contain the following:
DELETE FROM {obj#1785} WHERE {col1} = 1001;
DELETE FROM {obj#1785} WHERE {col1} = 1002;
The original DELETE statement can be broken down into two DELETE statements. Also notice that Oracle references the table by object number and the column by column position.
In addition, your transaction generates undo stored in the undo segments. Oracle needs to replay the changes to the undo segments in case it needs to roll back any uncommitted transactions. So the online redo logs also contain the SQL to undo any operation.
This was first published in October 2006
Join the conversationComment
Share
Comments
Results
Contribute to the conversation