Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of dbwr, lgwr and ckpt in the database

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail what is the use of dbwr, lgwr and ckpt in the database. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Dbwr:

1. When dirty list reaches a certain amount (threshold 25%), it causes Server Proceess to notify DBWn to write stolen data.

2. When the scan LRU list reaches a certain number and the free buffer is not found, stop searching for free buffer and directly inform DBWn to write dirty data

3. Checkpoint writes data

Lgwr

First, the foreground process triggers

1. The user issues a commit,rollback statement.

two。 The log buffer could not find enough memory to hold the log information.

Two, every 3 seconds

Third, the amount of log information reaches 1 of the log buffer.

Fourth, the amount of log information reaches 1MB.

Fifth, when DBWn starts, if it is found that the redo entries corresponding to dirty data blocks have not been written to the online log file, trigger LGWR, and wait for LGWR to finish writing before DBWn continues.

Ckpt

1. When a log group switch occurs

two。 When the LOG_CHECKPOINT_TIMEOUT,LOG_CHECKPOINT_INTERVAL,fast_start_io_target,fast_start_mttr_target parameter setting is met

3. When running ALTER SYSTEM SWITCH LOGFILE

4. When running ALTER SYSTEM CHECKPOINT

5. When running alter tablespace XXX begin backup,end backup

6. When running alter tablespace, datafile offline

This is the end of the article on "what is the use of dbwr, lgwr and ckpt in the database". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report