Académique Documents
Professionnel Documents
Culture Documents
Query Monitor
Ken Kelley
Certified Technical Sales Specialist
IBM Software Group
Query Monitor
– Overview
– Activity Summary
– Exceptions and Alerts
– Negative SQL Codes
– DB2 Commands
– Current Activity
– History
– Display Customization
– Consolidation Analysis Engine
Backstore
data sets
z/OS MV01
WS CAE Agent
Query Monitor DB2B
Subsystem
ISPF
CAE Client
Backstore
data sets
z/OS MV02
4 © 2009 IBM Corporation
Getting Started With Query Monitor
2009/05/26 19:30:46 ---- IBM DB2 Query Monitor for z/OS -----------------------
Option ===> __________________________________________________________________
0. Settings
1. View Activity Summaries 2. View SQLCODEs
3. View Current Activity 4. View DB2 Command Activity
5. View Exceptions
C:S-Select
------------------------------------------------------------------------------
CMD QM VER DB2 VER GROUP MSTATUS CURRENT INTERVAL STRT PROFILE SMF
___ _______ ___ ____ ___ ________ ________ _____________________ ________ ____
__ DQ2B 230 DSNB 810 ACTIVE 05/26/2009 - 13:00:00 DSNBPROF MVSE
S_ DQ2C 230 DSNC 810 ACTIVE 05/26/2009 - 13:00:00 DSNCPROF MVSE
__ DQ2A 230 DSNA 810 ACTIVE 05/26/2009 - 13:00:00 DSNAPROF MVSE
***************************** Bottom of Data **********************************
Summaries
– OPERATIONAL - SQL activity summarized by
• DB2
• Plan
• DBRM / Package
• Authid
2009/05/26 19:31:54 ---- IBM DB2 Query Monitor for z/OS -----------------------
O .-----------------------------------------------------------------. _________
| ----------------- Select Summary Level ------------------ |
| Option ===> 1 | ET315
| | M V2R3M0
- | -- Operational -- -- Structural -- | ---------
| 1) Plan 5) DB2 |
| 2) DB2 6) Database |
| 3) DBRM/Package 7) Buffer Pool |
| 4) AuthID 8) Page Set |
| |
| |
| |
'-----------------------------------------------------------------'
SELECT *
FROM SYSIBM.SYSINDEXES
WHERE TBNAME = 'GLWTDPT' AND TBCREATOR = 'DNET315' AND DBNAME =
'DNET315' FOR FETCH ONLY
***************************** Bottom of Data **********************************
C:1-Insert,2-Update,4-Repeat,5-Delete,6-Copy,9-Move,10-Before,11-After
------------------------------------------------------------------------ >
CMD INCL\EXCL SSID Plan Program AUTHID JOBNAME CONN CORRID
- - ---- -------- -------- -------- -------- -------- ------------
__ E DSNC FPEPLAN * * * * *
__ I DSNC DSNREXX * * * * *
__ I DSNC TJHPGM* * DNET0* * * *
__ I DSNC DB2PM * * * * *
__ I DSNC DISTSERV * * * * *
__ I * ANL* * DNET315 * * *
2_ I * * * DNET315 * * *
__ I DSNC * * * * * *
***************************** Bottom of Data **********************************
2009/05/26 19:42:49 --- DB2 QM SQL Code Detail Display --- Row 1 of 1
Option ===> Scroll ===> PAGE
DB2 QM Subsystem: DQ2C Interval Start Date: 05/26/2009 Time: 13:00:00
Interval End Date: CURRENT Time: CURRENT
Detail data captured for SQLCODE: -551
C: 16-SQL TEXT, 28-SQLCA
------------------------------------------------------------------------ >
CMD SSID Plan DBRM/Package JOBNAME STMT# Collection ID SECT# AUTHID
-- ---- -------- ------------- -------- ------ ------------- ----- --------
28 DSNC ADB ADBMAIN TDCD001 4,503 ADBL 1 TDCD001
***************************** Bottom of Data **********************************
SQLCAID SQLCA
SQLCABC 136
SQLCODE -551
SQLERRML 30
SQLERRMC TDCD001.SELECT.DNET315.GLWTDPT
INTERVAL
– View a list of available intervals
– Abbreviate INTV
CURRENT
– Navigate to the current interval
– Abbreviate CUR
PREV
– Navigate to the previous interval
– Can also use PF4
NEXT
– Navigate to the next interval
– Can also use PF6
C:S-Select Interval,1-Datasets,
------------------------------------------------------------------------
CMD AVAIL START END INTERVAL NUMBER
-- ------ --------------------- --------------------- ----------
__ YES 05/24/2009 - 13:00:00 05/25/2009 - 1:00:00 3592
S_ YES 05/25/2009 - 1:00:00 05/25/2009 - 13:00:00 3593
S_ YES 05/25/2009 - 13:00:00 05/26/2009 - 1:00:00 3594
__ YES 05/26/2009 - 1:00:00 05/26/2009 - 13:00:00 3596
__ YES 05/26/2009 - 13:00:00 3597
***************************** Bottom of Data **********************************
Detail
Activity
Browser Navigation
Tree
Alert
Browser
Ken Kelley
Certified Technical Sales Specialist
System z DB2 Tools
kelleyke@us.ibm.com
http://www.ibm.com/software/data/db2imstools