当前位置:网站首页>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
边栏推荐
- The interviewer dug a hole for me: what's the use of "/ /" in URI?
- PG SQL intercepts the string to the specified character position
- Operations related to Oracle partition
- GDB的使用
- [official announcement] Changsha software talent training base was established!
- Is Hongmeng system plagiarism? Or the future? Professional explanation that can be understood after listening in 3 minutes
- Personal learning related
- Test on the time required for Oracle to delete data with delete
- SHA512 / 384 principle and C language implementation (with source code)
- RAC environment error reporting ora-00239: timeout waiting for control file enqueue troubleshooting
猜你喜欢
[indicators] precision, recall
./gradlew: Permission denied
Stack protector under armcc / GCC
[point cloud series] relationship based point cloud completion
QT调用外部程序
Information: 2021 / 9 / 29 10:01 - build completed with 1 error and 0 warnings in 11S 30ms error exception handling
UEFI learning 01-arm aarch64 compilation, armplatformpripeicore (SEC)
交叉碳市场和 Web3 以实现再生变革
Dolphin scheduler configuring dataX pit records
SAP ui5 application development tutorial 72 - animation effect setting of SAP ui5 page routing
随机推荐
Oracle lock table query and unlocking method
Oracle clear SQL cache
[point cloud series] neural opportunity point cloud (NOPC)
Personal learning related
Two ways to deal with conflicting data in MySQL and PG Libraries
Cross carbon market and Web3 to achieve renewable transformation
sys. dbms_ scheduler. create_ Job creates scheduled tasks (more powerful and rich functions)
校园外卖系统 - 「农职邦」微信原生云开发小程序
Django::Did you install mysqlclient?
Oracle database recovery data
Tangent space
Error 403 in most cases, you or one of your dependencies are requesting
SAP UI5 应用开发教程之七十二 - SAP UI5 页面路由的动画效果设置
联想拯救者Y9000X 2020
[tensorflow] sharing mechanism
Tersus notes employee information 516 MySQL query (time period uniqueness judgment of 2 fields)
Oracle job scheduled task usage details
Android clear app cache
切线空间(tangent space)
Innobackupex incremental backup