uncommit change and redo record ? [message #577969] |
Fri, 22 February 2013 02:56 |
|
lonion
Messages: 97 Registered: August 2011 Location: shenzhen,China
|
Member |
|
|
SQL> update t set a = 1 where b = 2; -- must have redo record
2 rows updated.
SQL> rollback;
the above redo record that uncommit changed must be written from redo buffer to the online redo logfile.
Question:
why Oracle write the redo record that uncommit changed to the online redo logfile ? when it will be used ?
Thanks advance.
|
|
|
|
|
|
|
|
|
|
|
|
Re: uncommit change and redo record ? [message #578147 is a reply to message #577969] |
Sun, 24 February 2013 21:24 |
hkchital
Messages: 128 Registered: September 2008 Location: Singapore
|
Senior Member |
|
|
A transaction ends with *either* COMMIT or ROLLBACK.
A ROLLBACK is an "end of transaction".
Oracle captures the user-initiated rollback in the redo.
(The automatic rollback that happens to an uncommitted transaction is done either by PMON (if the user session fails) or SMON (on instance recovery after an instance "crash")).
Hemant K Chitale
|
|
|