MON_GET_CONNECTION_DETAILS 表関数 - 接続メトリックを XML 文書として取得する

MON_GET_CONNECTION_DETAILS 表関数は、1 つ以上の接続のメトリックを戻します。

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

許可

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

デフォルトの PUBLIC 特権

なし

構文

Read syntax diagramSkip visual syntax diagramMON_GET_CONNECTION_DETAILS(application_handle ,member ,system_appls )

スキーマは SYSPROC です。

ルーチン・パラメーター

application_handle
メトリックが戻される特定のアプリケーション・ハンドル (接続を識別する) を指定する、タイプ BIGINT の入力引数。 引数が NULL の場合、すべての接続についてメトリックが戻されます。
member
この関数を呼び出すときに現在接続されているデータベースと同じインスタンス内の有効なメンバーを指定する、タイプ INTEGER の入力引数。 現行のデータベース・メンバーには -1、すべてのアクティブ・データベース・メンバーには -2 を指定します。 NULL 値を指定すると、-1 が暗黙的に設定されます。
システム・アプリケーション
システム・アプリケーションの情報が戻されるかどうかを指定する、データ・タイプ SMALLINT の入力パラメーター。 以下の値が有効です。
  • 0 または NULL: システム・アプリケーションの情報は戻されません。 NULL は、system_appls の値が指定されていない場合のデフォルトです。
  • 1: ユーザーおよびシステム・アプリケーションの情報が返されます。

戻される情報

表 1. MON_GET_CONNECTION_DETAILS について戻される情報
列名 データ・タイプ 説明
APPLICATION_HANDLE BIGINT application_handle - アプリケーション・ハンドル
メンバー SMALLINT member-データベース・メンバー
DETAILS BLOB(1M) 作業単位についての詳細メトリックを含む XML 文書。 本書のエレメントの説明については、 表 2 を参照してください。
以下の例は、DETAILS 列で戻される XML 文書の構造を示しています。
<db2_connection xmlns="http://www.ibm.com/xmlns/prod/db2/mon" release="90700000">
   <application_handle>21</application_handle>
   <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_connection>
スキーマ全体については、sqllib/misc/DB2MonRoutines.xsdを参照してください。
本書では、以下のような非プリミティブ XML 型定義を使用しています。
<xs:simpleType name="db2DbObjectString">
   <xs:restriction base="xs:string">
      <xs:maxLength value="128"/>
   </xs:restriction>
</xs:simpleType>

<xs:simpleType name="db2PartitionNum">
   <xs:restriction base="xs:nonNegativeInteger">
      <xs:maxInclusive value="999"/>
   </xs:restriction>
</xs:simpleType>

表 2. MON_GET_CONNECTION_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_id xs:nonNegativeInteger agent_id アプリケーション・ハンドル (エージェント ID) : モニター・エレメント
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 ワークスペース・アクセス数: モニター・エレメント
application_handle xs:nonNegativeInteger application_handle - アプリケーション・ハンドル
application_id xs:string appl_id - アプリケーション ID
application_name xs:string appl_name アプリケーション名
associated_agents_top xs:long associated_agents_top - 関連エージェント最大数 : モニター・エレメント
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 カタログ・キャッシュ検索
client_acctng xs:string (255) client_acctng - クライアント・アカウンティング・ストリング
client_applname xs:string (255) client_applname - クライアント・アプリケーション名
client_hostname xs:string client_hostname - クライアント・ホスト名
client_idle_wait_time xs:nonNegativeInteger client_idle_wait_time - クライアントのアイドル待機時間
client_ipaddr xs:string client_ipaddr - クライアント IP アドレス : モニター・エレメント
client_pid xs:nonNegativeInteger client_pid クライアント・プロセス ID
client_platform xs:string client_platform-クライアント・プラットフォーム
client_port_number xs:nonNegativeInteger client_port_number - クライアント・ポート番号
client_prdid xs:string client_prdid クライアント製品およびバージョン ID
client_protocol xs:string client_protocol クライアント通信プロトコル
client_userid xs:string (255) client_userid - クライアントのユーザー ID
client_wrkstnname xs:string (255) client_wrkstnname - クライアント・ワークステーション名
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 - 通信バッファー出口待機回数のモニター・エレメント
connection_reusability_status xs:short connection_reusability_status - 接続再利用性状況 : モニター・エレメント
connection_start_time xs:dateTime connection_start_time - 接続開始時刻
coord_member xs:short coord_member-コーディネーター・メンバー
current_isolation xs:string current_isolation - 現在の分離レベル
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 - イベント・モニター合計待機回数
execution_id xs:string(128) execution_id - ユーザー・ログイン ID: モニター・エレメント
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:long ida_recv_volume - 受信した合計データ量 : モニター・エレメント
ida_recv_wait_time xs:long ida_recv_wait_time - データ受信の待機に費やされた時間 : モニター・エレメント
ida_recvs_total xs:long ida_recvs_total - データ受信回数 : モニター・エレメント
ida_send_volume xs:long ida_send_volume - 送信された合計データ量 : モニター・エレメント
ida_send_wait_time xs:long ida_send_wait_time - データ送信の待機に費やされた時間 : モニター・エレメント
ida_sends_total xs:long 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 更新された内部行数: モニター・エレメント
intra_parallel_state xs:string intra_parallel_state - パーティション内並列処理の現行状態モニター・エレメント
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 - プロセス間通信送信の合計
is_system_appl xs:short is_system_appl システム・アプリケーション : モニター・エレメント
last_executable_id xs:hexBinary(32) last_executable_id - 最終実行可能 ID
last_request_type xs:string(32) last_request_type - 最終要求タイプ
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_timeout_val xs:long lock_timeout_val ロック・タイムアウト値 : モニター・エレメント
lock_timeouts xs:nonNegativeInteger lock_timeouts ロック・タイムアウト数
lock_wait_time xs:nonNegativeInteger lock_wait_time ロック待機中の時間
lock_waits xs:nonNegativeInteger lock_waits ロック待機数
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-データベース・メンバー
member_subset_id xs:long member_subset_id - メンバー・サブセット ID
merge_sql_stmts xs:long merge_sql_stmts-実行された Merge SQL ステートメント
num_assoc_agents xs:long num_assoc_agents 関連したエージェント数: モニター・エレメント
num_locks_held xs:nonNegativeInteger locks_held ロック保持数
num_locks_waiting xs:long locks_waiting - ロックで待機中の現行エージェント : モニター・エレメント
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_l_reads xs:nonNegativeInteger pool_data_l_reads バッファー・プール・データの論理読み取り
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_l_reads xs:nonNegativeInteger pool_index_l_reads バッファー・プール索引の論理読み取り
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_index_pages xs:nonNegativeInteger pool_queued_async_index_pages - 索引ページ・プリフェッチ要求
pool_queued_async_col_pages xs:nonNegativeInteger pool_queued_async_col_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_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 - プリフェッチャーの待機カウント
prev_uow_stop_time xs:dateTime prev_uow_stop_time - 直前の作業単位完了タイム・スタンプ: モニター・エレメント
reusability_status_reason xs:string (255) reusability_status_reason - 再利用性状況の理由 : モニター・エレメント
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 ステートメント: モニター・エレメント
session_auth_id xs:string session_auth_id セッション許可 ID
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 - スペース・マップ・ページ再利用の待機時間
spacemappage_reclaim_wait_time xs:long spacemappage_reclaim_wait_time - スペース・マップ・ページ再利用の待機時間
sql_reqs_since_commit xs:long sql_reqs_since_commit 最終コミット後の SQL 要求: モニター・エレメント
static_sql_stmts xs:long static_sql_stmts 試行された静的 SQL ステートメント : モニター・エレメント
system_auth_id xs:string system_auth_id - システム許可 ID
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_time xs:nonNegativeInteger total_connect_authentication_time - 接続またはユーザー切り替えの認証要求の合計時間のモニター・エレメント
total_connect_authentication_proc_time xs:nonNegativeInteger total_connect_authentication_proc_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 ステートメント: モニター・エレメント
uow_client_idle_wait_time xs:long uow_client_idle_wait_time - 作業単位内のクライアント・アイドル時間
uow_comp_status xs:string uow_comp_status 作業単位完了状況 : モニター・エレメント
uow_start_time xs:dateTime uow_start_time - 作業単位開始タイム・スタンプ : モニター・エレメント
uow_stop_time xs:dateTime uow_stop_time 作業単位停止タイム・スタンプ : モニター・エレメント
wlm_queue_assignments_total xs:nonNegativeInteger wlm_queue_assignments_total - ワークロード・マネージャー合計キュー割り当て
wlm_queue_time_total xs:nonNegativeInteger wlm_queue_time_total - ワークロード・マネージャー合計キュー時間
workload_occurrence_state xs:string workload_occurrence_state - ワークロード・オカレンスの状態 : モニター・エレメント
xquery_stmts xs:long xquery_stmts - 試行された XQuery ステートメント : モニター・エレメント

使用上の注意

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

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

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

ヒント: 接続はその存続期間中に複数のサービス・スーパークラスにマップできるため、データベース・レベルで収集が無効になっている場合、MON_GET_CONNECTION_DETAILS 表関数によって報告されるメトリックは、接続を介してサブミットされるすべての要求のメトリックのサブセットを表すことがあります。 これはメトリックの集合が、接続がマッピングするスーパークラスの一部に対して使用不可である場合に生じる可能性があります。

MON_GET_CONNECTION_DETAILS 表関数は、接続ごとおよびメンバーごとに 1 行のデータを戻します。 (1 つ以上のサービス・クラスの) メンバー全体の集約は実行されません。 しかし、SQL 照会を使用して集約を実行できます。

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

戻される行で順序付けられた、最も大きなボリュームのデータをクライアントに戻す接続を表示します。

SELECT detmetrics.application_handle, 
       detmetrics.rows_returned, 
       detmetrics.tcpip_send_volume
FROM TABLE(MON_GET_CONNECTION_DETAILS(CAST(NULL as bigint), -2)) 
AS CONNMETRICS,
XMLTABLE (XMLNAMESPACES( DEFAULT 'http://www.ibm.com/xmlns/prod/db2/mon'),
       '$detmetric/db2_connection' PASSING XMLPARSE(DOCUMENT CONNMETRICS.DETAILS) 
       as "detmetric"
COLUMNS "APPLICATION_HANDLE" INTEGER PATH 'application_handle',
       "ROWS_RETURNED" BIGINT PATH 'system_metrics/rows_returned', 
       "TCPIP_SEND_VOLUME" BIGINT PATH 'system_metrics/tcpip_send_volume'
       ) AS DETMETRICS
ORDER BY rows_returned DESC

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

APPLICATION_HANDLE ROWS_RETURNED        TCPIP_SEND_VOLUME   
------------------ -------------------- --------------------
                21                    4                    0

  1 record(s) selected.