DB2 9.7 FP5及以后, 新增-load选项, 通过loadid可以获得所有相关的EDU和stack数据.
$ db2 list utilities show detail
ID = 41
Type = LOAD
Database Name = SAMPLE
Partition Number = 0
Description = [LOADID: 6205.2015-04-24-09.44.57.290959.0 (3;34)] [*LOCAL.e97q7a.150424010243] OFFLINE LOAD CURSOR AUTOMATIC INDEXING REPLACE NON-RECOVERABLE E97Q7A .LOB02
Start Time = 04/24/2015 09:44:57.293291
State = Executing
Invocation Type = User
Progress Monitoring:
Phase Number = 1
Description = SETUP
Total Work = 0 bytes
Completed Work = 0 bytes
Start Time = 04/24/2015 09:44:57.293300
Phase Number [Current] = 2
Description = LOAD
Total Work = 1886 rows
Completed Work = 1886 rows
Start Time = 04/24/2015 09:44:57.328304
$ db2pd -d sample -load loadid="LOADID: 6205.2015-04-24-09.44.57.290959.0 (3;34)" stacks
Attempting to produce stack traces for LOAD EDU 9409
Attempting to produce stack traces for LOAD EDU 9152
Attempting to produce stack traces for LOAD EDU 9666
Database Partition 0 -- Database SAMPLE -- Active -- Up 0 days 00:42:26 -- Date 2015-04-24-09.45.09.504782
Node Number : 0
Database Name : SAMPLE
LoadID EDUID EDUNAME Table Schema AppHandl [nod-index] Application ID StartTime LoadPhase
LOADID: 6205.2015-04-24-09.44.57.290959.0 (3;34) 9409 db2lmr LOB02 E97Q7A 967 [000-00967] *LOCAL.e97q7a.150424010243 2015-04-24-09.44.57.290959 LOAD
LOADID: 6205.2015-04-24-09.44.57.290959.0 (3;34) 9152 db2lfrm0 LOB02 E97Q7A 967 [000-00967] *LOCAL.e97q7a.150424010243 2015-04-24-09.44.57.290959 LOAD
LOADID: 6205.2015-04-24-09.44.57.290959.0 (3;34) 9666 db2lbm0 LOB02 E97Q7A 967 [000-00967] *LOCAL.e97q7a.150424010243 2015-04-24-09.44.57.290959 LOAD
db2trc -apphdl获取trace数据, 通过stack,trace数据诊断load问题.