Oracle 视图 V$OPTIMIZER_PROCESSING_RATE 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$OPTIMIZER_PROCESSING_RATE查看在搜索优化计划框架期间搜索优化器正在执行的优化进程的处理速率。该视图报告每秒处理进程(processes/sec),每秒优化运算符(operators/sec),每秒去除重复优化运算符(distinct operators/sec),以及每秒搜索空间节点(searches/sec)。
EXPLAIN PLAN语句可以用来使用V$OPTIMIZER_PROCESSING_RATE视图,以查看优化的速率。首先,需要在会话中启用搜索优化计划框架:
ALTER SESSION SET optimizer_use_pending_statistics = true;
随后,可以执行EXPLAIN PLAN来开始搜索优化过程:
EXPLAIN PLAN FOR SELECT * FROM emp;
最后,可以查询V$OPTIMIZER_PROCESSING_RATE视图并获得计算对最新EXPLAIN PLAN语句运行优化操作的速率:
SELECT process_rate, operators_rate, distinct_operators_rate, searches_rate FROM v$optimizer_processing_rate;
官方英文解释
V$OPTIMIZER_PROCESSING_RATE
displays the processing rates used by the optimizer to compute degree of parallelism.
Note:
You can manipulate these rates using these procedures for the DBMS_STATS
package:
-
SET_PROCESSING_RATE
-
DELETE_PROCESSING_RATE
-
GATHER_PROCESSING_RATE
See Oracle Database PL/SQL
Packages and Types Reference for more information about the DBMS_STATS
package.
Column | Datatype | Description |
---|---|---|
|
|
Address of the handle to the parent for this cursor |
|
|
Name of the operation. The possible values are |
|
|
Value of the operation set manually by the user |
|
|
Value of the operation obtained from calibration (by running the |
|
|
Default value of the operation |
|
|
The ID of the container to which the data pertains. Possible values include:
|