db2 event monitor

コマンド覚書

$monitor_nameは任意の値
また、$monitor_nameを dropする前にdb2evmonでテキスト出力しないと、ダメ。

db2 create event monitor $monitor_name for 以下必要なパラメータ write to '$dir' replace

database, tables, deadlocks, tablespaces, bufferpools, connections, statements, transactions

db2 set event monitor $monitor_name state 1
でモニタースタート。

db2 flush event monitor $monitor_name
db2 set event monitor $monitor_name state 0
でモニター停止

db2evmon -db $dbname -evm $monitor_name > ファイル
db2 drop event monitor $monitor_name

コメント

人気の投稿