Oracle 视图 DBA_HIST_RSRC_PLAN 官方解释,作用,如何使用详细说明
本站中文解释
_HISTORY
Oracle的视图DBA_HIST_RSRC_PLAN_HISTORY用于存储所有sql优化计划的历史记录。它将存储最近保留的计划,但是即使一段时间内未使用,它也仍然会保留计划历史信息,以方便查看和分析资源计划历史记录。
DBA_HIST_RSRC_PLAN_HISTORY视图可以帮助DBA管理员在发生性能问题时,更加有效地查找资源计划历史记录,以便查找可能导致缓慢查询和问题的资源计划调整。
如何使用它,可以使用select语句从该视图中获取所需的数据。例如,以下查询可以检索从DBA_HIST_RSRC_PLAN_HISTORY视图中的所有优化计划信息:
SELECT * FROM DBA_HIST_RSRC_PLAN_HISTORY;
此外,要查找特定SQL ID的资源计划历史记录,可以使用以下查询:
SELECT * FROM DBA_HIST_RSRC_PLAN_HISTORY
WHERE SQL_ID = ‘&sql_id’;
官方英文解释
DBA_HIST_RSRC_PLAN
displays historical information about resource plans.
This view contains snapshots of V$RSRC_PLAN_HISTORY
.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
| Unique snapshot ID |
|
|
| Database ID for the snapshot |
|
|
| Instance number for the snapshot |
|
|
| A sequential counter that uniquely describes a row. When the instance is restarted, this value is reset to zero. |
|
|
| Time that the resource plan was enabled |
|
| Time that the resource plan was disabled; NULL if the row contains the current resource plan information | |
|
|
| Resource plan ID; NULL if the Resource Manager was disabled |
|
|
| Resource plan name; NULL if the Resource Manager was disabled |
|
|
| Indicates whether the resource plan has parameters that specify a policy for how the Resource Manager should schedule sessions to manage CPU usage ( |
|
| State of parallel statement queuing:
| |
|
| Indicates whether instance caging is enabled ( | |
|
| The database ID of the PDB for the sampled session | |
|
| The ID of the container that
|
See Also:
“V$RSRC_PLAN_HISTORY”
标签:计划,历史记录,视图,资源,可以使用