欢迎光临
我们一直在努力

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

本站中文解释

Oracle视图V$RSRC_PLAN_CPU_MTH是一个基于分层的汇总的实时性能视图,它可以用来查询资源计划下资源利用率按照每分钟、每小时和每天的统计总量。

通过视图V$RSRC_PLAN_CPU_MTH,可以查询每个资源计划的每小时使用量以及该小时内放大和分配的CPU时间等信息。

应用:

1. 通过查看V$RSRC_PLAN_CPU_MTH视图可以查看不同资源计划的详细使用情况,以及每个资源计划占用CPU时间的比例,从而帮助DBA及时并准确地进行性能分析及监控。

2. 可以查看某个资源计划在特定时间段内的使用量,从而识别资源消耗超标的资源计划。

使用方法:

使用V$RSRC_PLAN_CPU_MTH视图,可以使用以下SQL查询每个资源计划的每小时使用量:

SELECT plan_name, sum(amplification*(10*usertime+sys_time))/(10*36) AS HOURLY_CPU_USAGE
FROM V$RSRC_PLAN_CPU_MTH
GROUP BY plan_name;

官方英文解释

V$RSRC_PLAN_CPU_MTH displays all available CPU resource allocation methods defined for resource plans.

Column Datatype Description

NAME

VARCHAR2(40)

Name of the resource allocation method

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

See Also:

  • “V$RSRC_CONSUMER_GROUP_CPU_MTH” for a listing of resource allocation methods defined for consumer groups

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

  • Oracle Database PL/SQL
    Packages and Types Reference
    for information on defining resource allocation methods for consumer plans with the DBMS_RESOURCE_MANAGER package

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。