0) Turn On Session level monitor. db2 update monitor switches using BUFFERPOOL on lock on sort on statement on table on timestamp on uow on 1) Get the snapshot for tables. db2 get snapshot for tables on $DB >tab.snap.log 2) vi tab.snap.log , search "TEMP", table schema is the Application handle
eg. Table Schema = <58558><BRIOADM > Table Name = TEMP (00004,00003) Table Type = Temporary Data Object Pages = 4524 Rows Read = 1084585 Rows Written = 0 Overflows = 0 Page Reorgs = 0
3) db2 get snapshot for applications on $DB >app.snap.log Vi app.snap.log Search App Handle "58558", you will got the executing sql.
eg. Application handle = 58558 Application status = UOW Executing Status change time = 09/11/2012 06:12:05.138363 Application code page = 1208 Application country/region code = 0 DUOW correlation token = 9.57.167.17.43830.120911061206 Application name = db2jcc_application Application ID = 9.57.167.17.43830.120911061206 Buffer pool temporary data logical reads = 2763644 Dynamic SQL statement text: delete from eod.ctrl_rsmyrpts where rpt_type_cd=12 and (cwa_id,RPT_ACCESS_ID) not in (select cwa_id,RPT_ACCESS_ID from eod.ctusrrpt)
添加新评论11 条评论
2012-12-05 12:36
2012-12-01 22:00
2012-10-24 18:02
2012-10-04 12:28
2012-09-24 17:05
2012-09-21 10:13
2012-09-20 10:35
http://www.db2china.net/club/thread-25937-1-1.html
2012-09-19 09:58
2012-09-12 10:06
2012-09-12 10:04
这其中的00004,00003分别代表什么呢??
2012-09-12 09:49
这其中的00004,00003分别代表什么呢??