Oracle 视图 V$SQL_PLAN_STATISTICS 官方解释,作用,如何使用详细说明
本站中文解释
_ALL
Oracle视图V$SQL_PLAN_STATISTICS_ALL是一个动态性能视图,它可以用来查看Oracle服务器中的单条SQL语句的执行计划,并收集统计信息。
该视图中的一些常见的字段如下:
1. SQL_TEXT:将执行的SQL到的字符串;
2. OTHER_XML:SQL语句的执行参数值;
3. COST:执行该行表达式需要的计算费用;
4. CARDINALITY:每一行表达式估计执行扫描行数;
5. BYTES:每一行表达式估计需要扫描字节数;
6. CPU_COST:每一行表达式估计的CPU费用;
7. IO_COST:每一行表达式估计的IO费用;
8. TIMESTAMP:最新的查询计划的时间戳。
要使用V$SQL_PLAN_STATISTICS_ALL视图,可以执行像下面这样的查询:
SELECT *
FROM V$SQL_PLAN_STATISTICS_ALL
WHERE sql_text LIKE ‘ SELECT %’;
官方英文解释
V$SQL_PLAN_STATISTICS
provides execution statistics at the row source level for each child cursor.
Column | Datatype | Description |
---|---|---|
|
|
Address of the handle to the parent for this cursor |
|
|
Hash value of the parent statement in the library cache. The two columns |
|
|
SQL identifier of the parent statement in the library cache |
|
|
Numerical representation of the current SQL plan for this cursor. Comparing one |
|
|
Numeric representation of the complete SQL plan for this cursor. Comparing one |
|
|
Address of the child cursor |
|
|
Number of the child cursor that uses this work area. The columns |
|
|
A number assigned to each step in the execution plan |
|
|
Number of times this cursor has been executed |
|
|
Number of times this operation has been started, during the last execution |
|
|
Number of times this operation has been started, accumulated over the past executions |
|
|
Number of rows produced by the row source, during the last execution |
|
|
Number of rows produced by the row source, accumulated over the past executions |
|
|
Number of buffers retrieved in consistent mode, during the last execution. Buffers are usually retrieved in consistent mode for queries. |
|
|
Number of buffers retrieved in consistent mode, accumulated over the past executions. Buffers are usually retrieved in consistent mode for queries. |
|
|
Number of buffers retrieved in current mode, during the last execution. Buffers are retrieved in current mode for statements such as |
|
|
Number of buffers retrieved in current mode, accumulated over the past executions. Buffers are retrieved in current mode for statements such as |
|
|
Number of physical disk reads performed by the operation, during the last execution |
|
|
Number of physical disk reads performed by the operation, accumulated over the past executions |
|
|
Number of physical disk writes performed by the operation, during the last execution |
|
|
Number of physical disk writes performed by the operation, accumulated over the past executions |
|
|
Elapsed time (in microseconds) corresponding to this operation, during the last execution |
|
|
Elapsed time (in microseconds) corresponding to this operation, accumulated over the past executions |
|
|
The ID of the container to which the data pertains. Possible values include:
|
See Also:
“V$SQLAREA”