当前位置:网站首页>Analysis of redo log generated by select command
Analysis of redo log generated by select command
2022-04-23 13:43:00 【Not dizzy yet】
In the near future , A user is doing SQL To optimize the , adopt sqlplus Of set autotrace on Command tracking SQL When implementing , I found this SELECT The command also produced REDO journal ; With what we usually understand DML/DDL Statement REDO There are differences in the understanding of logs ~
Yes ORACLE If you have a clear understanding of the characteristics of the database , Especially data blocks 、 Have a deeper understanding of transaction processing , Will know ORACLE Database transactions 、 Data block ITL Some principles of transaction slot 、 structural information ; You will know a concept called “ Delay block clearing ”--delayed block cleanout, In about 9 Years ago, when I was learning to understand this piece of knowledge , The related concepts and principles are summarized and tested , You can check the BLOG: On the concept and experiment of delayed block clearing _ Not a dizzy blog -CSDN Blog
In short, it is :
Many data blocks may be manipulated in large transactions ; and BUFFER CACHE The time to write the modified dirty data in the data file is not COMMIT It is DBWR According to the rules ; Therefore, the data blocks related to transactions are brushed out first buffer cache, And then COMMIT Not yet implemented .
When this transaction COMMIT After submission , Business related data block ,undo block Transaction information on , The lock information will not be cleared .
The next time the data block is read buffer cache( May be SELECT Read or other DML), oracle Make transaction information when reading such data blocks 、 Clearing of lock information .
Statistics
----------------------------------------------------------
105 recursive calls
0 db block gets
1343685 consistent gets
550158 physical reads
28532 redo size ====>>>> SELECT When the REDO
2940 bytes sent via SQL*Net to client
520 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
11 sorts (memory)
0 sorts (disk)
15 rows processed
版权声明
本文为[Not dizzy yet]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230601579395.html
边栏推荐
- Dolphin scheduler integrates Flink task pit records
- Longitude and latitude position of provincial capitals in China
- GDB的使用
- Two ways to deal with conflicting data in MySQL and PG Libraries
- What do the raddr and rport in webrtc ice candidate mean?
- Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!
- Oracle calculates the difference between two dates in seconds, minutes, hours and days
- Oracle creates tablespaces and modifies user default tablespaces
- Oracle renames objects
- Test the time required for Oracle library to create an index with 7 million data in a common way
猜你喜欢
Detailed explanation of constraints of Oracle table
You and the 42W bonus pool are one short of the "Changsha bank Cup" Tencent yunqi innovation competition!
Ai21 labs | standing on the shoulders of giant frozen language models
[Video] Bayesian inference in linear regression and R language prediction of workers' wage data | data sharing
kettle庖丁解牛第16篇之输入组件周边讲解
Dolphin scheduler source package Src tar. GZ decompression problem
浅谈js正则之test方法bug篇
Search ideas and cases of large amount of Oracle redo log
Set Jianyun x Feishu Shennuo to help the enterprise operation Department realize office automation
./gradlew: Permission denied
随机推荐
Logstash数据处理服务的输入插件Input常见类型以及基本使用
这个SQL语名是什么意思
Database transactions
交叉碳市场和 Web3 以实现再生变革
[point cloud series] relationship based point cloud completion
PG library to view the distribution keys of a table in a certain mode
Cross carbon market and Web3 to achieve renewable transformation
[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation
19c RAC steps for modifying VIP and scanip - same network segment
Generate 32-bit UUID in Oracle
Lpddr4 notes
Lenovo Saver y9000x 2020
[andorid] realize SPI communication between kernel and app through JNI
The query did not generate a result set exception resolution when the dolphin scheduler schedules the SQL task to create a table
【视频】线性回归中的贝叶斯推断与R语言预测工人工资数据|数据分享
Search ideas and cases of large amount of Oracle redo log
面试官给我挖坑:URI中的 “//” 有什么用?
Utilisation de GDB
切线空间(tangent space)
AI21 Labs | Standing on the Shoulders of Giant Frozen Language Models(站在巨大的冷冻语言模型的肩膀上)