DB2 - Problem description
| Problem IC76542 | Status: Closed |
DB2_EVMON_STMT_FILTER DOES NOT FILTER | |
| product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
| Problem description: | |
This issue is easily reproducible against the sample database
(db2sampl)
Using the following shell script:
MONITOR_NAME=EVMON_STMT
# the following should record only the "CALL" statements
db2set DB2_EVMON_STMT_FILTER='${MONITOR_NAME}:12'
db2stop force
db2start
db2 connect to sample
db2 delete from stmt_${MONITOR_NAME} where 1=1
db2 create event monitor ${MONITOR_NAME} for statements write
to table
db2 set event monitor ${MONITOR_NAME} state 1
db2 "select FIRSTNME, LASTNAME from employee where
EMPNO='000230'"
db2 set event monitor ${MONITOR_NAME} state 0
db2 "select start_time, sequence_no, stmt_operation,
substr(stmt_text,1,50) statement from stmt_${MONITOR_NAME}"
The last select statement will show the following output :
START_TIME SEQUENCE_NO STMT_OPERATION
STATEMENT
-------------------------- ----------- --------------------
--------------------------------------------------
2011-05-20-10.34.48.981832 00004 1
select FIRSTNME, LASTNAME from employee where EMPN
2011-05-20-10.34.49.089473 00004 4
select FIRSTNME, LASTNAME from employee where EMPN
2011-05-20-10.34.49.089473 00004 7
select FIRSTNME, LASTNAME from employee where EMPN
2011-05-20-10.34.49.089473 00004 6
select FIRSTNME, LASTNAME from employee where EMPN
2011-05-20-10.34.49.093972 00004 8
5 record(s) selected. | |
| Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All * **************************************************************** * PROBLEM DESCRIPTION: * * See error description above * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 version 9.7 Fix Pack 5 * **************************************************************** | |
| Local Fix: | |
| available fix packs: | |
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows | |
| Solution | |
First fixed in DB2 version 9.7 Fix Pack 5 | |
| Workaround | |
not known / see Local fix | |
| BUG-Tracking | |
forerunner : APAR is sysrouted TO one or more of the following: IC76692 follow-up : | |
| Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 23.05.2011 23.12.2011 23.12.2011 |
| Problem solved at the following versions (IBM BugInfos) | |
9.7.FP5 | |
| Problem solved according to the fixlist(s) of the following version(s) | |
| 9.7.0.5 |
|