MON_GET_WORKLOAD_DETAILS 表関数 - ワークロード・メトリックを XML 文書として取得する

MON_GET_WORKLOAD_DETAILS 表関数は、1 つ以上のワークロードのメトリックを戻します。

メトリックは XML 文書で返されます。

許可

このルーチンを実行するには、以下のいずれかの権限が必要です。
  • ルーチンに対する EXECUTE 特権
  • DATAACCESS 権限
  • DBADM 権限
  • SQLADM 権限

デフォルトの PUBLIC 特権

なし

構文

Read syntax diagramSkip visual syntax diagramMON_GET_WORKLOAD_DETAILS(workload_name ,member)

スキーマは SYSPROC です。

ルーチン・パラメーター

workload_name
メトリックが戻される特定のワークロードを指定する、タイプ VARCHAR(128) の入力引数。 引数が NULL または空ストリングである場合、すべてのワークロードについてメトリックが戻されます。
member
この関数を呼び出すときに現在接続されているデータベースと同じインスタンス内の有効なメンバーを指定する、タイプ INTEGER の入力引数。 現行のデータベース・メンバーには -1、すべてのアクティブ・データベース・メンバーには -2 を指定します。 NULL 値を指定すると、-1 が暗黙的に設定されます。

戻される情報

表 1. MON_GET_WORKLOAD_DETAILS について戻される情報
列名 データ・タイプ 説明
WORKLOAD_NAME VARCHAR(128) workload_name ワークロード名
WORKLOAD_ID INTEGER workload_id ワークロード ID
メンバー SMALLINT member-データベース・メンバー
DETAILS BLOB(1M) ワークロードについての詳細メトリックを含む XML 文書。 本書のエレメントの説明については、 表 2 を参照してください。
以下の例は、DETAILS 列で戻される XML 文書の構造を示しています。
<db2_workload xmlns="http://www.ibm.com/xmlns/prod/db2/mon" release="90700000">
   <workload_name>SYSDEFAULTADMWORKLOAD</workload_name>
   <workload_id>11</workload_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_workload>
スキーマ全体については、sqllib/misc/DB2MonRoutines.xsdを参照してください。
表 2. MON_GET_WORKLOAD_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_consumers-アクティブな columnar_vector コンシューマー
active_hash_grpbys xs:long active_hash_grpbys - アクティブな HASH 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-アクティブな partial early aggregation 操作
active_peds xs:long active_peds - アクティブな partial early distinct 操作
active_sort_consumers xs:long active_sort_consumers-アクティブ・ソート・コンシューマー
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_inserts-SQL ワークスペースの挿入数: モニター・エレメント
appl_section_lookups xs:nonNegativeInteger appl_section_lookups-SQL ワークスペース・アクセス数: モニター・エレメント
audit_events_total xs:nonNetagiveIngteger 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-カラムナ・ベクトル・コンシューマー・オーバーフロー: モニター・エレメント
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-診断ログ・ファイル書き込み時間
diaglog_writes_total xs:nonNegativeInteger diaglog_writes_total-診断ログ・ファイル書き込みの合計
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 - 無効化された partial early distinct
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_send_waits_total xs:nonNegativeInteger fcm_tq_send_waits_total - 次のバッファーの送信の待機に費やした時間 : モニター・エレメント
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 - HASH 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 member-データベース・メンバー
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_exceeded-しきい値を超えた回数
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 - 失敗した TEMPORARY 表スペースのデータ・プリフェッチ要求のモニター・エレメント
pool_failed_async_temp_index_reqs xs:nonNegativeInteger pool_failed_async_temp_index_reqs - 失敗した TEMPORARY 表スペースの索引プリフェッチ要求のモニター・エレメント
pool_failed_async_temp_xda_reqs xs:nonNegativeInteger pool_failed_async_temp_xda_reqs - 失敗した TEMPORARY 表スペースの 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 - TEMPORARY 表スペースのデータ・ページ・プリフェッチ要求のモニター・エレメント
pool_queued_async_temp_data_reqs xs:nonNegativeInteger pool_queued_async_temp_data_reqs - TEMPORARY 表スペースのデータ・プリフェッチ要求のモニター・エレメント
pool_queued_async_temp_index_pages xs:nonNegativeInteger pool_queued_async_temp_index_pages - TEMPORARY 表スペースの索引ページ・プリフェッチ要求のモニター・エレメント
pool_queued_async_temp_index_reqs xs:nonNegativeInteger pool_queued_async_temp_index_reqs - TEMPORARY 表スペースの索引プリフェッチ要求のモニター・エレメント
pool_queued_async_temp_xda_pages xs:nonNegativeInteger pool_queued_async_temp_xda_pages - TEMPORARY 表スペースの XDA データ・ページ・プリフェッチ要求のモニター・エレメント
pool_queued_async_temp_xda_reqs xs:nonNegativeInteger pool_queued_async_temp_xda_reqs - TEMPORARY 表スペースの XDA データ・プリフェッチ要求のモニター・エレメント
pool_queued_async_other_reqs xs:nonNegativeInteger pool_queued_async_other_reqs-非プリフェッチの要求のモニター・エレメント
pool_queued_async_xda_pages xs:nonNegativeInteger 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_consumers-ポストしきい値 columnar_vector コンシューマー
post_threshold_hash_grpbys xs:long post_threshold_hash_grpbys - HASH 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 - partial early aggregation しきい値
post_threshold_peds xs:long post_threshold_peds - partial early distinct しきい値
post_threshold_sorts xs:nonNegativeInteger post_threshold_sorts ポストしきい値ソート
prefetch_wait_time xs:nonNegativeInteger prefetch_wait_time プリフェッチ待ち時間
prefetch_waits xs:nonNegativeInteger prefetch_waits - プリフェッチャーの待機カウントのモニター・エレメント
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 実行された選択 SQL ステートメント: モニター・エレメント
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 合計受信数
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_executions-セクション実行の合計回数
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_consumers-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_authentication_proc_time xs:nonNegativeInteger total_connect_authentication_proc_time - 接続認証の合計処理時間
total_connect_authentication_time xs:nonNegativeInteger total_connect_authentication_time - 接続またはユーザー切り替えの認証要求の合計時間
total_connect_authentications xs:nonNegativeInteger total_connect_authentications - 実行された接続またはユーザー切り替え認証
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 - HASH 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 - partial early aggregation の合計回数
total_peds xs:long total_peds - partial early distinct の合計回数
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_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 - ワークロード・マネージャー合計キュー時間
workload_id xs:nonNegativeInteger workload_id ワークロード ID
workload_name xs:string (128) workload_name ワークロード名
xquery_stmts xs:long xquery_stmts - 試行された XQuery ステートメント : モニター・エレメント

使用上の注意

MON_GET_WORKLOAD 関数で戻されるメトリックは、 識別されたワークロード・オブジェクトにマッピングされた接続によってサブミットされた要求のすべてのメトリックの累計を表します。 この関数は、以下の点で MON_GET_WORKLOAD 表関数と似ています。
  • MON_GET_WORKLOAD 表関数は、最も一般的に使用されるメトリックを列ベースの形式で戻すため、メトリックの取得において最も効率的な方法です。
  • MON_GET_WORKLOAD_DETAILS 表関数は、使用可能なすべてのメトリック一式を XML 文書形式で戻すため、出力フォーマットを最大限柔軟性のあるものにします。 XML ベースの出力は、XML パーサーで直接解析でき、XMLTABLE 関数でリレーショナル形式に変換することもできます (例を参照)。

メトリックは、作業単位境界でワークロードにロールアップされ、要求の実行中には定期的にロールアップされます。 したがって、この表関数で報告される値は、直前の ROLLUP 時のシステムの現行状態を反映しています。 メトリックの値は確実に増加します。 ある時間間隔に対する指定されたメトリックの値を判別するには、MON_GET_WORKLOAD_DETAILS 表関数を使用してその間隔の始めと終わりのメトリックを照会し、差異を計算します。

要求メトリックは、サービス・スーパークラスに対する COLLECT REQUEST METRICS 節、およびデータベース・レベルの mon_req_metrics データベース構成パラメーターを介して制御されます。 親サービス・スーパークラスで要求メトリックを使用可能にしているサービス・サブクラスのエージェントが要求を処理する場合にのみ、またはデータベース全体で要求メトリック・コレクションが有効な場合にのみ、その要求に対しメトリックが収集されます。 デフォルトでは、要求メトリックはデータベース・レベルで使用可能です。 要求メトリックがデータベース・レベルでもサービス・スーパークラスに対しても使用不可になっている場合、そのサービス・スーパークラスにマッピングされたワークロードごとに報告されるメトリックは増加を停止します (または、要求メトリックがデータベースのアクティブ化時に無効であった場合には 0 のままになります)。

プリフェッチャーやページ・クリーナーなどのバックグラウンド EDU からのメトリックは、ワークロードにロールアップされない点に留意してください。

MON_GET_WORKLOAD_DETAILS 表関数は、ワークロードおよびメンバーごとに 1 行のデータを戻します。 (メンバー上の) ワークロード全体または (1 つ以上のサービス・クラスの) メンバー全体の集約は実行されません。 ただし、集約は例に示されるように SQL 照会を使用して実行できます。

DETAILS 列で返される XML 文書のスキーマは、sqllib/misc/DB2MonRoutines.xsd ファイルにあります。 詳細については、sqllib/misc/DB2MonCommon.xsd ファイルを参照してください。

メンバー全体で集約し、ロック待機時間の長い順に、ワークロードごとのロック情報を表示します。

SELECT varchar(wlmetrics.workload_name,30) as workload_name,
       sum(detmetrics.lock_wait_time) as total_lock_wait_time,
       sum(detmetrics.lock_waits) as total_lock_waits,
       sum(detmetrics.lock_timeouts) as total_lock_timeouts,
       sum(detmetrics.lock_escals) as total_lock_escals
FROM TABLE(MON_GET_WORKLOAD_DETAILS('',-2)) AS WLMETRICS,
XMLTABLE (XMLNAMESPACES( DEFAULT 'http://www.ibm.com/xmlns/prod/db2/mon'),
           '$detmetric/db2_workload' PASSING 
           XMLPARSE(DOCUMENT WLMETRICS.DETAILS) 
           as "detmetric"
COLUMNS "LOCK_WAIT_TIME" INTEGER PATH 'system_metrics/lock_wait_time',
        "LOCK_WAITS" INTEGER PATH 'system_metrics/lock_waits',
        "LOCK_TIMEOUTS" INTEGER PATH 'system_metrics/lock_timeouts',
        "LOCK_ESCALS" INTEGER PATH 'system_metrics/lock_escals'
) AS DETMETRICS
GROUP BY workload_name
ORDER BY total_lock_wait_time desc;

以下はこの照会の出力例です。

WORKLOAD_NAME                  TOTAL_LOCK_WAIT_TIME TOTAL_LOCK_WAITS ... 
------------------------------ -------------------- ---------------- ... 
SYSDEFAULTADMWORKLOAD                             0                0 ... 
SYSDEFAULTUSERWORKLOAD                            0                0 ... 

  2 record(s) selected.

照会の出力 (続き)。

... TOTAL_LOCK_TIMEOUTS TOTAL_LOCK_ESCALS
... ------------------- -----------------
...                   0                 0
...                   0                 0