Oracle 视图 DBA_SQL_PLAN_DIRECTIVES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_SQL_PLAN_DIRECTIVES用于查看系统中的SQL执行计划指令信息。它由Oracle数据库提供,其中包含各种计划指令的内容,用于查询SQL语句的执行计划,以及用于每个指令的消耗。
使用方法:
1. 运行以下语句,以查看当前计划指令信息:
SELECT * FROM DBA_SQL_PLAN_DIRECTIVES;
2. 如果要查看特定的SQL计划指令,可以使用WHERE子句:
SELECT * FROM DBA_SQL_PLAN_DIRECTIVES
WHERE directive_name = ‘DIRECTIVE_NAME’;
3. 指令计划指令可以根据计划指令值进行排序,例如:
SELECT * FROM DBA_SQL_PLAN_DIRECTIVES ORDER BY directive_value;
官方英文解释
DBA_SQL_PLAN_DIRECTIVES
displays information about the SQL plan directives in the system.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
The identifier of the SQL plan directive |
|
|
The type of the SQL plan directive:
|
|
|
|
Indicates whether the SQL plan directive is enabled. Possible values:
|
|
|
|
The state of the SQL plan directive. Possible values include:
|
|
|
|
If |
|
|
|
The reason for creating the SQL plan directive |
|
|
|
The creation timestamp of the SQL plan directive |
|
|
|
The timestamp of most recent modification of the SQL plan directive |
|
|
|
The timestamp of most recent usage of the SQL plan directive |
|
|
|
Extra information about the SQL plan directive |
See Also:
-
“DBA_SQL_PLAN_DIR_OBJECTS”
-
Oracle Database SQL Tuning
Guide for more information about SQL plan directives