Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Redo-Log Archiv Problem
"Mark D Powell" <mark.powellNOmaSPAM_at_eds.com.invalid> wrote in message news:196eb74b.404d8d46_at_usw-ex0103-024.remarq.com...
> "Howard J. Rogers" <howardjr_at_www.com> wrote:
> To HJR, I disagree with your comment that larger logs take > longer to swith. A checkpoint requires flushing all dirty > database buffers to disk and updating the file headers as well > as archiving the just active redo log when in archive log mode. > The more dirty buffers and the more file headers the longer the > checkpoint takes, and the size of the redo log has no direct > effect on this. With very small redo logs they can fill before > the previous checkpoint completes, but this means the switch > completed and you are using a new redo before the checkpoint > completed. If the archive process is slow then you can end up > looping around and the next log becomes the log that is in the > process of being archived. In this situation it means you need > either more logs, better log archive destination IO, or both. > >
I don't disagree with your last comments. All I meant by saying that larger logs take longer to switch is that it will take you longer to fill up a 1Gb log file than a 100K file, and therefore it will take longer to switch when you have the bigger log files than the smaller (rembering that the switch to the new log will take place regardless of whether the checkpoint on the old log has finished, assuming you are not switching BACK onto an already-used log). I don't think you mean to disagree with that statement... unless you do, in which case I've no doubt you'll explain how it can possibly take the same amount of time to fill 1Gb as 100K.
Incidentally, you're wrong when you state that "A checkpoint requires
flushing all dirty
database buffers to disk" in the context of log switching. When you log
switch, the checkpoint that is issued is only concerned with dirty buffers
that relate to the log file being switched away from: ie, there may well be
dirty buffers which are not flushed, because they arose subsequent to the
log switch. "All" is a dangerous word to use!
Regards
HJR
> > > > ----------------------------------------------------------- > > Got questions? Get answers over the phone at Keen.com. > Up to 100 minutes free! > http://www.keen.com >Received on Mon Jul 10 2000 - 00:00:00 CDT