Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Commit -> write to data file immediately???
David,
when the user commits, Oracle guarantees to write the REDO information to the redo logfile. When this has been successful, the user gets the 'n records committed' message. The changed data is still held in the buffer cache but has not yet been written to disc.
Sounds bad, but because the redo log holds the details of how to rebuild that entire transaction, then it can be rolled forward in the event of a database failure with subsequent recovery. (ARCHIVE LOG mode required of course (unless the whole transaction details are still in the on-line redo logs)).
The data in the buffer cache is written to the actual datafiles at certain times when a checkpoint occurs. This is caused by a redo log switch, a timeout (every 3 seconds), when the redo log bugger becomes one third full etc.
If I've missed anything, Howard will be sure to mention it (and correct me if I got it hopelessly wrong !) :o)
Regards,
Norman.
Norman Dunbar EMail: NDunbar_at_LynxFinancialSystems.co.uk Database/Unix administrator Phone: 0113 289 6265 Lynx Financial Systems Ltd. Fax: 0113 201 7265 URL: http://www.LynxFinancialSystems.com
------------------------------------------------------------------------
![]() |
![]() |