This function returns workload statistics for every combination of workload name and database partition number.
EXECUTE privilege on the WLM_GET_WORKLOAD_STATS function.
SELECT SUBSTR(WORKLOAD_NAME,1,22) AS WL_DEF_NAME,
SUBSTR(CHAR(DBPARTITIONNUM),1,4) AS PART,
CONCURRENT_WLO_TOP AS WLO_TOP,
CONCURRENT_WLO_ACT_TOP AS WLO_ACT_TOP
FROM TABLE(WLM_GET_WORKLOAD_STATS(CAST(NULL AS VARCHAR(128)), -2))
AS WLSTATS
ORDER BY WL_DEF_NAME, PART
WL_DEF_NAME PART WLO_TOP WLO_ACT_TOP
---------------------- ---- --------------- -------------------
MYUSERWORKLOAD 0 2 8
MYUSERWORKLOAD 1 0 0
SYSDEFAULTUSERWORKLOAD 0 1 1
SYSDEFAULTUSERWORKLOAD 1 0 0
Here we see that on partition 0, the highest number of
concurrent occurrences of the MYUSERWORKLOAD workload was 2 and that
the highest number of concurrent activities in either of these workload
occurrences was 8. This function returns one row for every combination of workload name and database partition number. No aggregation across workloads or across partitions or across service classes is performed. However, aggregation can be achieved through SQL queries.
Column Name | Data Type | Description |
---|---|---|
WORKLOAD_NAME | VARCHAR(128) | workload_name - Workload name monitor element |
DBPARTITIONNUM | SMALLINT | Partition number from which this record was collected |
LAST_RESET | TIMESTAMP | last_reset - Last Reset Timestamp monitor element |
CONCURRENT_WLO_TOP | INTEGER | concurrent_wlo_top - Concurrent workload occurrences top monitor element |
CONCURRENT_WLO_ACT_TOP | INTEGER | concurrent_wlo_act_top - Concurrent WLO activity top monitor element |
COORD_ACT_COMPLETED_TOTAL | BIGINT | coord_act_completed_total - Coordinator activities completed total monitor element |
COORD_ACT_ABORTED_TOTAL | BIGINT | coord_act_aborted_total - Coordinator activities aborted total monitor element |
COORD_ACT_REJECTED_TOTAL | BIGINT | coord_act_rejected_total - Coordinator activities rejected total monitor element |
WLO_COMPLETED_TOTAL | BIGINT | wlo_completed_total - Workload occurrences completed total monitor element |