一个SQL语句在Oracle里面是如何执行的?

2014-11-14 21:15:02 · 作者: · 浏览: 17

当一个Oracle实例接收一条sql后


1、Create a Cursor 创建游标


2、Parse the Statement 分析语句


3、Describe Results of a Query 描述查询的结果集


4、Define Output of a Query 定义查询的输出数据


5、Bind Any Variables 绑定变量


6、Parallelize the Statement 并行执行语句


7、Run the Statement 运行语句


8、Fetch Rows of a Query 取查询出来的行


9、Close the Cursor 关闭游标