Oracle Redo Log Buffer size settings

Source: Internet
Author: User

Redo Log BufferThe size is determined by the initialization parameters.LOG_BUFFERThe default value of this parameter isMax (512KB, 128KB * CPU_COUNT). Generally, this default value is sufficient,WeYes, the Redo Log BufferWrite operations are quite frequentTherefore, too large Log Buffer settings are usually unnecessary. If the default value cannot meet the requirements, 3 MB is generally a reasonable adjustment start.

Whether to adjust the log_buffer parameter settings.DatabaseTo determine:

Sys @ ORCL>Select event #, name from v $ event_name where name = 'Log buffer space ';

EVENT # NAME

------------------------------------------------------------

109 log buffer space

When the Log Buffer Space waits for the event to appear and is more prominent, you can consider increasing the Log Buffer to reduce competition.

From Oracle10gAt the beginning, the allocation algorithm of LOG_BUFFER has changed becauseGranule, LThe allocation of OG_BUFFER must also be based on Granule,The Fixed SGA Size in the default SGA will share the Granule integer multiple with LOG_BUFFER.:

Sys @ ORCL>Select * from v $ version where rownum <2;

BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0-64bi

Sys @ ORCL>Show parameter log_buffer

NAME TYPE VALUE

-----------------------------------------------------------------------------

Log_buffer integer14238720

Sys @ ORCL>Select * from v $ sgainfo where name in ('fixed SGA size', 'redo Buffers', 'granule size ');

NAME BYTES RES

---------------------------------------------------------------

Fixed SGA Size2091144No

Redo Buffers 14684160 No

Granule Size 16777216 No

Sys @ ORCL>Select (2091144 + 14238720)/16777216 from dual;

(2091144 + 14238720)/16777216

---------------------------

. 973335743

If there is no obvious performance problem, the default setting is sufficient.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.