IBM Support

[Db2] パッケージ・キャッシュから SQL のパフォーマンス情報を取り出す方法

How To


Summary

Db2 は SQL を実行するとき、SQL コンパイラーでコンパイルした実行モジュール (セクション) を、パッケージ・キャッシュに配置してからランタイム・インタープリターで実行します。
注:SQL コンパイラーもランタイム・インタープリターも機能名であり、実行主体はエージェント (db2agent) スレッドです。

各 SQL の実行で収集された実行時間や待機時間、読み書きの行数などのパフォーマンス情報もパッケージ・キャッシュに記録されます。ただし、パッケージ・キャッシュはキャッシュ・メモリーなので、各 SQL の情報は LRU アルゴリズムで除去されます。
この文書はパッケージ・キャッシュに記録されたパフォーマンス情報を取り出しておき、あとから分析する手法を案内します。

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"ARM Category":[{"code":"a8m500000008PkyAAE","label":"Compiler-\u003EOptimization db2explain db2advis"},{"code":"a8m500000008PkqAAE","label":"Performance"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
30 April 2025

UID

ibm17030441