MON_GET_SERVICE_SUBCLASS_DETAILS 表函数 - 获取服务子类度量值(采用 XML 文档格式)

MON_GET_SERVICE_SUBCLASS_DETAILS 表函数返回一个或多个服务子类的指标。

将在 XML 文档中返回指标。

权限

需要下列其中一项权限才能执行此例程:
  • 对例程的 EXECUTE 特权
  • DATAACCESS 权限
  • DBADM 权限
  • SQLADM 权限

缺省 PUBLIC 特权

语法

Read syntax diagramSkip visual syntax diagramMON_GET_SERVICE_SUBCLASS_DETAILS(service_superclass_name ,service_subclass_name,member )

模式为 SYSPROC。

例程参数

service_superclass_name
VARCHAR(128) 类型的输入参数,在调用此函数时指定当前连接的数据库中的有效服务超类名称。 如果参数为 null 或空字符串,则检索数据库中所有超类的度量。
service_subclass_name
VARCHAR(128) 类型的输入参数,在调用此函数时指定当前连接的数据库中的有效服务子类名称。 如果参数为 null 或空字符串,则检索数据库中所有子类的指标。
成员
类型为 INTEGER 的输入自变量,调用此函数时,此自变量指定与当前连接的数据库位于同一实例中的有效成员。 指定 -1(表示当前数据库成员)或 -2(表示所有活动数据库成员)。 如果指定空值,那么会隐式设置 -1。

返回的信息

表 1. 对 MON_GET_SERVICE_SUBCLASS_DETAILS 返回的信息
列名 数据类型 描述
SERVICE_SUPERCLASS_NAME VARCHAR(128) service_superclass_name - 服务超类名
SERVICE_SUBCLASS_NAME VARCHAR(128) service_subclass_name - 服务子类名
SERVICE_CLASS_ID INTEGER service_class_id - 服务类标识
MEMBER SMALLINT 成员-数据库成员
详细信息 BLOB(1M) 包含服务类的详细度量的 XML 文档。 请参阅 表 2 以获取本文档中元素的描述。
以下示例显示在 DETAILS 列中返回的 XML 文档的结构。
<db2_service_subclass xmlns="http://www.ibm.com/xmlns/prod/db2/mon" release="90700000">
   <service_superclass_name>SYSDEFAULTSYSTEMCLASS</service_superclass_name>
   <service_subclass_name>SYSDEFAULTSUBCLASS</service_subclass_name>
   <service_subclass_id>11</service_subclass_id>
   <member>0</member>
   <system_metrics release="90700000">
   <act_aborted_total>5</act_aborted_total>
    ...
   <wlm_queue_assignments_total>3</wlm_queue_assignments_total>
   </system_metrics>
</db2_service_subclass>
对于完整模式,请参阅 sqllib/misc/DB2MonRoutines.xsd
表 2. 针对 MON_GET_SERVICE_SUBCLASS_DETAILS 返回的详细度量值
元素名称 数据类型 描述或相应的监视元素
act_aborted_total xs:nonNegativeInteger act_aborted_total - 异常终止活动总数
act_completed_total xs:nonNegativeInteger act_completed_total - 完成活动总数
act_rejected_total xs:nonNegativeInteger act_rejected_total - 被拒绝活动总数
act_rqsts_total xs:nonNegativeInteger act_rqsts_total - 活动请求总数
active_col_vector_consumers xs:long active_col_vector_services-活动 columnar_vector 使用者
active_hash_grpbys xs:long active_hash_grpbys - 活动散列 GROUP BY 操作次数
active_hash_joins xs:long active_hash_joins - 活动散列连接数
active_olap_funcs xs:long active_olap_funcs - 活动 OLAP 函数
active_peas xs:long active_peas-活动部分提前聚集操作
active_peds xs:long active_peds - 活动部分提前相异操作次数
active_sort_consumers xs:long active_sort_members-活动排序使用者
active_sorts xs:long active_sorts - 活动排序数
adm_bypass_act_total xs:long 保留以供将来使用。
adm_overflows xs:long 保留以供将来使用。
agent_wait_time xs:nonNegativeInteger agent_wait_time - 代理程序等待时间
agent_waits_total xs:nonNegativeInteger agent_waits_total - 等待代理程序总次数
app_act_aborted_total xs:nonNegativeInteger app_act_aborted_total -“失败的外部协调程序活动总数”监视元素
app_act_completed_total xs:nonNegativeInteger app_act_completed_total -“成功的外部协调程序活动总数”监视元素
app_act_rejected_total xs:nonNegativeInteger app_act_rejected_total -“拒绝的外部协调程序活动总数”监视元素
app_rqsts_completed_total xs:nonNegativeInteger app_rqsts_completed_total - 完成应用程序请求总数
appl_section_inserts xs:nonNegativeInteger appl_section_insert-"SQL 工作空间的插入计数" 监视元素
appl_section_lookups xs:nonNegativeInteger appl_section_lookups-"SQL 工作空间访问计数" 监视元素
audit_events_total xs:nonNegativeInteger audit_events_total - 审计事件总数
audit_file_write_wait_time xs:nonNegativeInteger audit_file_write_wait_time - 审计文件写等待时间
audit_file_writes_total xs:nonNegativeInteger audit_file_writes_total - 写审计文件总次数
audit_subsystem_wait_time xs:nonNegativeInteger audit_subsystem_wait_time - 审计子系统等待时间
audit_subsystem_waits_total xs:nonNegativeInteger audit_subsystem_waits_total - 审计子系统等待总次数
binds_precompiles xs:long binds_precompiles -“尝试的绑定次数/预编译次数”监视元素
call_sql_stmts xs:long call_sql_stmts -“已执行的 CALL SQL 语句数”监视元素
cat_cache_inserts xs:nonNegativeInteger cat_cache_inserts - 目录高速缓存插入数
cat_cache_lookups xs:nonNegativeInteger cat_cache_lookups - 目录高速缓存查询数
cf_wait_time xs:long cf_wait_time -“集群高速缓存设施等待时间”监视元素
cf_waits xs:long cf_waits -“集群高速缓存设施等待时间”监视元素
client_idle_wait_time xs:nonNegativeInteger client_idle_wait_time - 客户机空闲等待时间
col_synopsis_rows_inserted xs:nonNegativeInteger col_synopsis_rows_inserted -“插入的列组织概要表行数”监视元素
col_vector_consumer_overflows xs:long col_vector_consumer_overflows-"Columnar 向量使用者溢出数" 监视元素。
comm_exit_wait_time xs:nonNegativeInteger comm_exit_wait_time -“通信缓冲区出口等待时间”监视元素
comm_exit_waits xs:nonNegativeInteger comm_exit_waits -“通信缓冲区出口等待数”监视元素
ddl_sql_stmts xs:long ddl_sql_stmts -“数据定义语言 (DDL) SQL 语句数”监视元素
死锁 xs:nonNegativeInteger deadlocks - 检测到的死锁数
diaglog_write_wait_time xs:nonNegativeInteger diaglog_write_wait_time-Diag 日志写入时间
diaglog_writes_total xs:nonNegativeInteger diaglog_writes_total-Diag 日志总写入数
direct_read_reqs xs:nonNegativeInteger direct_read_reqs - 直接读请求数
direct_read_time xs:nonNegativeInteger direct_read_time - 直接读时间
direct_reads xs:nonNegativeInteger direct_reads - 直接读取数据库的次数
direct_write_reqs xs:nonNegativeInteger direct_write_reqs - 直接写请求数
direct_write_time xs:nonNegativeInteger direct_write_time - 直接写时间
direct_writes xs:nonNegativeInteger direct_writes - 直接写至数据库的次数
disabled_peds xs:long disabled_peds - 已禁用部分提前相异数
dynamic_sql_stmts xs:long dynamic_sql_stmts -“尝试的动态 SQL 语句数”监视元素
evmon_wait_time xs:nonNegativeInteger evmon_wait_time - 事件监视器等待时间
evmon_waits_total xs:nonNegativeInteger evmon_waits_total - 事件监视器总等待时间
ext_table_read_volume xs:nonNegativeInteger ext_table_read_volume -“外部表阅读器读取的数据总量”监视元素
ext_table_recv_volume xs:nonNegativeInteger ext_table_recv_volume -“从外部表阅读器接收到的数据总量”监视元素
ext_table_recv_wait_time xs:nonNegativeInteger ext_table_recv_wait_time -“代理程序等待外部表阅读器的时间总量”监视元素
ext_table_recvs_total xs:nonNegativeInteger ext_table_recvs_total -“从外部表阅读器接收到的行批处理总数”监视元素
ext_table_send_volume xs:nonNegativeInteger ext_table_send_volume -“发送至外部表写程序的数据总量”监视元素
ext_table_send_wait_time xs:nonNegativeInteger ext_table_send_wait_time -“代理程序等待外部表写程序的时间总量”监视元素
ext_table_sends_total xs:nonNegativeInteger ext_table_sends_total -“发送至外部表写程序的行批处理总数”监视元素
ext_table_write_volume xs:nonNegativeInteger ext_table_write_volume -“外部表写程序写入的数据总量”监视元素
failed_sql_stmts xs:long failed_sql_stmts - 失败的语句操作数监视元素
fcm_message_recv_volume xs:nonNegativeInteger fcm_message_recv_volume-FCM 消息接收卷
fcm_message_recv_wait_time xs:nonNegativeInteger fcm_message_recv_wait_time-FCM 消息接收等待时间
fcm_message_recv_waits_total xs:nonNegativeInteger fcm_message_recv_waits_total -“等待 FCM 回复消息所花时间”监视元素
fcm_message_recvs_total xs:nonNegativeInteger fcm_message_recvs_total-FCM 消息接收总数
fcm_message_send_volume xs:nonNegativeInteger fcm_message_send_volume - 发送 FCM 消息量
fcm_message_send_wait_time xs:nonNegativeInteger fcm_message_send_wait_time - 发送 FCM 消息等待时间
fcm_message_send_waits_total xs:nonNegativeInteger fcm_message_send_waits_total -“执行 FCM 消息发送操作时被阻塞的时间”监视元素
fcm_message_sends_total xs:nonNegativeInteger fcm_message_sends_total-FCM 消息发送总数
fcm_recv_volume xs:nonNegativeInteger fcm_recv_volume-FCM 接收卷
fcm_recv_wait_time xs:nonNegativeInteger fcm_recv_wait_time-FCM 接收等待时间
fcm_recv_waits_total xs:nonNegativeInteger fcm_recv_waits_total -“等待通过 FCM 接收数据所花时间”监视元素
fcm_recvs_total xs:nonNegativeInteger fcm_recvs_total-FCM 接收总次数
fcm_send_volume xs:nonNegativeInteger fcm_send_volume - FCM 发送量
fcm_send_wait_time xs:nonNegativeInteger fcm_send_wait_time - FCM 发送等待时间
fcm_send_waits_total xs:nonNegativeInteger fcm_send_waits_total -“执行 FCM 发送操作时被阻塞的时间”监视元素
fcm_sends_total xs:nonNegativeInteger fcm_sends_total - FCM 发送总计
fcm_tq_recv_volume xs:nonNegativeInteger fcm_tq_recv_volume-FCM 表队列接收卷
fcm_tq_recv_wait_time xs:nonNegativeInteger fcm_tq_recv_wait_time-FCM 表队列接收等待时间
fcm_tq_recv_waits_total xs:nonNegativeInteger fcm_tq_recv_waits_total -“等待接收下一个缓冲区所花时间”监视元素
fcm_tq_recvs_total xs:nonNegativeInteger fcm_tq_recvs_total-FCM 表队列接收总数
fcm_tq_send_volume xs:nonNegativeInteger fcm_tq_send_volume-FCM 表队列发送卷
fcm_tq_send_wait_time xs:nonNegativeInteger fcm_tq_send_wait_time-FCM 表队列发送等待时间
fcm_tq_sends_total xs:nonNegativeInteger fcm_tq_sends_total-FCM 表队列发送总数
fed_rows_deleted xs:nonNegativeInteger fed_rows_deleted -“联合系统删除的行数”监视元素
fed_rows_inserted xs:nonNegativeInteger fed_rows_inserted -“联合系统插入的行数”监视元素
fed_rows_read xs:nonNegativeInteger fed_rows_read -“联合系统读取的行数”监视元素
fed_rows_updated xs:nonNegativeInteger fed_rows_updated -“联合系统更新的行数”监视元素
fed_wait_time xs:nonNegativeInteger fed_wait_time -“联合服务器所花费的时间”监视元素
fed_waits_total xs:nonNegativeInteger fed_waits_total -“联合服务器的总执行时间”监视元素
hash_grpby_overflows xs:long hash_grpby_overflows - 散列 GROUP BY 溢出次数
hash_join_overflows xs:long hash_join_overflows -“散列连接溢出数”监视元素
hash_join_small_overflows xs:long hash_join_small_overflows -“散列连接小溢出数”监视元素
ida_recv_volume xs:nonNegativeInteger ida_recv_volume -“接收的总数据量”监视元素

数据库服务器从数据库内分析进程中接收的总数据量。 此值以字节计。

ida_recv_wait_time xs:nonNegativeInteger ida_recv_wait_time -“等待接收数据时所耗用的时间”监视元素

等待从数据库内分析进程接收数据所耗用的总时间量。

ida_recvs_total xs:nonNegativeInteger ida_recvs_total -“接收数据的次数”监视元素

从数据库内分析进程中接收数据的总次数。

ida_send_volume xs:nonNegativeInteger ida_send_volume -“发送的总数据量”监视元素

从数据库服务器发送至数据库内分析进程的总数据量。 此值以字节计。

ida_send_wait_time xs:nonNegativeInteger ida_send_wait_time -“等待发送数据时所耗用的时间”监视元素

等待将数据发送至数据库内分析进程所耗用的总时间量。

ida_sends_total xs:nonNegativeInteger ida_sends_total -“发送数据的次数”监视元素

将数据发送至数据库内分析进程的总次数。

implicit_rebinds xs:long implicit_rebinds -“隐式重新绑定次数”监视元素
int_commits xs:nonNegativeInteger int_commits - 内部落实数
int_rollbacks xs:nonNegativeInteger int_rollbacks - 内部回滚
int_rows_deleted xs:long int_rows_deleted -“删除的内部行数”监视元素
int_rows_inserted xs:long int_rows_inserted - 插入的内部行数监视元素
int_rows_updated xs:long int_rows_updated -“更新的内部行数”监视元素
ipc_recv_volume xs:nonNegativeInteger ipc_recv_volume-进程间通信接收卷
ipc_recv_wait_time xs:nonNegativeInteger ipc_recv_wait_time-进程间通信接收等待时间
ipc_recvs_total xs:nonNegativeInteger ipc_recvs_total-进程间通信接收总数
ipc_send_volume xs:nonNegativeInteger ipc_send_volume - 进程间通信发送量
ipc_send_wait_time xs:nonNegativeInteger ipc_send_wait_time - 进程间通信发送等待时间
ipc_sends_total xs:nonNegativeInteger ipc_sends_total - 进程间通信发送总次数
lob_prefetch_reqs xs:nonNegativeInteger lob_prefetch_reqs -“LOB 预取程序请求计数”监视元素
lob_prefetch_wait_time xs:nonNegativeInteger lob_prefetch_wait_time-"LOB 预取等待时间" 监视元素
lock_escals xs:nonNegativeInteger lock_escals - 锁定升级次数
lock_escals_global xs:long lock_escals_global -“全局锁定升级数”监视元素
lock_escals_locklist xs:long lock_escals_locklist -“locklist 锁定升级数”监视元素
lock_escals_maxlocks xs:long lock_escals_maxlocks -“maxlocks 锁定升级数”监视元素
lock_timeouts xs:nonNegativeInteger lock_timeouts - 锁定超时次数
lock_timeouts_global xs:long lock_timeouts_global -“锁定超时全局”监视元素
lock_wait_time xs:nonNegativeInteger lock_wait_time - 等待锁定时间
lock_wait_time_global xs:long lock_wait_time_global -“锁定等待时间全局”监视元素
lock_waits xs:nonNegativeInteger lock_waits - 等待锁定次数
lock_waits_global xs:long lock_waits_global -“锁定等待全局”监视元素
log_buffer_wait_time xs:nonNegativeInteger log_buffer_wait_time - 日志缓冲区等待时间
log_disk_wait_time xs:nonNegativeInteger log_disk_wait_time - 日志磁盘等待时间
log_disk_waits_total xs:nonNegativeInteger log_disk_waits_total-日志磁盘等待总数
成员 xs:nonNegativeInteger 成员-数据库成员
merge_sql_stmts xs:long merge_sql_stmts -“已执行的 Merge SQL 语句数”监视元素
num_log_buffer_full xs:nonNegativeInteger num_log_buffer_full - 完整日志缓冲区的数量
num_lw_thresh_exceeded xs:nonNegativeInteger num_lw_thresh_out- 超出阈值数
olap_func_overflows xs:long olap_func_overflows -“OLAP 函数溢出次数”监视元素
pkg_cache_inserts xs:nonNegativeInteger pkg_cache_inserts - 程序包高速缓存插入数
pkg_cache_lookups xs:nonNegativeInteger pkg_cache_lookups - 程序包高速缓存查询数
pool_col_gbp_indep_pages_found_in_lbp xs:nonNegativeInteger pool_col_gbp_indep_pages_found_in_lbp - 本地缓冲池中发现的独立于缓冲池按列组织 GBP 的页面数
pool_col_gbp_invalid_pages xs:nonNegativeInteger pool_col_gbp_invalid_pages - 缓冲池按列组织 GBP 无效数据页面数
pool_col_gbp_l_reads xs:nonNegativeInteger pool_col_gbp_l_reads - 缓冲池按列组织 GBP 逻辑读取次数
pool_col_gbp_p_reads xs:nonNegativeInteger pool_col_gbp_p_reads - 缓冲池按列组织 GBP 物理读取次数
pool_col_l_reads xs:nonNegativeInteger pool_col_l_reads - 缓冲池按列组织逻辑读取次数
pool_col_lbp_pages_found xs:nonNegativeInteger pool_col_lbp_pages_found - 发现的缓冲池中按列组织的 LBP 页面数
pool_col_p_reads xs:nonNegativeInteger pool_col_p_reads - 缓冲池按列组织物理读取次数
pool_col_writes xs:nonNegativeInteger pool_col_writes - 缓冲池按列组织写入次数
pool_data_gbp_indep_pages_found_in_lbp xs:nonNegativeInteger pool_data_gbp_indep_pages_found_in_lbp -“本地缓冲池中发现的独立于组缓冲池的数据页数”监视元素
pool_data_gbp_invalid_pages xs:long pool_data_gbp_invalid_pages -“组缓冲池无效数据页数”监视元素
pool_data_gbp_l_reads xs:long pool_data_gbp_l_reads -“组缓冲池数据逻辑读取数”监视元素
pool_data_gbp_p_reads xs:long pool_data_gbp_p_reads -“组缓冲池数据物理读取数”监视元素
pool_data_l_reads xs:nonNegativeInteger pool_data_l_reads - 缓冲池数据逻辑读取数
pool_data_lbp_pages_found xs:long pool_data_lbp_pages_found -“本地缓冲池发现的数据页数”监视元素
pool_data_p_reads xs:nonNegativeInteger pool_data_p_reads - 缓冲池数据物理读取数
pool_data_writes xs:nonNegativeInteger pool_data_writes - 缓冲池数据写次数
pool_failed_async_col_reqs xs:nonNegativeInteger pool_failed_async_col_reqs - 失败的按列组织预取请求数
pool_failed_async_data_reqs xs:nonNegativeInteger pool_failed_async_data_reqs -“失败数据预取请求数”监视元素
pool_failed_async_index_reqs xs:nonNegativeInteger pool_failed_async_index_reqs -“失败的索引预取请求数”监视元素
pool_failed_async_temp_col_reqs xs:nonNegativeInteger pool_failed_async_temp_col_reqs - 失败的按列组织临时预取请求数
pool_failed_async_temp_data_reqs xs:nonNegativeInteger pool_failed_async_temp_data_reqs -“失败的临时表空间数据预取请求数”监视元素
pool_failed_async_temp_index_reqs xs:nonNegativeInteger pool_failed_async_temp_index_reqs -“失败的临时表空间索引预取请求数”监视元素
pool_failed_async_temp_xda_reqs xs:nonNegativeInteger pool_failed_async_temp_xda_reqs -“失败的临时表空间 XDA 预取请求数”监视元素
pool_failed_async_other_reqs xs:nonNegativeInteger pool_failed_async_other_reqs -“失败的非预取请求数”监视元素
pool_failed_async_xda_reqs xs:nonNegativeInteger pool_failed_async_xda_reqs -“失败的 XDA 预取请求数”监视元素
pool_index_gbp_indep_pages_found_in_lbp xs:nonNegativeInteger pool_index_gbp_indep_pages_found_in_lbp -“本地缓冲池中发现的独立于组缓冲池的索引页数”监视元素
pool_index_gbp_invalid_pages xs:long pool_index_gbp_invalid_pages -“组缓冲池无效索引页数”监视元素
pool_index_gbp_l_reads xs:long pool_index_gbp_l_reads -“组缓冲池索引逻辑读取数”监视元素
pool_index_gbp_p_reads xs:long pool_index_gbp_p_reads -“组缓冲池索引物理读取数”监视元素
pool_index_l_reads xs:nonNegativeInteger pool_index_l_reads - 缓冲池索引逻辑读取数
pool_index_lbp_pages_found xs:long pool_index_lbp_pages_found -“发现的本地缓冲池索引页数”监视元素
pool_index_p_reads xs:nonNegativeInteger pool_index_p_reads - 缓冲池索引物理读取数
pool_index_writes xs:nonNegativeInteger pool_index_writes - 缓冲池索引写次数
pool_queued_async_col_reqs xs:nonNegativeInteger pool_queued_async_col_reqs - 按列组织预取请求数
pool_queued_async_data_pages xs:nonNegativeInteger pool_queued_async_data_pages -“预取请求的数据页数”监视元素
pool_queued_async_data_reqs xs:nonNegativeInteger pool_queued_async_data_reqs -“数据预取请求数”监视元素
pool_queued_async_index_reqs xs:nonNegativeInteger pool_queued_async_index_reqs -“索引预取请求数”监视元素
pool_queued_async_col_pages xs:nonNegativeInteger pool_queued_async_col_pages - 按列组织页面预取请求数
pool_queued_async_index_pages xs:nonNegativeInteger pool_queued_async_index_pages -“预取请求的索引页数”监视元素
pool_queued_async_temp_col_pages xs:nonNegativeInteger pool_queued_async_temp_col_pages - 按列组织的页面临时预取请求数
pool_queued_async_temp_col_reqs xs:nonNegativeInteger pool_queued_async_temp_col_reqs - 按列组织临时预取请求数
pool_queued_async_temp_data_pages xs:nonNegativeInteger pool_queued_async_temp_data_pages -“预取请求的临时表空间数据页数”监视元素
pool_queued_async_temp_data_reqs xs:nonNegativeInteger pool_queued_async_temp_data_reqs -“临时表空间数据预取请求数”监视元素
pool_queued_async_temp_index_pages xs:nonNegativeInteger pool_queued_async_temp_index_pages -“预取请求的临时表空间索引页数”监视元素
pool_queued_async_temp_index_reqs xs:nonNegativeInteger pool_queued_async_temp_index_reqs -“临时表空间索引预取请求数”监视元素
pool_queued_async_temp_xda_pages xs:nonNegativeInteger pool_queued_async_temp_xda_pages -“预取请求的临时表空间 XDA 数据页数”监视元素
pool_queued_async_temp_xda_reqs xs:nonNegativeInteger pool_queued_async_temp_xda_reqs -“临时表空间 XDA 数据预取请求数”监视元素
pool_queued_async_other_reqs xs:nonNegativeInteger pool_queued_async_other_reqs-"非预取请求数" 监视元素
pool_queued_async_xda_pages xs:long pool_queued_async_xda_pages -“预取请求的 XDA 页数”监视元素
pool_queued_async_xda_reqs xs:nonNegativeInteger pool_queued_async_xda_reqs -“XDA 预取请求数”监视元素
pool_read_time xs:nonNegativeInteger pool_read_time - 缓冲池物理读总时间
pool_temp_col_l_reads xs:nonNegativeInteger pool_temp_col_l_reads - 缓冲池按列组织临时逻辑读取次数
pool_temp_col_p_reads xs:nonNegativeInteger pool_temp_col_p_reads - 缓冲池按列组织临时物理读取次数
pool_temp_data_l_reads xs:nonNegativeInteger pool_temp_data_l_reads - 缓冲池临时数据逻辑读取数
pool_temp_data_p_reads xs:nonNegativeInteger pool_temp_data_p_reads - 缓冲池临时数据物理读取数
pool_temp_index_l_reads xs:nonNegativeInteger pool_temp_index_l_reads - 缓冲池临时索引逻辑读取数
pool_temp_index_p_reads xs:nonNegativeInteger pool_temp_index_p_reads - 缓冲池临时索引物理读取数
pool_temp_xda_l_reads xs:nonNegativeInteger pool_temp_xda_l_reads - 缓冲池临时 XDA 数据逻辑读取数
pool_temp_xda_p_reads xs:nonNegativeInteger pool_temp_xda_p_reads - 缓冲池临时 XDA 数据物理读取数
pool_write_time xs:nonNegativeInteger pool_write_time - 缓冲池物理写总时间
pool_xda_gbp_indep_pages_found_in_lbp xs:nonNegativeInteger pool_xda_gbp_indep_pages_found_in_lbp -“本地缓冲池中发现的独立于组缓冲池的 XDA 页数”监视元素
pool_xda_gbp_invalid_pages xs:nonNegativeInteger pool_xda_gbp_invalid_pages - 组缓冲池无效 XDA 数据页数
pool_xda_gbp_l_reads xs:nonNegativeInteger pool_xda_gbp_l_reads - 组缓冲池 XDA 数据逻辑读取请求数
pool_xda_gbp_p_reads xs:nonNegativeInteger pool_xda_gbp_p_reads - 组缓冲池 XDA 数据物理读取请求数
pool_xda_l_reads xs:nonNegativeInteger pool_xda_l_reads - 缓冲池 XDA 数据逻辑读取数
pool_xda_lbp_pages_found xs:nonNegativeInteger pool_xda_lbp_pages_found - 发现的本地缓冲池 XDA 数据页数
pool_xda_p_reads xs:nonNegativeInteger pool_xda_p_reads - 缓冲池 XDA 数据物理读取数
pool_xda_writes xs:nonNegativeInteger pool_xda_writes - 缓冲池 XDA 数据写次数
post_shrthreshold_hash_joins xs:long post_shrthreshold_hash_joins - 阈值后散列连接数监视元素
post_shrthreshold_sorts xs:nonNegativeInteger post_shrthreshold_sorts - 后共享阈值排序数
post_threshold_col_vector_consumers xs:long post_threshold_col_vector_services-事后阈值 columnar_vector 使用者
post_threshold_hash_grpbys xs:long post_threshold_hash_grpbys - 散列 GROUP BY 阈值
post_threshold_hash_joins xs:long post_threshold_hash_joins - 散列连接阈值监视元素
post_threshold_olap_funcs xs:long post_threshold_olap_funcs -“OLAP 函数阈值”监视元素
post_threshold_peas xs:long post_threshold_peas - 部分提前聚集阈值
post_threshold_peds xs:long post_threshold_peds - 部分提前相异数阈值
prefetch_wait_time xs:nonNegativeInteger prefetch_wait_time - 等待预取的时间
prefetch_waits xs:nonNegativeInteger prefetch_waits -“预取程序等待计数”监视元素
fcm_tq_send_waits_total xs:nonNegativeInteger fcm_tq_send_waits_total -“等待发送下一个缓冲区所花时间”监视元素
post_threshold_sorts xs:long post_threshold_sorts - 后阈值排序数
reclaim_wait_time xs:long reclaim_wait_time -“回收等待时间”监视元素
rows_deleted xs:long rows_deleted -“删除行数”监视元素
rows_inserted xs:long rows_inserted -“插入行数”监视元素
rows_modified xs:nonNegativeInteger rows_modified - 修改的行数
rows_read xs:nonNegativeInteger rows_read - 读取行数
rows_returned xs:nonNegativeInteger rows_returned - 返回的行数
rows_updated xs:long rows_updated -“更新行数”监视元素
rqsts_completed_total xs:nonNegativeInteger rqsts_completed_total - 完成请求总数
select_sql_stmts xs:long select_sql_stmts -“执行的 Select SQL 语句数”监视元素
service_class_id xs:nonNegativeInteger service_class_id - 服务类标识
service_subclass_name xs:string(128) service_subclass_name - 服务子类名
service_superclass_name xs:string(128) service_superclass_name - 服务超类名
sort_heap_allocated xs:long sort_heap_allocated - 分配的总排序堆
sort_overflows xs:nonNegativeInteger sort_overflows - 排序溢出数
sort_shrheap_allocated xs:long sort_shrheap_allocated - 当前分配的共享排序堆
spacemappage_reclaim_wait_time xs:long spacemappage_reclaim_wait_time -“空间映射页回收等待时间”监视元素
static_sql_stmts xs:long static_sql_stmts -“尝试的静态 SQL 语句数”监视元素
tcpip_recv_volume xs:nonNegativeInteger tcpip_recv_volume - TCP/IP 接收量
tcpip_recv_wait_time xs:nonNegativeInteger tcpip_recv_wait_time-TCP/IP 接收等待时间
tcpip_recvs_total xs:nonNegativeInteger tcpip_recvs_total-TCP/IP recvs total
tcpip_send_volume xs:nonNegativeInteger tcpip_send_volume - TCP/IP 发送量
tcpip_send_wait_time xs:nonNegativeInteger tcpip_send_wait_time - TCP/IP 发送等待时间
tcpip_sends_total xs:nonNegativeInteger tcpip_sends_total - TCP/IP 发送总次数
thresh_violations xs:nonNegativeInteger thresh_violations - 阈值违例次数
total_act_time xs:nonNegativeInteger total_act_time - 活动总时间
total_act_wait_time xs:nonNegativeInteger total_act_wait_time - 活动等待总时间
total_app_commits xs:nonNegativeInteger total_app_commits - 应用程序落实次数总计
total_app_rollbacks xs:nonNegativeInteger total_app_rollbacks - 应用程序回滚次数总计
total_app_rqst_time xs:nonNegativeInteger total_app_rqst_time - 应用程序请求总时间
total_app_section_executions xs:nonNegativeInteger total_app_section_间执行数-段执行总数
total_backup_proc_time xs:long total_backup_proc_time - 执行联机备份耗用的总无等待时间
total_backup_time xs:long total_backup_time-联机备份的总耗用时间
total_backups xs:long total_backups - 备份总数
total_col_executions xs:nonNegativeInteger total_col_executions - 按列组织的总计执行次数
total_col_proc_time xs:nonNegativeInteger total_col_proc_time - 按列组织的总计处理时间
total_col_synopsis_executions xs:nonNegativeInteger total_col_synopsis_executions -“列组织概要表执行总次数”监视元素
total_col_synopsis_proc_time xs:nonNegativeInteger total_col_synopsis_proc_time -“列组织概要表处理时间总计”监视元素
total_col_synopsis_time xs:nonNegativeInteger total_col_synopsis_time -“列组织概要表时间总计”监视元素
total_col_time xs:nonNegativeInteger total_col_time - 散列循环总数
total_col_vector_consumers xs:long total_col_vector_使用者-columnar_vector 使用者总数
total_commit_proc_time xs:nonNegativeInteger total_commit_proc_time - 落实处理总时间
total_commit_time xs:nonNegativeInteger total_commit_time - 落实总时间
total_compilations xs:nonNegativeInteger total_compilations - 编译次数总计
total_compile_proc_time xs:nonNegativeInteger total_compile_proc_time - 编译处理总时间
total_compile_time xs:nonNegativeInteger total_compile_time - 编译总时间
total_connect_authentications xs:nonNegativeInteger total_connect_authentications - 执行的连接或交换机用户认证数
total_connect_authentication_proc_time xs:nonNegativeInteger total_connect_authentication_proc_time - 连接认证处理总时间
total_connect_authentication_time xs:nonNegativeInteger total_connect_authentication_time - 连接或交换机用户认证请求总时间
total_connect_request_proc_time xs:nonNegativeInteger total_connect_request_proc_time - 连接或交换机用户请求处理总时间
total_connect_request_time xs:nonNegativeInteger total_connect_request_time - 连接或交换机用户请求总时间
total_connect_requests xs:nonNegativeInteger total_connect_requests - 连接或交换机用户请求数
total_cpu_time xs:nonNegativeInteger total_cpu_time - CPU 总时间
total_disp_run_queue_time xs:long total_disp_run_queue_time - 分派器运行队列总时间
total_extended_latch_wait_time xs:nonNegativeInteger total_extended_latch_wait_time - 扩展锁存器等待总时间
total_extended_latch_waits xs:nonNegativeInteger total_extended_latch_waits - 扩展锁存器等待总计
total_hash_grpbys xs:long total_hash_grpbys - 散列 GROUP BY 操作总数
total_hash_joins xs:long total_hash_joins -“散列连接总数”监视元素
total_hash_loops xs:long total_hash_loops -“总散列循环数”监视元素
total_implicit_compilations xs:nonNegativeInteger total_implicit_compilations - 隐式编译总数
total_implicit_compile_proc_time xs:nonNegativeInteger total_implicit_compile_proc_time - 隐式编译处理总时间
total_implicit_compile_time xs:nonNegativeInteger total_implicit_compile_time - 隐式编译总时间
total_index_build_proc_time xs:long total_index_build_proc_time-由于创建索引,重新创建或重建索引而耗用的非等待总时间
total_index_build_time xs:long total_index_build_time-由于创建索引,重新创建或重建索引而花费的总时间
total_indexes_built xs:long total_indexes_built - 构建的索引总数
total_load_proc_time xs:nonNegativeInteger total_load_proc_time - 装入处理总时间
total_load_time xs:nonNegativeInteger total_load_time - 装入总时间
total_loads xs:nonNegativeInteger total_loads - 装入操作总数
total_olap_funcs xs:long total_olap_funcs -“OLAP 函数总数”监视元素
total_peas xs:long total_peas - 部分提前聚集总数
total_peds xs:long total_peds - 部分提前相异总数
total_reorg_proc_time xs:nonNegativeInteger total_reorg_proc_time - 重组处理总时间
total_reorg_time xs:nonNegativeInteger total_reorg_time - 重组总时间
total_reorgs xs:nonNegativeInteger total_reorgs - 重组操作总数
total_rollback_proc_time xs:nonNegativeInteger total_rollback_proc_time - 回滚处理总时间
total_rollback_time xs:nonNegativeInteger total_rollback_time - 回滚总时间
total_routine_invocations xs:nonNegativeInteger total_routine_invocations - 例程调用总计
total_routine_time xs:nonNegativeInteger total_routine_time - 例程总时间
total_routine_user_code_proc_time xs:nonNegativeInteger total_routine_user_code_proc_time - 例程用户代码处理总时间
total_routine_user_code_time xs:nonNegativeInteger total_routine_user_code_time - 例程用户代码总时间
total_rqst_mapped_in xs:nonNegativeInteger total_rqst_mapped_in - 映入请求总数
total_rqst_mapped_out xs:nonNegativeInteger total_rqst_mapped_out - 映出请求总数
total_rqst_time xs:nonNegativeInteger total_rqst_time - 请求总时间
total_runstats xs:nonNegativeInteger total_runstats - 运行时统计信息总计
total_runstats_proc_time xs:nonNegativeInteger total_runstats_proc_time - 运行时统计信息处理总时间
total_runstats_time xs:nonNegativeInteger total_runstats_time-运行时统计信息总计
total_section_proc_time xs:nonNegativeInteger total_section_proc_time - 部分处理总时间
total_section_sort_proc_time xs:nonNegativeInteger total_section_sort_proc_time - 节排序处理总时间
total_section_sort_time xs:nonNegativeInteger total_section_sort_time - 节排序总时间
total_section_sorts xs:nonNegativeInteger total_section_sorts - 节排序总次数
total_section_time xs:nonNegativeInteger total_section_time - 部分总时间
total_sorts xs:nonNegativeInteger total_sorts - 排序总数
total_stats_fabrication_proc_time xs:nonNegativeInteger total_stats_fabrication_proc_time - 统计信息生成处理总时间
total_stats_fabrication_time xs:nonNegativeInteger total_stats_fabrication_time - 统计信息生成总时间
total_stats_fabrications xs:nonNegativeInteger total_stats_fabrications - 统计信息生成总计
total_sync_runstats xs:nonNegativeInteger total_sync_runstats - 同步 RUNSTATS 活动总数
total_sync_runstats_proc_time xs:nonNegativeInteger total_sync_runstats_proc_time - 同步 RUNSTATS 处理总时间
total_sync_runstats_time xs:nonNegativeInteger total_sync_runstats_time - 同步 RUNSTATS 总时间
total_wait_time xs:nonNegativeInteger total_wait_time - 等待总时间
tq_sort_heap_rejections xs:long tq_sort_heap_rejections - 表队列排序堆拒绝数
tq_sort_heap_requests xs:long tq_sort_heap_requests - 表队列排序堆请求数
tq_tot_send_spills xs:nonNegativeInteger tq_tot_send_spills - 溢出表队列缓冲区总数
uid_sql_stmts xs:long uid_sql_stmts-"执行的更新/插入/删除 SQL 语句数" 监视元素
wlm_queue_assignments_total xs:nonNegativeInteger wlm_queue_assignments_total - 工作负载管理器队列分配总次数
wlm_queue_time_total xs:nonNegativeInteger wlm_queue_time_total - 工作负载管理器队列总时间
xquery_stmts xs:long xquery_stmts -“尝试的 XQuery 语句数”监视元素

使用说明

MON_GET_SERVICE_SUBCLASS_DETAILS 表函数返回的指标表示在所指示服务子类下执行的请求的所有指标的累积。 此函数类似于 MON_GET_SERVICE_SUBCLASS 表函数:
  • MON_GET_SERVICE_SUBCLASS 表函数以基于列的格式返回最常用的指标,并且是检索指标的最高效性能方法。
  • MON_GET_SERVICE_SUBCLASS_DETAILS 表函数以 XML 文档格式返回可用度量值的完整集合,此格式为格式化输出提供了最大的灵活性。 XML 解析器可以直接解析基于 XML 的输出,也可以通过 XMLTABLE 函数将该输出转换为关系格式(请参阅示例)。

度量将汇总到服务类(按工作单元),并在请求执行期间定期汇总。 因此,此表函数报告的值反映最新汇总时系统的当前状态。 指标值严格递增。 要确定某个时间间隔内给定度量的值,请使用 MON_GET_SERVICE_SUBCLASS_DETAILS 表函数在该时间间隔的开始和结束时查询该度量,并计算差异。

请求度量是通过服务超类上的 COLLECT REQUEST METRICS 子句和数据库级别的 mon_req_metrics 数据库配置参数来控制的。 仅当请求由服务子类(其父服务超类已启用请求指标值)中的代理程序处理,或者对整个数据库启用请求指标收集时,才会为请求收集指标。 缺省情况下,在数据库级别启用请求指标。 如果在数据库级别和对服务超类禁用请求度量,则为映射到该服务超类的每个连接报告的度量停止增加(如果在数据库激活时禁用请求指标,则保持为 0)。

MON_GET_SERVICE_SUBCLASS_DETAILS 表函数针对每个服务子类和每个成员返回一行数据。 不执行跨服务类(在成员上)或跨成员(对于服务类或更多)的聚集。 但是,可以通过 SQL 查询实现聚集(请参阅示例)。 输入参数具有与 ANDed 在一起的效果。 因此,如果您指定冲突的输入参数(例如,超类名称 SUPA 和不是 SUPA 子类的子类名称 SUBB),则不会返回任何行。

在此函数返回的描述超类 SYSDEFAULTSYSTEMCLASS 下的缺省子类 SYSDEFAULTSUBCLASS 的数据中,所有度量都具有值 0。

提示: 请求可能在多个服务子类中执行。 例如,如果通过使用带有 REMAP ACTIVITY 操作的 Workload Manager (WLM) 阈值将请求从一个服务子类映射到另一个服务子类,则可能会发生这种情况。 尽管针对执行请求的每个服务子类更新了所耗时间指标,但请求计数器会针对完成请求的服务子类递增。 因此,您不应该分析单个子类的请求时间平均值。 活动可以映射到的所有子类必须相互结合进行分析。 例如,如果存在可以将活动从服务子类 A 映射到服务子类 B 的阈值,那么当您计算请求的平均值时,您应该聚合服务子类 A 和 B 的计数器和指标,并使用汇总计算平均值。

请注意,来自后台 EDU 的度量(例如,预取器和页面清理器)不会汇总到服务类。

在 DETAILS 列中返回的 XML 文档的模式在文件 sqllib/misc/DB2MonRoutines.xsd 中可用。 可以在 sqllib/misc/DB2MonCommon.xsd 文件中找到更多详细信息。

示例

显示每个服务超类使用的总 CPU 时间和处理的请求总数,按关系格式的 CPU 使用率排序(使用 XMLTABLE)。

SELECT varchar(scmetrics.service_superclass_name,30) as service_superclass,
       sum(detmetrics.total_cpu_time) as total_cpu, 
       sum(detmetrics.app_rqsts_completed_total) as total_rqsts 
FROM TABLE(MON_GET_SERVICE_SUBCLASS_DETAILS('','',-2)) AS SCMETRICS,
XMLTABLE (XMLNAMESPACES( DEFAULT 'http://www.ibm.com/xmlns/prod/db2/mon'), 
        '$detmetric/db2_service_subclass' 
        PASSING XMLPARSE(DOCUMENT SCMETRICS.DETAILS) 
        as "detmetric" 
COLUMNS "TOTAL_CPU_TIME" INTEGER PATH 'system_metrics/total_cpu_time', 
        "APP_RQSTS_COMPLETED_TOTAL" INTEGER PATH 
        'system_metrics/app_rqsts_completed_total') 
        AS DETMETRICS
GROUP BY service_superclass_name
ORDER BY total_cpu desc

下列是从此查询输出的示例。

SERVICE_SUPERCLASS             TOTAL_CPU            TOTAL_RQSTS         
------------------------------ -------------------- --------------------
SYSDEFAULTUSERCLASS                         2428188                   26
SYSDEFAULTMAINTENANCECLASS                        0                    0
SYSDEFAULTSYSTEMCLASS                             0                    0

  3 record(s) selected.