深入简出谈 sql tuning.ppt

深入简出谈 sql tuning

* * SQL Statement Processing Phases 理解SQL语句是怎么样执行的有助与你编写性能更高的SQL语句。 在SQL语句执行过程中,存在4个重点的步骤:编译,变量绑定,执行,数据返回。 编译: 1.检查SQL语句的语法、语意 2.检查执行权限 3. Oracle 首先在library cache中匹配SQL语句是否存在,来决定是否分配私有内存区域给SQL语句 说明软解析,硬解析 绑定: 检查语句绑定变量,确定是否分配一个值分配给绑定变量 执行:略 返回记录: 获取记录,排序 * * DML Processing Steps A data manipulation language (DML) statement requires only two phases of processing: Parse is the same as the parse phase used for processing a query. Execute requires additional processing to make data changes. DML Execute Phase To execute a DML statement: 1. If the data and rollback blocks are not already in the

文档评论(0)

1亿VIP精品文档

相关文档