10.3.15log file switch
There are two wait events commonly encountered:
In both of the events, the LGWR is unable to switch into the next online redo log, and all the commit requests wait for this event.
10.3.15.1Actions
For thelog
file
switch
(archiving
needed
)
event, examine why the archiver is unable to archive the logs in a timely fashion. It could be due to the following:
-
Archive destination is running out of free space.
-
Archiver is not able to read redo logs fast enough (contention with the LGWR).
-
Archiver is not able to write fast enough (contention on the archive destination, or not enough ARCH processes). If you have ruled out other possibilities (such as slow disks or a full archive destination) consider increasing the number
of ARCn processes. The default is 2.
-
If you have mandatory remote shipped archive logs, check whether this process is slowing down because of network delays or the write is not completing because of errors.
Depending on the nature of bottleneck, you might need to redistribute I/O or add more space to the archive destination to alleviate the problem. For thelog
file
switch
(checkpoint
incomplete
)
event:
-
Check if DBWR is slow, possibly due to an overloaded or slow I/O system. Check the DBWR write times, check the I/O system, and distribute I/O if necessary. SeeChapter
8, "I/O Configuration and Design".
-
Check if there are too few, or too small redo logs. If you have a few redo logs or small redo logs (for example two x 100k logs), and your system produces enough redo to cycle through all of the logs before DBWR has been able to complete
the checkpoint, then increase the size or number of redo logs. See"Sizing Redo Log Files".
10.3.16log file sync
When a user session commits (or rolls back), the session's redo information must be flushed to the redo logfile by LGWR. The server process performing theCOMMIT
orROLLBACK
waits
under this event for the write to the redo log to complete.
Actions
If this event's waits constitute a significant wait on the system or a significant amount of time waited by a user experiencing response time issues or on a system, then examine the average time waited.
If the average time waited is low, but the number of waits are high, then the application might be committing after everyINSERT
, rather than batchingCOMMIT
s.
Applications can reduce the wait by committing after 50 rows, rather than every row.
If the average time waited is high, then examine the session waits for the log writer and see what it is spending most of its time doing and waiting for. If the waits are because of slow I/O, then try the following:
-
Reduce other I/O activity on the disks containing the redo logs, or use dedicated disks.
-
Alternate redo logs on different disks to minimize the effect of the archiver on the log writer.
-
Move the redo logs to faster disks or a faster I/O subsystem (for example, switch from RAID 5 to RAID 1).
-
Consider using raw devices (or simulated raw devices provided by disk vendors) to speed up the writes.
-
Depending on the type of application, it might be possible to batchCOMMIT
s by committing everyNrows,
rather than every row, so that fewer log file syncs are needed.
分享到:
相关推荐
看书笔记db file scattered read DB ,db file sequential read DB,free buffer waits,log buffer space,log file switch,log file sync 我们可以通过视图v$session_wait来查看系统当前的等待事件,以及与等待事件相...
* log file now contains "<WARNING>" and "<ERROR>" indicators * workaround for movie playlists which want the same m2ts file played twice * added version check for eac3to (doh!) * when a read error ...
Moving a BDC Here are the steps you should follow when you want to move a BDC from one domain to another: Boot up the BDC you want to move and log in. Use NewSID to synchronize the SID of the BDC ...
- CR#493162 / AR#31834 - Shared file between buffer and log added to buffer file list. - Virtex-4 core has long initialization time - Version fixed : v5.1rev1 - CR#481684 / AR#31617 - Virtex-4 ...
specify an alternative redolog file of USB MSD disk image modes) - hard drive - new disk image mode 'vvfat' - ported the read-only part of Qemu's 'virtual VFAT' block driver - additions: ...
ContextSwitch and AjaxContext 7.8.4.3.1. 缺省可用的上下文 7.8.4.3.2. 创建定制的上下文 7.8.4.3.3. 为每个动作设置上下文 7.8.4.3.4. 初始化上下文开关 7.8.4.3.5. 另外的功能 7.8.4.3.6. AjaxContext ...
# 3G Data Card usb modeswitch File #PRODUCT_COPY_FILES += \ # $(call find-copy-subdir-files,*,device/softwinner/polaris-common/rild/usb_modeswitch.d,system/etc/usb_modeswitch.d) PRODUCT_PROPERTY_...
# 3G Data Card usb modeswitch File #PRODUCT_COPY_FILES += \ # $(call find-copy-subdir-files,*,device/softwinner/polaris-common/rild/usb_modeswitch.d,system/etc/usb_modeswitch.d) PRODUCT_PROPERTY_...
# 3G Data Card usb modeswitch File #PRODUCT_COPY_FILES += \ # $(call find-copy-subdir-files,*,device/softwinner/polaris-common/rild/usb_modeswitch.d,system/etc/usb_modeswitch.d) #PRODUCT_PACKAGES +=...
# See the License for the specific language governing permissions and # limitations under the License. # -include hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk WIFI_DRIVER_FW_PATH_STA := "/...