Oracle select execution principle

Article Directory

1 Overview

  • Normally, we only know that through selectcan check out the data we want
  • But inside Oracle, it is how to handle the selectstatements it?

2 Principle diagram

Insert picture description here

Execution process explanation;

步骤 1: select 语句从 '用户进程' 传输给 '服务器进程'

服务器将搜索 '数据库缓冲区缓存',了解必需的 '块' 是否已经在 '内存'
	如果在就进入步骤 4
	否则,进入步骤 2'数据文件' 中查找 '块'
		然后在步骤 3 中将它们复制到 '数据库缓冲区缓存'

步骤 4: 将数据传输到 '服务器进程',做进一步的处理

步骤 5: 将查询结果返回给 '用户进程'

Test site:

1. '服务器进程''数据块''数据文件' 读取至 '数据库缓冲区缓存'
2. 'DBWn' 后台进程则将 '数据块''数据库缓冲区缓存' 写入 '数据文件'

Guess you like

Origin blog.csdn.net/qq_34745941/article/details/108232403