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 |
---|---|---|---|
|
|
|
ID number of the resource plan |
|
|
Name of the resource plan |
|
|
|
Number of plan directives for the plan |
|
|
|
CPU resource allocation method for the plan |
|
|
|
Resource allocation method for the plan |
|
|
|
Active session pool resource allocation method for the plan |
|
|
|
Parallel degree limit resource allocation method for the plan |
|
|
|
Queuing resource allocation method for the plan |
|
|
|
Indicates whether the plan is a subplan ( |
|
|
|
Text comment on the plan |
|
|
|
Indicates whether the plan is part of the pending area ( |
|
|
|
Indicates whether the plan is mandatory ( |
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 theDBMS_RESOURCE_MANAGER
package