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

本站中文解释

V$RSRC_CONSUMER_GROUP_CPU_MTH 这个视图显示了资源消费组内cpu月度报表。

V$RSRC_CONSUMER_GROUP_CPU_MTH 是属于V$RSRC_REPORT_STATS_CPU_MTH 的子视图,可用于在给定月份范围内报告消费组的CPU统计信息。它汇总CPU分配给每个消费组的使用量,以显示每个消费组的资源使用情况。

这个视图可以帮助我们监控CPU使用情况,估算消费组需要多少资源并平衡资源分配。

使用V$RSRC_CONSUMER_GROUP_CPU_MTH可以通过SQL语句查看指定消费组某个月的CPU分配情况:

SELECT consumer_group, cpu_usage_delta
FROM V$RSRC_CONSUMER_GROUP_CPU_MTH
WHERE consumer_group = ‘MyConsumerGroup’
AND report_month = ‘20201209’;

官方英文解释

V$RSRC_CONSUMER_GROUP_CPU_MTH displays all resource allocation methods defined for resource consumer groups.

Column Datatype Description

NAME

VARCHAR2(40)

Name of the CPU 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:

  • Oracle Database
    Administrator’s Guide
    for information on resource allocation methods

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

  • “V$RSRC_PLAN_CPU_MTH” for a listing of all resource allocation methods defined for resource plans


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