码迷,mamicode.com
首页 > 其他好文 > 详细

v97fp5后, load问题诊断方法增强.

时间:2015-04-24 16:50:58      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:load问题诊断


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问题.


v97fp5后, load问题诊断方法增强.

标签:load问题诊断

原文地址:http://masaly.blog.51cto.com/9302075/1637838

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!