Oracle 视图 V$RSRC_PLAN_HISTORY 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$RSRC_PLAN_HISTORY用于存储当前实例中发生过的资源管理计划(Resource Manager)变更。它可以帮助查看历史资源计划变更并持续跟踪使用情况。
V$RSRC_PLAN_HISTORY表有如下两个列:
PLAN 控制新计划进行应用的 Oracle 会话或操作系统进程 ID
PLAN_START 即某个资源管理计划生效开始时间
使用V$RSRC_PLAN_HISTORY视图来查看当前正在使用的资源管理器的计划变更记录,可以使用下述SQL语句:
SELECT *
FROM v$rsrc_plan_history
WHERE plan = (SELECT plan_id FROM v$rsrc_plan WHERE status=’ACTIVE’);
该语句可以查询V$RSRC_PLAN_HISTORY表中当前正在使用的资源管理计划中发生过的变更记录,并显示PLAN_START列以查看哪个资源管理计划何时生效.
官方英文解释
V$RSRC_PLAN_HISTORY
displays a history of when a resource plan was enabled, disabled, or modified on the instance. Up to 15 of the most recent entries are shown. Once the database is opened, this view shows at least one row. The row with the most recent START_TIME
and with END_TIME
equal to NULL gives information about the current resource plan.
Column | Datatype | Description |
---|---|---|
|
|
A sequential counter that uniquely describes a row. When the instance is restarted, this value is reset to zero. |
|
|
Resource plan ID; NULL if the Resource Manager was disabled |
|
|
Resource plan name; NULL if the Resource Manager was disabled |
|
|
Time that the resource plan was enabled |
|
|
Time that the resource plan was disabled; NULL if the row contains the current resource plan information |
|
|
Indicates whether the plan was enabled by a Job Scheduler window ( |
|
|
Job Scheduler window that triggered the resource plan event; NULL if a user triggered the resource plan event |
|
|
Indicates whether automated plan switches were allowed after this resource plan event ( See Also: the |
|
|
Indicates whether the resource plan has parameters that specify a policy for how the Resource Manager should schedule sessions to manage CPU usage ( |
|
|
Reserved for future use |
|
|
Indicates whether instance caging is enabled ( |
|
|
State of parallel statement queuing:
For an Oracle RAC database, only the instance running as master Database Resource Manager (DBRM) shows the correct state of parallel statement queuing. All other instances default to the value |
|
|
Value of the |
|
|
Value of the |
|
|
The ID of the container to which the data pertains. Possible values include:
|