DB2® データベース・システム・メモリー・セット内の情報を取り出します。
接続に必要な最低限の要件はありません。 しかし、データベースの有効範囲 (-db) オプションが指定されている場合、 コマンドが要求された情報を戻す前に、 そのデータベースをアクティブにする必要があります。
>>-db2pd--+------------------------------------------+----------> '- -activestatements--+------------------+-' +-apphdl=appHandle-+ '-file=filename----' >--+----------------------------------------+-------------------> '- -addnode--+-------------+--+--------+-' '-oldviewapps-' '-detail-' >--+----------------+-------------------------------------------> +- -alldatabases-+ '- -alldbs-------' >--+--------------------------------------------------+---------> +- -alldbpartitionnums-----------------------------+ | .-,-------------------------. | | V | | +- -dbpartitionnum----database_partition_number-+--+ | (1) | +------- -global-----------------------------------+ | .-,--------. | | V | | +- -host----hostname-+-----------------------------+ | .-,------------------------------. | | V | | '- -member--+---member_number--|--member_range-+-+-' '-all--------------------------------' >--+---------------------------------------------------------------------------+--> '- -agents--+-------------+--+--------------+--+---------------+--+-------+-' '-db=database-' +-AgentId------+ '-file=filename-' '-event-' '-app=AppHandl-' >--+--------------------------------------------------------+---> | .-all------. .-all-----. | '- -apinfo--+----------+--+---------+--+---------------+-' '-AppHandl-' '-MaxStmt-' '-file=filename-' >--+------------------------------------------------------+-----> '- -applications--+---------------+--+---------------+-' +-AppHandl------+ '-file=filename-' '-agent=AgentId-' >--+--------------------------------------------+---------------> '- -bufferpools--+------+--+---------------+-' '-bpID-' '-file=filename-' >--+-----------------------------------+------------------------> '- -catalogcache--+---------------+-' '-file=filename-' >--+-----------------------------------+------------------------> '-+- -cleaner---------------------+-' '- -dirtypages--+-------------+-' +-bp=bpID-----+ +-count=count-+ +-summary-----+ +-temponly----+ '-fixedonly---' >--+---------------------+--------------------------------------> '- -command--filename-' >--+----------------------------------+-------------------------> | .-,------------. | | V | | '-+- -database-+----databasename-+-' +- -db-------+ '- -d--------' >--+----------------------------+-------------------------------> '- -dbcfg--+---------------+-' '-file=filename-' >--+-----------------------------+--+------------+--------------> '- -dbmcfg--+---------------+-' '- -dbptnmem-' '-file=filename-' >--+-----------------------------------------------------------------------------------------+--> '- -dump--+---------------------------+--+----------------------------------------------+-' +-all--+------------------+-+ '-dumpdir=directory--+-----------------------+-' | '-apphdl=AppHandle-' | '-timeout=timeout-value-' +-apphdl=AppHandle----------+ +-eduid-apphdl=AppHandle----+ '-pid-----------------------' >--+------------------------------+-----------------------------> '- -dynamic--+---------------+-' +-anch=anchID---+ '-file=filename-' >--+------------------------------------------------------+-----> '- -edus--+------------------------------------------+-' '-interval=interval--+-------+--+--------+-' '-top=n-' '-stacks-' >--+--------------+---------------------------------------------> '- -everything-' >--+------------------------------------------------+-----------> '- -fcm--+-----+--+---------+--+---------------+-' '-hwm-' '-numApps-' '-file=filename-' >--+------------------+--+-------+--+--------+------------------> '- -file--filename-' '- -fmp-' '- -full-' >--+--------------------------------------------------------------+--> '-+- -fmpexechistory-+--+-------------+--+-----+--+----------+-' '- -fmpe-----------' '-+-pid=pid-+-' '-n=n-' '-genquery-' '-tid=tid-' >--+-----------------------------------------------------+------> '- -fvp--+-agent_eduid-+--+------+--+---------------+-' +-LAM1--------+ '-term-' '-file=filename-' +-LAM2--------+ '-LAM3--------' >--+-------+--+------+--+---------------------------+-----------> '- -gfw-' '- -ha-' '- -hadr--+---------------+-' '-file=filename-' >--+--------+--+--------+--+---------------+--------------------> '- -help-' '- -inst-' '- -interactive-' >--+-----------------------------------------+------------------> '- -latches--+-------+--+---------------+-' '-group-' '-file=filename-' >--+------------------------------------------------------------+--> '- -load--+-----------------+--+---------------+--+--------+-' '-loadID="LOADID"-' '-file=filename-' '-stacks-' >--+------------------------------------------------------------------+--> '- -locks--+---------+--+---------------+--+-----------+--+------+-' '-TranHdl-' '-file=filename-' '-showlocks-' '-wait-' >--+---------------------------+--------------------------------> '- -logs--+---------------+-' '-file=filename-' >--+--------------------------------------------------------------------------------------+--> | .-,-----------. | | V | | '- -memblocks----+-all-----+-+--+-----+--+--------+--+------+--+--------+--+---------+-' +-dbms----+ '-top-' '-blocks-' '-sort-' '-PoolID-' '-pid=pid-' +-fcm-----+ +-fmp-----+ +-appl----+ +-db------+ '-private-' >--+-------------------------------+----------------------------> '- -mempools--+---------------+-' '-file=filename-' >--+------------------------------+-----------------------------> '- -memsets--+---------------+-' '-file=filename-' >--+---------------------------------------+--------------------> '- -osinfo--+------+--+---------------+-' '-disk-' '-file=filename-' >--+---------------------------------------------------+--------> '- -pages--+------+--+---------+--+---------------+-' '-bpID-' '-summary-' '-file=filename-' >--+--------+--+-------------------------------+----------------> +- -q----+ '- -recovery--+---------------+-' +- -quit-+ '-file=filename-' +-q------+ '-quit---' >--+----------------------------+-------------------------------> '- -reopt--+---------------+-' '-file=filename-' >--+----------------------------------------+-------------------> '- -reorgs--+--------------------------+-' '-index--+---------------+-' '-file=filename-' >--+----------------------------------+--+------------+---------> '- -repeat--+---------+--+-------+-' '- -runstats-' '-num sec-' '-count-' >--+---------------------------------------------------------------------------+--> '--- -scansharing----+----------------------------------------------------+-' '-obj=objectID--pool=poolID--+---------------------+-' +-all-----------------+ '-index=--+-indexID-+-' '-all-----' >--+--------------------------------------+---------------------> '- -serviceclasses--+----------------+-' '-serviceclassID-' >--+------------------------------+-----------------------------> '- -sort--+------------------+-' '-apphdl=AppHandle-' >--+---------------------------------------------------------------------------------+--> '- -stack--+-all--------------+--+----------------------------------------------+-' +-apphdl=AppHandle-+ '-dumpdir=directory--+-----------------------+-' '-eduid------------' '-timeout=timeout-value-' >--+-----------------------------+------------------------------> '- -static--+---------------+-' '-file=filename-' >--+-----------------------------------------------------------------------------------------------------+--> '- -statisticscache--+--------------------+--+---------------+--+-----------------------------------+-' +- -db--databasename-+ '-file=filename-' +-summary---------------------------+ '- -alldbs-----------' +-detail----------------------------+ '-find schema=schema--object=object-' >--+----------------+-------------------------------------------> '- -storagepaths-' >--+-----------------------------------------------+------------> '- -sysplex--+-------------+--+---------------+-' '-db=database-' '-file=filename-' >--+-----------------------------------------------------------------------------------+--> '- -tablespaces--+---------------+--+-------+--+---------------+--+---------------+-' '-Tablespace ID-' '-group-' '-trackmodstate-' '-file=filename-' >--+------------------------------------------------------------------------------------------------------------+--> '- -tcbstats--+-----------+--+-------+--+-----------------------------------------------+--+---------------+-' '-nocatalog-' +-all---+ '-TbspaceID=tablespace_ID--+------------------+-' '-file=filename-' '-index-' '-TableID=table_ID-' >--+------------------------+-----------------------------------> '- -temptable--+-------+-' '-reset-' >--+-------------------------------+----------------------------> '- -thresholds--+-------------+-' '-thresholdID-' >--+-----------------------------------------------------+------> '- -transactions--+--------------+--+---------------+-' +-TranHdl------+ '-file=filename-' '-app=AppHandl-' >--+--------------------------------+--+-----------+------------> '- -utilities--+---------------+-' '- -version-' '-file=filename-' >--+-----------------------------+------------------------------> '- -wlocks--+---------------+-' '-file=filename-' >--+--------------------------------------------------+---------> '- -workactionsets--+-----------------+--+-------+-' '-workactionsetID-' '-group-' >--+------------------------------------------------+-----------> '- -workclasssets--+----------------+--+-------+-' '-workclasssetID-' '-group-' >--+----------------------------------------+------------------>< '- -workloads--+------------+--+-------+-' '-workloadID-' '-group-'
-activestatement の使用上の注意を参照してください。
db2pd -addnode コマンドの出力例を参照してください。
エージェント ID が指定される場合、そのエージェントに関する情報が戻されます。 アプリケーション ID が指定される場合、 そのアプリケーションの作業を実行するすべてのエージェントに関する情報が戻されます。 出力の有効範囲として設定したいデータベースを選択した場合、 このコマンド・パラメーターを -inst パラメーターとともに指定します。
-agents の使用上の注意を参照してください。
db2pd -apinfo コマンドの出力例を参照してください。
create event monitor testit for deadlocks with details history write to file path global
create event monitor testit for deadlocks with details history write to table
CREATE EVENT MONITOR ステートメントには、データの書き込み先となる表スペースおよび表の名前を指定する機能など、追加のオプションがあります。
詳しくは、CREATE EVENT MONITOR ステートメントの説明を参照してください。
ステートメント履歴の機能を持つイベント・モニターは、すべてのアプリケーションに影響を与えるので、
DB2 データベース・マネージャーによるモニター・ヒープの使用量が増加します。-apinfo の使用上の注意を参照してください。
アプリケーション ID が指定される場合、 そのアプリケーションに関する情報が戻されます。
エージェント ID が指定される場合、 アプリケーションの代わりに作動しているエージェントに関する情報が戻されます。 -applications の使用上の注意を参照してください。
db2pd -catalogcache -db sample
db2pd -catalogcache コマンドの出力例を参照してください。
戻り情報の定義については、-catalogcache を参照してください。 SYSTABLES の出力には、同じ表に対して複数の項目が含まれる可能性があります (上記の出力の DEPT をご覧ください)。 複数の項目は、同じ表に関する異なるバージョンの統計に対応しています。 使用ロックの名前は、同じオブジェクトの複数の項目の間で固有です。 ソフト無効項目には「S」というマークが付けられます。-catalogcache の使用上の注意を参照してください。
-cleaner オプションの出力例を参照してください。
出力の有効範囲として設定したいデータベースを選択した場合、 このオプションに -inst コマンド・パラメーターを指定します。 -dbmcfg の使用上の注意を参照してください。
-dirtypages オプションの出力例を参照してください。
-fmpexechistory | -fmpe の使用上の注意を参照してください。
-hadr の使用上の注意を参照してください。
-latche の使用上の注意を参照してください。
特定のトランザクションによって保持されているロックに関する情報を得るには、 そのトランザクション・ハンドルを指定します。
ロック名に関する詳細を戻すには、 showlocks コマンド・パラメーターを指定します。パーティション表および個々のデータ・パーティション上の行およびブロックのロックについて、showlocks はデータ・パーティション ID を行の一部としてロック情報と共に表示します。
待ち状態にあるロックおよびそれらのロックの所有者を戻すには、wait コマンド・パラメーターを指定します。
-locks の使用上の注意を参照してください。
db2pd -inst -alldbs -memblocks
db2pd -inst -db sample -memblocks
db2pd -db sample -memblocks
db2pd -memblocks
db2pd -memblocks -fmp
-memblocks の使用上の注意を参照してください。
戻される情報にインスタンス範囲のすべての情報を組み込むには、 このオプションに -inst オプションを指定します。 -mempools の使用上の注意を参照してください。
戻される情報にインスタンス範囲のすべての情報を組み込むには、 このコマンド・パラメーターに -inst コマンド・パラメーターを指定します。 -memsets の使用上の注意を参照してください。
-reorgs の使用上の注意を参照してください。db2pd -reorgs index コマンドの出力例も参照してください。
別のホスト上のメンバーに対して db2pd コマンドに -repeat パラメーターを指定して発行す ると、コマンドはローカル・ホストからリモート・ホストに送信されます。コマンドは、指定された count 値に達するまで各リモート・ホストで実行されます。コマンドは 1 つのホストで実行が完了してから、別のホストで開始します。
db2pd -runstats
Table Runstats Information:
Retrieval Time: 08/13/2009 20:38:20
TbspaceID: 2 TableID: 4
Schema: SCHEMA TableName: TABLE
Status: Completed Access: Allow write
Sampling: No Sampling Rate: -
Start Time: 08/13/2009 20:38:16 End Time: 08/13/2009 20:38:17
Total Duration: 00:00:01
Cur Count: 0 Max Count: 0
Index Runstats Information:
Retrieval Time: 08/13/2009 20:38:20
TbspaceID: 2 TableID: 4
Schema: SCHEMA TableName: TABLE
Status: Completed Access: Allow write
Start Time: 08/13/2009 20:38:17 End Time: 08/13/2009 20:38:18
Total Duration: 00:00:01
Prev Index Duration [1]: 00:00:01
Prev Index Duration [2]: -
Prev Index Duration [3]: -
Cur Index Start: 08/13/2009 20:38:18
Cur Index: 2 Max Index: 2 Index ID: 2
Cur Count: 0 Max Count: 0
db2pd -scansharing コマンドの出力例を参照してください。
-serviceclasses の使用上の注意を参照してください。db2pd -serviceclasses コマンドの出力例も参照してください。
-sort の使用上の注意を参照してください。
イベント・スタックは、以下の順序で出力されます。
イベント・フロー (記録されたイベントの「履歴」) は、以下の順序で出力されます。
db2pd -db sample -statisticscache summary
db2pd -statisticscache detail -alldbs
db2pd -db sample -statisticscache find schema=USER1 object=T1
-storagepaths の使用上の注意を参照してください。db2pd -storagepaths コマンドの出力例も参照してください。
出力の有効範囲として設定したいデータベースを選択した場合、 このコマンド・パラメーターに -inst コマンド・パラメーターを指定します。
-sysplex の使用上の注意を参照してください。
表スペースとグループ化されているその表スペースのコンテナーに関する情報を表示するには、 group コマンド・パラメーターを指定します。
特定の表スペースとそのコンテナーに関する情報を表示するには、 Tablespace ID コマンド・パラメーターを指定します。
最後のバックアップまたは次のバックアップに関する表スペースの状態を表示するには、trackmodstate コマンド・パラメーターと組み合わせて指定します。 このパラメーターを使用するためには、trackmod 構成パラメーターが Yes に設定されている必要があります。
-tablespaces の使用上の注意を参照してください。db2pd -tablespaces コマンドの出力例も参照してください。
-temptable の使用上の注意を参照してください。db2pd -temptable コマンドの出力例も参照してください。
-thresholds の使用上の注意を参照してください。db2pd -thresholds コマンドの出力例を参照してください。
-utilities の使用上の注意を参照してください。
db2pd -workloads コマンドの出力例を参照してください。
db2pd -agents
export DB2PDOPT="-agents"
db2pd
echo "-agents" > file.out
db2pd -command file.out
db2pd -inst -alldbs
db2pd -db sample -fvp lam1
その結果、以下のように出力されます。
-------------------------------------------------------------------------
Fenced ベンダー・プロセス状態情報:
-------------------------------------------------------------------------
ログ・マネージャー:
-------------------------------------------------------------------------
LOGARCHMETH1 available.
Vendor EDU is available and running.
startTime: 1155581841 20060814145721
function: sqluvint
これは、fenced ベンダー・プロセスがベンダー関数 sqluvint で 2006 年 8 月 14 日 14:57 から実行中であることを示しています。 ここで、この実行期間が長すぎると思われる場合、あるいはこのプロセスが TSM リソースを待機して停止状態にあると判断される場合には、以下を発行することにより fenced ベンダー・プロセスを終了できます。
db2pd -db sample -fvp lam1 term
その結果、以下のように出力されます。
-------------------------------------------------------------------------
Fenced ベンダー・プロセス状態情報:
-------------------------------------------------------------------------
ログ・マネージャー:
-------------------------------------------------------------------------
LOGARCHMETH1 available.
Vendor EDU is available and running.
startTime: 1155581841 20060814145721
function: sqluvint
This fenced vendor process has been sent a signal to terminate.
ここでは、上記と同じ情報が示されているのに加えて、終了要求が送信されたことがわかります。 少し待てば、要求の効果が現れます。
-------------------------------------------------------------------------
Fenced ベンダー・プロセス状態情報:
-------------------------------------------------------------------------
ログ・マネージャー:
-------------------------------------------------------------------------
LOGARCHMETH1 available.
Vendor EDU is available and running.
No vendor code being run.
db2pd -db sample -fvp 149
その結果、以下のように出力されます。
-------------------------------------------------------------------------
Fenced ベンダー・プロセス状態情報:
-------------------------------------------------------------------------
バックアップ:
-------------------------------------------------------------------------
メディア・コントローラー:
-------------------------------------------------------------------------
EDU ID: 504
mediaSession: 1
mediaSeqNum: 0
Vendor EDU is available and running.
startTime: 1155583315 20060814152155
function: sqluvint
EDU ID: 505
mediaSession: 2
mediaSeqNum: 0
Vendor EDU is available and running.
No vendor code being run.
これによると、DB2 メディア・コントローラー 0 (EDU ID: 504) はベンダー・コードで実行中です。 一方、DB2 メディア・コントローラー 1 (EDU ID: 505) には fenced ベンダー・プロセスがありますが、ベンダー・コードを実行していません。 ここで、この実行期間が長すぎると思われる場合、あるいはこのプロセスが TSM リソースを待機して停止状態にあると判断される場合には、以下を発行することにより fenced ベンダー・プロセスを終了できます。
db2pd -db sample -fvp 149 term
その結果、以下のように出力されます。
-------------------------------------------------------------------------
Fenced ベンダー・プロセス状態情報:
-------------------------------------------------------------------------
バックアップ:
-------------------------------------------------------------------------
メディア・コントローラー:
-------------------------------------------------------------------------
EDU ID: 504
mediaSession: 1
mediaSeqNum: 0
Vendor EDU is available and running.
startTime: 1155583315 20060814152155
function: sqluvint
This fenced vendor process has been sent a signal to terminate.
EDU ID: 505
mediaSession: 2
mediaSeqNum: 0
Vendor EDU is available and running.
No vendor code being run.
This fenced vendor process has been sent a signal to terminate.
ここでは上記と同じ情報が示されていますが、両方の fenced ベンダー・プロセスに終了要求が送られて、間もなく終了することが示されています。
| イベント記述 | EVENT_STATE 値 | EVENT_TYPE 値 | EVENT_OBJECT 値 | EVENT_OBJECT_NAME 値 |
|---|---|---|---|---|
| ロックの獲得 | IDLE | ACQUIRE | LOCK | ロック名 |
| ロックのエスカレート | EXECUTING | PROCESS | LOCK_ESCALATION | NULL |
| 要求の処理 | EXECUTING | PROCESS | REQUEST | NULL |
| 新規要求の待機 | IDLE | WAIT | REQUEST | NULL |
| リモート・パーティションで処理される要求の待機 | IDLE | WAIT | REMOTE_REQUEST | NULL |
| Query Patroller キューの待機 | IDLE | WAIT | QP_QUEUE | NULL |
| WLM threshold キューの待機 | IDLE | WAIT | WLM_QUEUE | しきい値名 |
| ルーチンの処理 | EXECUTING | PROCESS | ROUTINE | NULL |
| 索引の再作成 | EXECUTING | PROCESS | INDEX_RECREATE | NULL |
| コンプレッション・ディクショナリーの作成 | EXECUTING | PROCESS | COMP_DICT_BLD | NULL |
| 暗黙的な再バインド | EXECUTING | PROCESS | IMPLICIT_REBIND | NULL |
db2pd -catalogcache コマンドの出力例を参照してください。
-dbcfg パラメーターについては、 データベース構成パラメーターの現在の値が戻されます。
-dbmcfg パラメーターについては、 データベース・マネージャー構成パラメーターの現在の値が戻されます。
db2pd -edus コマンドの出力例を参照してください。
db2pd -fmpexechistory コマンドの出力例を参照してください。
-hadr パラメーターについては、以下の情報が戻されます。
-memblocks パラメーターでは、メモリー・セットの個別ブロック、 メモリー・プールごとにグループ化されてソートされた合計、およびメモリー・セットのソートされた合計の、3 つの出力のセクションがあります。
メモリー・ブロック:
メモリー・プールごとに報告されてソートされた合計:
メモリー・セットごとに報告されてソートされた合計:
-pages パラメーターについては、以下の情報がページごとに戻されます。
db2pd -pages コマンドの出力例を参照してください。
db2pd -reorgs index コマンドの出力例を参照してください。
db2pd -scansharing コマンドの出力例を参照してください。
-serviceclasses パラメーターの場合、見出しに関しては、以下のようなフィールドが戻されます。
db2pd -serviceclasses コマンドの出力例を参照してください。
IBM® サポートが問題の分析とトラブルシューティングを行うために役立つ追加情報が返されることもあります。
-statisticscache コマンド・パラメーターを使用した場合に戻される情報の詳細については、『カタログ統計の表』のトピックを参照してください。
-storagepaths パラメーターについては、以下の情報が戻されます。
db2pd -storagepaths コマンドの出力例を参照してください。
-tablespaces パラメーターについては、出力が次の 4 つのセグメントに編成されます。
表スペース構成:
表スペース統計:
SMS 表スペースの場合、この値は表スペースが所有するファイル・システム内のページ数を反映します。
SMS 表スペースの場合、この値は表スペースが所有するファイル・システム内のページ数を反映します。
SMS 表スペースの場合、この値は表スペースが所有するファイル・システム内のページ数を反映します。
SMS 表スペースの場合、この値は常に 0 です。
表スペース自動サイズ変更の統計:
表スペース・コンテナー:
db2pd -tablespaces コマンドの出力例を参照してください。
% Compression = ( Total Bytes Saved ) /
( Total Bytes Saved + Total Stored Temp Bytes )
hotel26:/home/billyp> db2pd -db billdb -temptable
System Temp Table Stats:
Number of Temp Tables : 0
Comp Eligible Temps : 0
Compressed Temps : 0
Total Temp Bytes : 0
Total Bytes Saved : 0
Total Compressed Rows : 0
Total Temp Table Rows: : 0
User Temp Table Stats:
Number of Temp Tables : 0
Comp Eligible Temps : 0
Compressed Temps : 0
Total Stored Temp Bytes : 0
Total Bytes Saved : 0
Total Compressed Rows : 0
Total Temp Table Rows : 0
hotel26:/home/billyp> db2pd -db bill -temptable reset
Resetting counters to 0.
db2pd -temptable コマンドの出力例を参照してください。
-thresholds パラメーターについては、以下の情報が戻されます。
さらに、しきい値がキューイングしきい値である場合、キュー・セクションには次の情報も表示されます。
db2pd -thresholds コマンドの出力例を参照してください。
db2pd -wlocks コマンドの出力例を参照してください。
-workactionsets パラメーターについては、以下の情報が戻されます。
-workclasssets パラメーターについては、以下の情報が戻されます。
-workloads パラメーターの場合、見出しに関しては、以下の情報が戻されます。
db2pd -workloads コマンドの出力例を参照してください。
-------------------------------------------------------------------------
Summary of add partition processing done for partition[50]
-------------------------------------------------------------------------
00:Creating database partitions : True
01:Database partitions are created : True
08:Collecting storage information : True
09:Storage information is collected : True
11:FCM Send & Receive daemons are blocked : True
12:FCM Send & Receive daemons are reactivated : True
13:db2start processing is complete : True
Conflicting states or activities for add partition for partition[50]
-------------------------------------------------------------------------
[14] Messages found for partition [50]
-------------------------------------------------------------------------
[Fri Oct 24 16:16:27 2008]:Addnode agent:Got automatic storage details
[Fri Oct 24 16:16:28 2008]:Addnode agent:Skeleton datbase is created
[Fri Oct 24 16:16:28 2008]:Addnode agent:Scanning for db alias=[PE ] name=[PE ]
[Fri Oct 24 16:16:28 2008]:Addnode agent:Found db alias=[PE ] name=[PE ]
[Fri Oct 24 16:16:28 2008]:Addnode agent:Instance directory already exists
[Fri Oct 24 16:16:28 2008]:Addnode agent:Node directory already exists
[Fri Oct 24 16:16:28 2008]:Addnode agent:Node directory is created
[Fri Oct 24 16:16:29 2008]:Addnode agent:Getting automatic storage details
[Fri Oct 24 16:16:29 2008]:Addnode agent:Got automatic storage details
[Fri Oct 24 16:16:30 2008]:Addnode agent:Skeleton datbase is created
[Fri Oct 24 16:16:30 2008]:Addnode agent:Database activation is not required
[Fri Oct 24 16:16:30 2008]:Addnode agent:Database activation is complete
[Fri Oct 24 16:16:30 2008]:Addnode agent:Online mode processing is complete
[Fri Oct 24 16:16:30 2008]:db2start is complete
-------------------------------------------------------------------------
Summary of add partition processing done for partition[0]
-------------------------------------------------------------------------
Conflicting states or activities for add partition for partition[0]
-------------------------------------------------------------------------
Applications with old view of instance for partition [0]
-------------------------------------------------------------------------
App.Handle(00000000,00000072) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000065) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000071) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000005) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000051) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000070) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000069) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000068) view has [3] nodes, instance has [4] nodes
App.Handle(00000001,00000058) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000067) view has [3] nodes, instance has [4] nodes
App.Handle(00000000,00000073) view has [3] nodes, instance has [4] nodes
-------------------------------------------------------------------------
Add partition processing with detail for partition[50]
-------------------------------------------------------------------------
00:Creating database partitions : True
01:Database partitions are created : True
02:Dropping database entries : False
03:Dropping db entries are completed : False
04:Activating databases explicitly : False
05:Database explicit activation is completed : False
06:Updating database configuration : False
07:Database configuration is updated : False
08:Collecting storage information : True
09:Storage information is collected : True
10:Add partition operation is complete : False
11:FCM Send & Receive daemons are blocked : True
12:FCM Send & Receive daemons are reactivated : True
13:db2start processing is complete : True
Conflicting states or activities for add partition for partition[50]
-------------------------------------------------------------------------
restricted :False
db2start :False
db2stop :False
instance quiesced :False
database quiesced :False
quiesce instance :False
unquiesce instance :False
quiesce db :False
unquiesce db :False
activate db :False
deactivate db :False
exclusive use of db :False
create db :False
drop db :False
create tablespace :False
alter tablespace :False
drop tablespace :False
add partition :False
backup database :False
restore database :False
snapshot restore :False
[14] Messages found for partition [50]
-------------------------------------------------------------------------
[Fri Oct 24 16:16:27 2008]:Addnode agent:Got automatic storage details
[Fri Oct 24 16:16:28 2008]:Addnode agent:Skeleton datbase is created
[Fri Oct 24 16:16:28 2008]:Addnode agent:Scanning for db alias=[PE ] name=[PE ]
[Fri Oct 24 16:16:28 2008]:Addnode agent:Found db alias=[PE ] name=[PE ]
[Fri Oct 24 16:16:28 2008]:Addnode agent:Instance directory already exists
[Fri Oct 24 16:16:28 2008]:Addnode agent:Node directory already exists
[Fri Oct 24 16:16:28 2008]:Addnode agent:Node directory is created
[Fri Oct 24 16:16:29 2008]:Addnode agent:Getting automatic storage details
[Fri Oct 24 16:16:29 2008]:Addnode agent:Got automatic storage details
[Fri Oct 24 16:16:30 2008]:Addnode agent:Skeleton datbase is created
[Fri Oct 24 16:16:30 2008]:Addnode agent:Database activation is not required
[Fri Oct 24 16:16:30 2008]:Addnode agent:Database activation is complete
[Fri Oct 24 16:16:30 2008]:Addnode agent:Online mode processing is complete
[Fri Oct 24 16:16:30 2008]:db2start is complete
Total [00] Conflicting application handles for partition [50]
-------------------------------------------------------------------------
Total [01] Conflicting application handles for partition [20]
-------------------------------------------------------------------------
Agents for app_handle 00000000 00000052 : Activity occurrence:[1] time(s) ActivityName:[exclusive use of db]
-------------------------------------------------------------------------
Add partition processing with detail for partition[0]
-------------------------------------------------------------------------
00:Creating database partitions : False
01:Database partitions are created : False
02:Dropping database entries : False
03:Dropping db entries are completed : False
04:Activating databases explicitly : False
05:Database explicit activation is completed : False
06:Updating database configuration : False
07:Database configuration is updated : False
08:Collecting storage information : False
09:Storage information is collected : False
10:Add partition operation is complete : False
11:FCM Send & Receive daemons are blocked : False
12:FCM Send & Receive daemons are reactivated : False
13:db2start processing is complete : False
Conflicting states or activities for add partition for partition[0]
-------------------------------------------------------------------------
restricted :False
db2start :False
db2stop :False
instance quiesced :False
database quiesced :False
quiesce instance :False
unquiesce instance :False
quiesce db :False
unquiesce db :False
activate db :False
deactivate db :False
exclusive use of db :False
create db :False
drop db :False
create tablespace :False
alter tablespace :False
drop tablespace :False
add partition :False
backup database :False
restore database :False
snapshot restore :False
create/alter nodegroup :False
drop nodegroup :False
add storage :False
redistribute :False
Total [00] Conflicting application handles for partition [0]
-------------------------------------------------------------------------
Applications with old view of instance for partition [0]
-------------------------------------------------------------------------
App.Handle(00000000,00000072) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000065) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000071) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000005) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000051) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000070) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000069) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000068) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000001,00000058) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000067) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
App.Handle(00000000,00000073) view has [3] nodes, instance has[4] nodes
[Viewnodes:0:1:2:]
db2pd -apinfo 12 -db mydb10
Database Partition 0 -- Database MYDB10 -- Active -- Up 0 days 00:03:28
Application :
Address : 0x0780000000D76EE0
AppHandl [nod-index] : 12 [000-00012]
Application PID : 1384708
Application Node Name : boson
IP Address: n/a
Connection Start Time : (1195265036)Fri Nov 16 21:03:56 2007
Client User ID : venus
System Auth ID : VENUS
Coordinator EDU ID : 1801
Coordinator Partition : 0
Number of Agents : 1
Locks timeout value : 4294967294 seconds
Locks Escalation : No
Workload ID : 1
Workload Occurrence ID : 1
Trusted Context : n/a
Connection Trust Type : non trusted
Role Inherited : n/a
Application Status : Lock-wait
Application Name : db2bp
Application ID : *LOCAL.venus.071117020356
ClientUserID : n/a
ClientWrkstnName : n/a
ClientApplName : n/a
ClientAccntng : n/a
List of active statements :
*UOW-ID : 8
Activity ID : 2
Package Schema : NULLID
Package Name : SQLC2G13
Package Version :
Section Number : 201
SQL Type : Dynamic
Isolation : CS
Statement Type : DML, Select (blockable)
Statement : select * from t2
List of inactive statements of current UOW :
UOW-ID : 8
Activity ID : 1
Package Schema : NULLID
Package Name : SQLC2G13
Package Version :
Section Number : 203
SQL Type : Dynamic
Isolation : CS
Statement Type : DML, Insert/Update/Delete
Statement : insert into t1 values 1
Database Partition 0 -- Database SAMPLE -- Active -- Up 0 days 00:05:34
Catalog Cache:
Configured Size 1064960
Current Size 78272
Maximum Size 4294901760
High Water Mark 131072
SYSTABLES:
Address Schema Name Type TableID TbspaceID LastRefID CatalogCacheLoadingLock CatalogCacheUsageLock Sts
0x07800000232FF820 SYSIBM SYSTABLES T 5 0 19288214 0001000007800000232FF82043 0000000500001804232FF82043 V
0x07800000232FD360 SYSCAT TABLES V 0 0 19288214 0001000007800000232FD36043 00000005000CC907232FD36043 V
0x07800000232FFB60 KEON014 EMPLOYEE 0 0 0 19288214 0001000007800000232FFB6043 000000050013AE07232FFB6043 I
0x07800000232FC500 SYSTOOLS POLICY 0 0 0 19288214 0001000007800000232FC50043 00000000000000000000000000 I
0x07800000232FCF40 KEON014 DEPT T 4 2 19288214 0001000007800000232FCF4043 000000050013AE06232FCF0343 V
0x07800000238FCF40 KEON014 DEPT T 4 2 19288214 0001000007800000238FCF4043 000000050013AE06238FCF0143 S
0x07800000234433A0 KEON014 SALARY 0 0 0 19288214 0001000007800000234433A043 000000050013AF00234433A043 I
db2pd -db sample -cleaner
Database Partition 0 - Database SAMPLE - Active - Up 0 days 00:06:34 -
Date 08/09/2010 14:17:58
Page Cleaners:
Group ID Clnr Idx State Cycle Task Pgs Gthr Pgs Ga'd IO outstnd Max AIO Pgs Thrsh Pgs D Stl Pgs Skppd
-1 0 Wait 0 None 0 0 0 32 0 0 0
-1 1 Wait 0 None 0 0 0 32 0 0 0
-1 2 Wait 0 None 0 0 0 32 0 0 0
-1 3 Wait 0 None 0 0 0 32 0 0 0
-1 4 Wait 0 None 0 0 0 32 0 0 0
...
Dirty lists for Bufferpool ID : 1
List ID # Dirty Clnr Idx Trigger Target LSN Pgs for Gap
0 4 0 None 0000000000000000 0
0 0 0 None 0000000000000000 0
1 8 1 None 0000000000000000 0
1 0 1 None 0000000000000000 0
2 2 2 None 0000000000000000 0
2 0 2 None 0000000000000000 0
3 1 3 None 0000000000000000 0
Database Partition 0 -- Active -- Up 0 days 01:14:05
List of all EDUs for database partition 0
db2sysc PID: 18485
db2wdog PID: 18483
db2acd PID: 18504
EDU ID TID Kernel TID EDU Name USR SYS
====================================================================================================
24 47155322546496 12108 db2pfchr (TESTDB) 0.010000 0.000000
23 47155326740800 12107 db2pclnr (TESTDB) 0.000000 0.000000
22 47155330935104 12106 db2pclnr (TESTDB) 0.000000 0.000000
21 47155335129408 12105 db2pclnr (TESTDB) 0.000000 0.000000
20 47155339323712 12104 db2dlock (TESTDB) 0.000000 0.000000
19 47155343518016 12103 db2lfr (TESTDB) 0.000000 0.000000
18 47155347712320 12102 db2loggw (TESTDB) 0.000000 0.000000
17 47155351906624 12101 db2loggr (TESTDB) 0.080000 0.000000
16 47155356100928 27704 db2agent (TESTDB) (suspended) 0.930000 0.140000
15 47155360295232 18502 db2resync 0.080000 0.000000
14 47155364489536 18500 db2ipccm 0.030000 0.000000
13 47155368683840 18499 db2licc 0.000000 0.000000
12 47155372878144 18498 db2thcln 0.000000 0.000000
11 47155377072448 18497 db2alarm 0.000000 0.000000
1 47155117025600 18493 db2sysc 3.340000 0.070000
... USR DELTA SYS DELTA
... ===============================
... 0.141799 0.045431
... 0.101154 0.045117
... 0.038113 0.020154
... 0.005668 0.007978
... 0.005139 0.004392
... 0.005003 0.004105
... 0.003913 0.004100
... 0.001785 0.001282
... 0.001083 0.001550
... 0.001005 0.000433
... 0.000181 0.000098
... 0.000095 0.000091
... 0.000000 0.000000
... 0.000000 0.000000
... 0.000000 0.000000
db2pd -db sample -dirtypages
Database Partition 0 -- Database SAMPLE -- Active -- Up 0 days 00:00:20 --
Date 08/09/2010 14:11:44
Bufferpool: 1
Dirty pages % : 34 / 1000 (3.40% dirty)
Bufferpool minbuflsn: 000000000138800C
Oldest page info:
DirtyLst TspID PPNum ObjID OPNum Typ UFlag fixcount wgt CPC LSN pgLtch
n/a 0 327 15 3 4 3 0 2 0 000000000138800C 0x07000000323508E8
Dirty pages:
DirtyLst TspID PPNum ObjID OPNum Typ UFlag fixcount wgt CPC LSN pgLtch
0 0 272 14 0 0 3 0 2 0 000000000138881C 0x070000003236C2E8 hX:0 sH:0 xW:0 rC:0
0 0 273 14 1 0 3 0 1 0 000000000138881C 0x070000003236B228 hX:0 sH:0 xW:0 rC:0
0 0 7541 18 9 1 3 0 2 0 000000000138E237 0x07000000323678A8 hX:0 sH:0 xW:0 rC:0
0 0 7540 18 8 1 3 0 2 0 000000000138E402 0x0700000032367A28 hX:0 sH:0 xW:0 rC:0
1 0 6945 15 5 1 3 0 2 0 0000000001388107 0x070000003236F3E8 hX:0 sH:0 xW:0 rC:0
1 0 300 14 4 1 3 0 2 0 000000000138889D 0x070000003236B6A8 hX:0 sH:0 xW:0 rC:0
...
Recovery information:
lowtranlsn : 000000000138E486
minbuflsn : 000000000138800C
nextlsn : 000000000138E4B0
LFH lowtranlsn : 000000000138E486
LFH minbuflsn : 000000000138800C
LFH nextlsn : 000000000138800C
Active Log bytes in use : 25764
Current Softmax : 4096000
DirtyLst - dirty list ID in this bufferpool
TspID - tablespace ID of this page
PPNum - pool page number
ObjID - object ID
OPNum - object page number
Typ - type of the object
UFlag - internal page flag
fixcount - number of active fixes on this page (in-use count)
wgt - weight of the page
CPC - clock
LSN - page LSN
pgLtch - page latch address, hX - held X, sH - # shard holders, xW - # of
X waiters
db2pd -fmpexechistory pid=761872 n=10
Database Partition 0 -- Active -- Up 0 days 00:00:11
FMP Process:
FmpPid Bit Flags ActiveThrd PooledThrd ForcedThrd Active
761872 64 0x00000002 2 1 1 YES
Active Threads:
EduPid: 123456 ThreadId: 987654
RoutineID Timestamp
1 2009-05-06-17.12.30.000000
2 2009-05-06-17.12.30.005000
1 2009-05-06-17.12.30.100000
EduPid: 234567 ThreadId: 987000
RoutineID Timestamp
1 2009-05-06-17.12.31.000000
3 2009-05-06-17.12.30.000000
Pooled Threads:
ThreadId: 540021
RoutineID Timestamp
4 2009-05-06-17.10.30.000000
Forced Threads:
ThreadId: 120021
RoutineID Timestamp
10 2009-05-06-15.10.30.000000
db2pd -fmpExecHistory pid=761872 n=10 genquery
Database Partition 0 -- Active -- Up 0 days 00:00:11
WITH RTNHIST ( PID, TID, RTNID, RTNTIME) AS
( VALUES (761872, 987654, 1, TIMESTAMP('2009-07-13-16.17.10.818705')),
(761872, 987654, 2, TIMESTAMP('2009-07-13-16.17.11.818710')),... )
SELECT R.PID, R.TID, R.RTNTIME, ROUTINESCHEMA, ROUTINEMUDULENAME, ROUTINENAME, SPECIFICNAME, ROUTINEID
FROM syscat.routines, RTNHIST as R
WHERE ROUTINEID = R.RTNID
ORDER BY R.PID, R.TID, R.RTNTIME ;
venus@baryon:/home/venus =>db2pd -pages -db pdtest
Database Partition 0 -- Database PDTEST -- Active -- Up 0 days 00:01:28
Bufferpool Pages:
First Active Pool ID 1
Max Bufferpool ID 1
Max Bufferpool ID on Disk 1
Num Bufferpools 5
Pages for all bufferpools:
Address BPID TbspaceID TbspacePgNum ObjID ObjPgNum ObjClass ObjType Dirty Prefetched
0x0000002AC22ABAC0 1 0 92 10 0 EMP Data N N
0x0000002AC22ABB80 1 0 2503 10 11 Perm Index N N
0x0000002AC22ABC40 1 0 2501 10 9 Perm Index Y N
0x0000002AC22ABD00 1 0 2494 10 2 Perm Index N N
0x0000002AC22ABDC0 1 0 3437 5 17 Perm Data N N
0x0000002AC22ABE80 1 0 2504 10 12 Perm Index Y N
0x0000002AC22ABF40 1 0 2505 10 13 Perm Index N N
0x0000002AC22AC000 1 0 2506 10 14 Perm Index N N
0x0000002AC22AC0C0 1 0 28 5 0 EMP LOB N N
0x0000002AC22AC180 1 0 2509 10 17 Perm Index N N
0x0000002AC22AC240 1 0 2495 10 3 Perm Index Y N
0x0000002AC22AC300 1 0 2498 10 6 Perm Index Y N
0x0000002AC22AC3C0 1 2 128 4 0 Perm Data Y N
0x0000002AC22AC480 1 0 2499 10 7 Perm Index N N
0x0000002AC22AC540 1 0 99 10 3 Perm Data Y N
0x0000002AC22AC600 1 0 96 10 0 Perm Data Y N
0x0000002AC22AC6C0 1 0 110 5 2 Perm Index N N
0x0000002AC22AC780 1 0 2500 10 8 Perm Index N N
0x0000002AC22AC840 1 0 2740 5 16 Perm Index N N
0x0000002AC22AC900 1 0 2507 10 15 Perm Index Y N
Total number of pages: 20
Summary info for all bufferpools:
BPID TbspaceID ObjID Total Dirty Permanent Temporary Data Index LongField XMLData SMP LOB LOBA BMP
1 0 5 4 0 3 0 1 2 0 0 0 1 0 0
1 0 10 15 7 14 0 3 12 0 0 0 0 0 0
1 2 4 1 1 1 0 1 0 0 0 0 0 0 0
Total number of pages: 20
venus@baryon:/home/venus =>db2pd -pages summary -db pdtest
Database Partition 0 -- Database PDTEST -- Active -- Up 0 days 00:02:07
Bufferpool Pages:
First Active Pool ID 1
Max Bufferpool ID 1
Max Bufferpool ID on Disk 1
Num Bufferpools 5
Total number of pages: 20
Summary info for all bufferpools:
BPID TbspaceID ObjID Total Dirty Permanent Temporary Data Index LongField XMLData SMP LOB LOBA BMP
1 0 5 4 0 3 0 1 2 0 0 0 1 0 0
1 0 10 15 7 14 0 3 12 0 0 0 0 0 0
1 2 4 1 1 1 0 1 0 0 0 0 0 0 0
Total number of pages: 20
Index Reorg Stats:
Retrieval Time: 02/08/2010 23:04:21
TbspaceID: -6 TableID: -32768
Schema: ZORAN TableName: BIGRPT
Access: Allow none
Status: Completed
Start Time: 02/08/2010 23:03:55 End Time: 02/08/2010 23:04:04
Total Duration: 00:00:08
Prev Index Duration: -
Cur Index Start: -
Cur Index: 0 Max Index: 2 Index ID: 0
Cur Phase: 0 ( - ) Max Phase: 0
Cur Count: 0 Max Count: 0
Total Row Count: 750000
Retrieval Time: 02/08/2010 23:04:21
TbspaceID: 2 TableID: 5
Schema: ZORAN TableName: BIGRPT
PartitionID: 0 MaxPartition: 2
Access: Allow none
Status: Completed
Start Time: 02/08/2010 23:04:04 End Time: 02/08/2010 23:04:08
Total Duration: 00:00:04
Prev Index Duration: -
Cur Index Start: -
Cur Index: 0 Max Index: 2 Index ID: 0
Cur Phase: 0 ( - ) Max Phase: 0
Cur Count: 0 Max Count: 0
Total Row Count: 375000
Retrieval Time: 02/08/2010 23:04:21
TbspaceID: 2 TableID: 6
Schema: ZORAN TableName: BIGRPT
PartitionID: 1 MaxPartition: 2
Access: Allow none
Status: Completed
Start Time: 02/08/2010 23:04:08 End Time: 02/08/2010 23:04:12
Total Duration: 00:00:04
Prev Index Duration: -
Cur Index Start: -
Cur Index: 0 Max Index: 2 Index ID: 0
Cur Phase: 0 ( - ) Max Phase: 0
Cur Count: 0 Max Count: 0
Total Row Count: 375000
以下は、-scansharing パラメーターを使用した出力の例です。 出力には、2 つの共有セットが示されています。表スキャン・セットには 2 つのグループがあり、ブロック索引のスキャン・セットにはグループが 1 つあります。
Database Partition 0 -- Database SAMP -- Active -- Up 0 days 00:00:45
Scan Sets:
TbspaceID TableID ScanObject NumGroups Footprint TableSize FastScanRate SlowScanRate
2 3 0 2 11520 22752 2486 1000
Group Information:
FootPrint NumScannersInGroup
8288 3
Scans In Group :
AgentID ApplID Mode Wrappable Fast/Slow Speed ThrottleTime Absolute Location Remaining Pages
9768 1173 0 0 1 2486 0 32 22751
11332 1165 0 0 1 2486 0 5056 17727
15466 1155 0 0 1 2486 0 8288 14495
Group Information:
FootPrint NumScannersInGroup
3232 2
Scans In Group :
AgentID ApplID Mode Wrappable Fast/Slow Speed ThrottleTime Absolute Location Remaining Pages
15209 1150 0 0 1 2486 0 14080 8703
12103 1148 0 0 1 2486 0 17280 5503
Scan Sets:
TbspaceID TableID ScanObject NumGroups Footprint TableSize FastScanRate SlowScanRate
2 3 1 1 9056 22752 1000 1000
Group Information:
FootPrint NumScannersInGroup
9056 3
Scans In Group :
AgentID ApplID Mode Wrappable Fast/Slow Speed ThrottleTime Relative Location Estimated Remaining Pages
6170 1209 0 0 1 1000 0 896 13535
13645 1215 0 0 1 1000 0 3552 10879
4371 1204 0 0 1 1000 0 9920 4511
以下は、1 つのサービス・スーパークラスとそのサブクラスに関するサービス・クラス情報の出力例です。
サービス・スーパークラスの出力例:
Service Class Name = SYSDEFAULTSYSTEMCLASS
Service Class ID = 1
Service Class Type = Service Superclass
Default Subclass ID = 11
Effective Service Class State = Enabled
Catalog Service Class State = Enabled
Effective Agent Priority = 0
Catalog Agent Priority = Default
Effective Prefetch Priority = Medium
Catalog Prefetch Priority = Default
Effective Bufferpool Priority = Low
Catalog Bufferpool Priority = Default
Effective Outbound Correlator = None
Catalog Outbound Correlator = None
Work Action Set ID = N/A
Collect Activity Opt = None
Collect Request Metrics = Base
Num Connections = 5
Last Statistics Reset Time = 12/16/2008 15:27:42.000000
Num Coordinator Connections = 5
Coordinator Connections HWM = 5
Associated Workload Occurrences (WLO):
AppHandl [nod-index] WL ID WLO ID UOW ID WLO State
10 [000-00010] 0 0 1 UOWWAIT
11 [000-00011] 0 0 1 UOWWAIT
12 [000-00012] 0 0 1 UOWWAIT
13 [000-00013] 0 0 1 UOWWAIT
14 [000-00014] 0 0 1 UOWWAIT
サービス・サブクラスの出力例:
Service Class Name = SYSDEFAULTSUBCLASS
Service Class ID = 11
Service Class Type = Service Subclass
Parent Superclass ID = 1
Effective Service Class State = Enabled
Catalog Service Class State = Enabled
Effective Agent Priority = 0
Catalog Agent Priority = Default
Effective Prefetch Priority = Medium
Catalog Prefetch Priority = Default
Effective Bufferpool Priority = Low
Catalog Bufferpool Priority = Default
Effective Outbound Correlator = None
Catalog Outbound Correlator = None
Collect Activity Opt = None
Collect Request Metrics = None
Collect Aggr Activity Opt = None
Collect Aggr Request Opt = None
Act Lifetime Histogram Template ID = 1
Act Queue Time Histogram Template ID = 1
Act Execute Time Histogram Template ID = 1
Act Estimated Cost Histogram Template ID = 1
Act Interarrival Time Histogram Template ID = 1
Request Execute Time Histogram Template ID = 1
Access Count = 0
Last Stats Reset Time = 12/16/2008 15:27:42.000000
Activities HWM = 0
Activities Completed = 0
Activities Rejected = 0
Activities Aborted = 0
Associated Agents:
EDU ID AppHandl [nod-index] WL ID WLO ID UOW ID Activity ID
26 10 [000-00010] 0 0 0 0
29 11 [000-00011] 0 0 0 0
28 12 [000-00012] 0 0 0 0
27 13 [000-00013] 0 0 0 0
30 14 [000-00014] 0 0 0 0
Associated Non-agent threads:
PID TID Thread Name
6834 2948590480 db2loggr
6834 2947541904 db2loggw
6834 2946493328 db2lfr
6834 2945444752 db2dlock
6834 2944396176 db2pclnr
6834 2943347600 db2pfchr
6834 2942299024 db2pfchr
6834 2941250448 db2pfchr
Database Storage Paths:
Number of Storage Paths 3
Address PathID PathState PathName
0x07000000400101C0 0 InUse /dataPath1
0x0700000040010540 1 DropPending /dataPath2
0x07000000400108C0 2 NotInUse /PathWithDPE_0 (/PathWithDPE_ $N)
Tablespace Configuration:
...
Tablespace Statistics:
Address Id ... State MinRecTime NQuiescers PathsDropped
0x070000004108AB40 0 ... 0x00000000 0 0 Yes
0x070000004108B520 1 ... 0x00000000 0 0 Yes
0x0700000041078100 2 ... 0x00000000 0 0 Yes
Tablespace Autoresize Statistics:
...
Containers:
Address TspId ... PathID StripeSet Container
0x070000004108B240 0 ... 0 0 /dataPath1/inst/NODE0000/TESTDB/T0000000/C0000000.CAT
0x070000004108B398 0 ... 1 0 /dataPath2/inst/NODE0000/TESTDB/T0000000/C0000001.CAT
0x070000004108BBC0 1 ... 0 0 /dataPath1/inst/NODE0000/TESTDB/T0000001/C0000000.TMP
0x070000004108BD18 1 ... 1 0 /dataPath2/inst/NODE0000/TESTDB/T0000001/C0000001.TMP
0x07000000410787A0 2 ... 0 0 /dataPath1/inst/NODE0000/TESTDB/T0000002/C0000000.LRG
0x07000000410788F8 2 ... 1 0 /dataPath2/inst/NODE0000/TESTDB/T0000002/C0000001.LRG
新しい「Max HWM」列が db2pd -tablespaces 出力に追加され、この列はインスタンスの開始後の DMS 表スペースの最大 HWM を示します。出力内の「HWM」列は一時 DMS 表スペースに関する現在の HWM であり、使用されているディスク・スペース量の特定時点の値を表します。SMS 表スペースの場合、 「HWM」と「Max HWM」には値が入りません。
hotel26:/home/billyp> db2pd -db bill -tablespaces
Database Partition 0 -- Database BILL -- Active -- Up 0 days 00:02:15
Tablespace Configuration:
Address Id Type Content PageSz ExtentSz Auto Prefetch BufID BufIDDisk FSC NumCntrs MaxStripe LastConsecPg Name
0x00002B9DCA582720 0 DMS Regular 4096 4 Yes 4 1 1 Off 1 0 3 SYSCATSPACE
0x00002B9DCA583560 1 DMS UsrTmp 4096 2 Yes 2 1 1 Off 1 0 1 DMSUSRTEMP
0x00002B9DCA5863E0 2 DMS Large 4096 32 Yes 32 1 1 Off 1 0 31 USERSPACE1
0x00002B9DCA587220 3 DMS SysTmp 4096 2 Yes 2 1 1 Off 1 0 1 DMSSYSTEMP
0x00002B9DCA58A0A0 4 DMS Large 4096 4 Yes 4 1 1 Off 1 0 3 SYSTOOLSPACE
Tablespace Statistics:
Address Id TotalPgs UsablePgs UsedPgs PndFreePgs FreePgs HWM Max HWM State MinRecTime NQuiescers
0x00002B9DCA582720 0 12544 12540 12308 0 232 12308 12308 0x00000000 0 0
0x00002B9DCA583560 1 20000 19998 3266 0 16732 3266 3266 0x00000000 0 0
0x00002B9DCA5863E0 2 7168 7136 3232 0 3904 7072 7072 0x00000000 0 0
0x00002B9DCA587220 3 20000 19998 1700 0 18298 1700 2000 0x00000000 0 0
0x00002B9DCA58A0A0 4 256 252 144 0 108 144 200 0x00000000 0 0
hotel26:/home/billyp> db2pd -db billdb -temptable
System Temp Table Stats:
Number of Temp Tables : 0
Comp Eligible Temps : 0
Compressed Temps : 0
Total Stored Temp Bytes : 0
Total Bytes Saved : 0
Total Compressed Rows : 0
Total Temp Table Rows : 0
User Temp Table Stats:
Number of Temp Tables : 0
Comp Eligible Temps : 0
Compressed Temps : 0
Total Stored Temp Bytes : 0
Total Bytes Saved : 0
Total Compressed Rows : 0
Total Temp Table Rows : 0
同じ情報が、システム一時表とユーザー一時表に格納されます。ただし、前述のすべてのカウンターは累積されてゆき、一時表がドロップされると更新されます。そのため、こうしたカウンターは履歴情報のみを表します。
以下は、データベースしきい値とそのキューに関するしきい値情報出力の例です。
しきい値の出力例:
Threshold Name = MAXDBACTIVITIES
Threshold ID = 6
Domain = 10
Domain ID = 10
Predicate ID = 90
Maximum Value = 2
Enforcement = D
Queueing = Y
Queue Size = 0
Collect Flags = V
Partition Flags = C
Execute Flags = C
Enabled = Y
Check Interval (seconds) = -1
Remap Target Serv. Subclass = 0
Log Violation Evmon Record = Y
データベースしきい値のキュー出力例:
Database Threshold Tickets:
Ticket information for threshold: TH1 with threshold ID 1
Activity ID UOW ID Classification AppHandl [nod-index]
1 6 READ_DML 51 [000-00051]
Queue information for threshold: MAXDBACTIVITIES
Max Concurrency = 2
Concurrency = 2
Max Queue Size = 0
Agents Currently Queued:
EDU ID AppHandl [nod-index] Agent Type Activity ID UOW ID
36 14994 [000-14994] 1 4 1
db2pd -sort -db pdtest
Database Partition 0 -- Database PDTEST -- Active -- Up 0 days 00:05:29
AppHandl [nod-index]
13 [000-00013]
SortCB MaxRowSize EstNumRows EstAvgRowSize NumSMPSorts NumSpills
0x0000002AB7587300 919 50716 644 1 1
KeySpec
VARCHAR:300,VARCHAR:400
SMPSort# SortheapMem NumBufferedRows NumSpilledRows
0 16 0 101
AppHandl [nod-index]
7 [000-00007]
SortCB MaxRowSize EstNumRows EstAvgRowSize NumSMPSorts NumSpills
0x0000002AB74FC540 919 1000 644 1 1
KeySpec
VARCHAR:400,VARCHAR:200,VARCHAR:300
SMPSort# SortheapMem NumBufferedRows NumSpilledRows
0 16 0 101
db2pd -wlocks -db mydb2
Database Partition 0 -- Database MYDB2 -- Active -- Up 0 days 00:02:17
Locks being waited on :
AppHandl [nod-index] TranHdl Lockname Type Mode Conv Sts CoorEDU AppName AuthID AppID
13 [000-00013] 7 0002000B000000000340000452 Row ..X G 352614 db2bp VENUS *LOCAL.venus.071117030309
15 [000-00015] 9 0002000B000000000340000452 Row .NS W 1176046 db2bp VENUS *LOCAL.venus.071117030358
12 [000-00012] 2 0002000B000000000340000452 Row .NS W 1052748 db2bp VENUS *LOCAL.venus.071117030231
12 [000-00012] 2 00020004000000000080001652 Row ..X G 1052748 db2bp VENUS *LOCAL.venus.071117030231
14 [000-00014] 8 00020004000000000080001652 Row .NS W 634900 db2bp VENUS *LOCAL.venus.071117030340
以下は、デフォルト・ワークロード SYSDEFAULTUSERWORKLOAD と SYSDEFAULTADMWORKLOAD の出力例です。
Database Partition 0 -- Database SB -- Active -- Up 0 days 00:00:57
Workload Definitions:
Address = 0x00002B3E772ACB40
WorkloadID = 1
WorkloadName = SYSDEFAULTUSERWORKLOAD
DBAccess = ALLOW
ConcWLOThresID = 0
ConcWLOThresName = ^H
MaxConcWLOs = 9223372036854775806
WLOActsThresName = ^H
WLOActsThresID = 0
MaxWLOActs = 9223372036854775806
ServiceClassID = 13
Collect Activity Opt = None
Collect Lock Timeout = Without History
Collect Deadlock = Without History
Collect Lock Wait = None
Collect Aggr Activity Opt = None
Collect Activity Metrics = Base
Collect Unit of Work Data = None
Act Lifetime Histogram Template ID = 1
Act Queue Time Histogram Template ID = 1
Act Execute Time Histogram Template ID = 1
Act Estimated Cost Histogram Template ID = 1
Act Interarrival Time Histogram Template ID = 1
Address = 0x00002B3E772ACD50
WorkloadID = 2
WorkloadName = SYSDEFAULTADMWORKLOAD
DBAccess = ALLOW
ConcWLOThresID = 0
ConcWLOThresName = ^H
MaxConcWLOs = 9223372036854775806
WLOActsThresName = ^H
WLOActsThresID = 0
MaxWLOActs = 9223372036854775806
ServiceClassID = 13
Collect Activity Opt = None
Collect Lock Timeout = Without History
Collect Deadlock = Without History
Collect Lock Wait = None
Collect Aggr Activity Opt = None
Collect Activity Metrics = Base
Collect Unit of Work Data = None
Act Lifetime Histogram Template ID = 1
Act Queue Time Histogram Template ID = 1
Act Execute Time Histogram Template ID = 1
Act Estimated Cost Histogram Template ID = 1
Act Interarrival Time Histogram Template ID = 1
Usage Privilege Holders:
Address WorkloadID Type AuthID
0x00002B3E772BCD60 1 GROUP PUBLIC
Local Partition Workload Statistics:
Address = 0x00002B3E772DA0C0
WorkloadID = 1
WorkloadName = SYSDEFAULTUSERWORKLOAD
NumWLO = 0
LastResetTime = 10/07/2008 16:34:43.000000
WLO HWM = 0
WLOActHWM = 0
WLOCompleted = 0
ActCompleted = 0
ActAborted = 0
ActRejected = 0
Address = 0x00002B3E7730A0C0
WorkloadID = 2
WorkloadName = SYSDEFAULTADMWORKLOAD
NumWLO = 0
LastResetTime = 10/07/2008 16:34:43.000000
WLO HWM = 0
WLOActHWM = 0
WLOCompleted = 0
ActCompleted = 0
ActAborted = 0
ActRejected = 0