你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle后台进程之:Slave Processes

[日期:2012-11-25] 来源:Linux社区  作者:renfengjun [字体:大 中 小]

Serial Execution

Serial Execution In serial execution, a single server process performs all necessary processing for the sequential execution of a SQL statement. For example, to perform a full table scansuch as SELECT* FROM employees, one server process performs all of the work, as shown in Figure 15–5.

连续执行(串行),在连续执行中,一个单一的服务器进程执行所有必要的sql语句处理工作。如下图:

Parallel Execution

Parallel Execution In parallel execution, the server process acts as the parallel execution coordinatorresponsible for parsing the query, allocating and controlling the slave processes, and sending output to the user. Given a query planfor a SQL query, the coordinator breaks down each operatorin a SQL query into parallel pieces, runs them in the order specified in the query, and integrates the partial results produced by the slave processes executing the operators. 

在并行执行中,服务器进程担当一个并行执行协调器的作用。分配和控制从属进程,并且将输出返回给用户。给定一个sql查询的查询计划,协调器打碎每个sql查询操作到并行片中,按照查询的顺序运行它们,并且合并由从属进程执行操作生成的局部结果。

The table is divided dynamically (dynamic partitioning) into load units called granules. Each granule is a range of data blocks of the table readby a single slave process, called a parallel execution server, which uses Pnnnas a name format.

如下图所示,表被动态的分离到多个负载单元中(这里就叫任务颗粒)。每个任务颗粒都是这个表中一定范围的blocks,由单一的从属进程读取。这里从属进程叫做并行执行服务器(Pnnn)

The database maps granules to execution servers at execution time. When an execution server finishes reading the rows corresponding to a granule, and when granules remain, it obtains another granule from the coordinator. This operation continues until the table has been read. The execution servers send results back to the coordinator, which assembles the pieces into the desired full table scan.

数据库在执行的时候映射颗粒(负载单元)到执行服务器上面(pnnn)。当执行服务器完成了任务颗粒,并且还有其他的颗粒任务残留,那么它将从协调器上面获得其他的任务颗粒。这个操作一直持续到表被读取完毕。最后执行服务器(pnnn)将结果返回给协调服务器(server process),它将合并结果片段到成要求的full table scan。

The number of parallel execution servers assigned to a single operation is the degree of parallelismfor an operation. Multiple operations within the same SQL statement all have the same degree of parallelism.
并行服务器的个数,由一个单一的操作并行级别来分配。sql语句中的多个操作,遵守这个sql语句的并行级别。(一个语句只能有一个并行级别,这个语句中的子操作都需要遵循)

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款