Oracle 视图 DBA_RSRC_PLANS 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图DBA_RSRC_PLANS用来显示数据库资源管理的计划运行的信息,包括计划的名称和计划的实例ID,相关联的会话ID,是否正在运行,计划的实现资源等等。这个视图使数据库管理员可以查看和管理数据库的资源管理计划。

使用此视图很容易,首先以dba身份登录到Oracle数据库,然后运行如下SQL查询:

SELECT * FROM dba_rsrc_plans;

这将列出当前存在的所有资源管理计划,并提供有关每个计划的详细信息。然后,可以运行其他查询来过滤存在的计划,以获得进一步的细节。举个例子,下面的查询可以查看正在运行的资源计划:

SELECT * FROM dba_rsrc_plans WHERE status = ‘RUNNING’;

此外,还可以运行其他查询来查看正在使用特定资源配置的资源计划:

SELECT * FROM dba_rsrc_plans WHERE rsrccfg_name =’MY_CFG’;

官方英文解释

DBA_RSRC_PLANS displays information about all resource plans in the database.

For a list of currently active plans, see “V$RSRC_PLAN”.

Column Datatype NULL Description

PLAN_ID

NUMBER

NOT NULL

ID number of the resource plan

PLAN

VARCHAR2(128)

Name of the resource plan

NUM_PLAN_DIRECTIVES

NUMBER

Number of plan directives for the plan

CPU_METHOD

VARCHAR2(128)

CPU resource allocation method for the plan

MGMT_METHOD

VARCHAR2(128)

Resource allocation method for the plan

ACTIVE_SESS_POOL_MTH

VARCHAR2(128)

Active session pool resource allocation method for the plan

PARALLEL_DEGREE_LIMIT_MTH

VARCHAR2(128)

Parallel degree limit resource allocation method for the plan

QUEUING_MTH

VARCHAR2(128)

Queuing resource allocation method for the plan

SUB_PLAN

VARCHAR2(3)

Indicates whether the plan is a subplan (YES) or not (NO)

COMMENTS

VARCHAR2(2000)

Text comment on the plan

STATUS

VARCHAR2(128)

Indicates whether the plan is part of the pending area (PENDING) or not (NULL)

MANDATORY

VARCHAR2(3)

Indicates whether the plan is mandatory (YES) or not (NO). Mandatory plans cannot be deleted.

See Also:

  • Oracle Database
    Administrator’s Guide
    for information on resource plans in general

  • Oracle Database PL/SQL
    Packages and Types Reference
    for more information on creating resource plans with the DBMS_RESOURCE_MANAGER package


数据运维技术 » Oracle 视图 DBA_RSRC_PLANS 官方解释,作用,如何使用详细说明