![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||
Solution Type Problem Resolution Sure Solution 601316.1 : "Warning: log write time" Messages Seen in LGWR Trace Files
In this Document
Applies to:Oracle Database - Standard Edition - Version 10.2.0.4 and laterExadata X5-2 Hardware - Version All Versions to All Versions [Release All Releases] Information in this document applies to any platform. ***Checked for relevance on 29-Dec-2014*** ***Checked for relevance on 09-Sep-2016*** SymptomsThe customer is reporting trace files being generated with the following message: Warning: log write time 540ms, size 5444KB *** 2008-05-14 10:19:02.686 Warning: log write time 1470ms, size 5533KB *** 2008-05-14 10:19:03.546 Warning: log write time 860ms, size 2230KB *** 2008-05-14 10:23:04.183 Warning: log write time 2940ms, size 5701KB *** 2008-05-14 10:23:05.758 Warning: log write time 1580ms, size 4234KB *** 2008-05-14 10:23:07.559 Warning: log write time 1800ms, size 5701KB ChangesThe problem surfaced after upgrading to 10.2.0.4. CauseThe above warning messages has been introduced in 10.2.0.4 patchset. SolutionDownload lfsdiag.sql from <note 1064487.1> and run it at bad time frame, then identify if "log file parallel write" is also slow. In case "log file parallel write" wait time is also slow, then the warning is most likely caused by slow IO or OS resource starvation.
The original bug referenced here only showed the code where the endtime was determined Thus it covers writes to the local redo log groups (i.e. "log file parallel write" waits), writing to LNS for remote standbys in SYNC mode (e.g. some of the LNS wait events), sending messages to other RAC nodes (i.e. the broadcast on commit or BOC which is usually done asynchronously but will generate it's own "warning" message if it does have to wait and it also takes significant time), and finally it also covers time taken to wake up all the sessions waiting on "log file sync" or update the internals structures those sessions will read while doing polling (adaptive log file sync polling mode).
Also, according to <Bug:7559549> , these trace can be disabled by setting event 10468 level 4. References<BUG:7559549> - TRACES GENERATED CONTAIN WARNING: LOG WRITE TIME 1330MS, SIZE 168KB<NOTE:1064487.1> - Script to Collect Log File Sync Diagnostic Information (lfsdiag.sql) Attachments This solution has no attachment |
||||||||||||||||||||
|