MON_GET_CF table function - Get cluster caching facility metrics
The MON_GET_CF table function returns status information about one or more cluster caching facilities (also known as CFs) on the system.
Syntax
The schema is SYSPROC.
Table function parameters
-
id
- An input argument of type INTEGER that specifies the identifier of the cluster caching facility for which data will be returned. You can use the DB2_CF administrative view to obtain the identifiers of the cluster caching facilities on your system. If this parameter is NULL, information for all cluster caching facilities on the system is returned.
Authorization
- EXECUTE privilege on the routine
- DATAACCESS authority
- DBADM authority
- SQLADM authority
Default PUBLIC privilege
None
Examples
The following query displays information about the group buffer pool size for all cluster caching facilities on the system. It shows a resize in progress for the group buffer pool. The CURRENT_CF_GBP_SIZE parameter shows the group buffer pool memory currently in use. The CONFIGURED_CF_GBP_SIZE parameter shows the group buffer pool memory currently allocated and reserved. The TARGET_CF_GBP_SIZE parameter shows the group buffer pool dynamic resize target.
SELECT SUBSTR(HOST_NAME,1,8) AS HOST,
SUBSTR(DB_NAME, 1,8) AS DBNAME,
CURRENT_CF_GBP_SIZE,
CONFIGURED_CF_GBP_SIZE,
TARGET_CF_GBP_SIZE
FROM TABLE( MON_GET_CF( cast(NULL as integer) ) ) AS CAMETRICS
ORDER BY HOST;
The following is an example of output from this query.
HOST DBNAME CURRENT_CF_GBP_SIZE CONFIGURED_CF_GBP_SIZE TARGET_CF_GBP_SIZE
----- ------- ------------------- ---------------------- ------------------
cf15 SAMPLE 2402 3000 5000
cf16 SAMPLE 1276 3000 5000
SELECT SUBSTR(HOST_NAME,1,8) AS HOST,
SUBSTR(DB_NAME, 1,8) AS DBNAME,
CURRENT_CF_GBP_SIZE,
CONFIGURED_CF_GBP_SIZE,
TARGET_CF_GBP_SIZE
FROM TABLE( MON_GET_CF( 128 ) ) AS CAMETRICS;
HOST DBNAME CURRENT_CF_GBP_SIZE CONFIGURED_CF_GBP_SIZE TARGET_CF_GBP_SIZE
----- ------ ------------------- ---------------------- ------------------
cf16 SAMPLE 1276 2000 2000
Usage notes
The MON_GET_CF table function returns one row of data per cluster caching facility-database pairing defined on the instance. No aggregation across cluster caching facilities or databases is performed.