RUNSTATS 조작의 진행 상태 모니터링

LIST UTILITIES 명령 또는 db2pd 명령을 사용하여 데이터베이스에서 RUNSTATS 조작의 진행 상태를 모니터링할 수 있습니다.

프로시저

LIST UTILITIES 명령을 실행하고 SHOW DETAIL 매개변수를 지정하십시오.
   list utilities show detail
또는 db2pd 명령을 실행하고 -runstats 매개변수를 지정하십시오.
db2pd -runstats

결과

다음은 LIST UTILITIES 명령을 사용하여 RUNSTATS 조작의 성능을 모니터링하기 위한 출력 예제입니다.
ID                               = 7
Type                             = RUNSTATS
Database Name                    = SAMPLE
Partition Number                 = 0
Description                      = YIWEIANG.EMPLOYEE
Start Time                       = 08/04/2011 12:39:35.155398
State                            = Executing
Invocation Type                  = User
Throttling:
   Priority                      = Unthrottled
다음은 db2pd 명령을 사용하여 RUNSTATS 조작의 성능을 모니터링하기 위한 출력 예제입니다.
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