Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Tuning 'log file sync'

Re: Tuning 'log file sync'

From: Mladen Gogala <gogala_at_sbcglobal.net>
Date: Mon, 05 Sep 2005 01:43:43 GMT
Message-Id: <pan.2005.09.05.01.43.41.598238@sbcglobal.net>


On Mon, 05 Sep 2005 01:17:52 +0000, Mladen Gogala wrote:

> Only in the case of commit does the transaction that woke up ("posted")
> the LGWR wait for the LGWR to finish writing its data to the log file.
> In version 8, transactions would wait for the LGWR to flush the entire
> buffer, but that is no longer the case.

PS:

---
If you don't believe me, see 10.2 reference manual and "log_file_sync"
event. It now has a parameter saying how many actual blocks have to
be written.

log file sync

When a user session commits, the session's redo information needs to be flushed to the redo logfile. The user session will post the LGWR to write the log buffer to the redo log file. When the LGWR has finished writing, it will post the user session.

Wait Time: The wait time includes the writing of the log buffer and the post.
Parameter 	Description
buffer# 	The number of the physical buffer in the redo log buffer that
needs to be synchronized


So, when the transaction incurs this wait event, it knows how many
log blocks it is actually waiting for. That is a HUGE difference from
Oracle8, so that the common 8i wisdom no longer applies. You should
increase log_buffer until waits for log buffer space are insignificant.

-- 
http://www.mgogala.com
Received on Sun Sep 04 2005 - 20:43:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US