Hi,
I have created event monitor for statements like:
Code:
CREATE EVENT MONITOR event_mon_SQL FOR STATEMENTS WRITE TO TABLE AUTOSTART
SET EVENT MONITOR event_mon_SQL STATE=1
The above event monitor monitors all statements executed to all tables in database. I have a huge performance problems turning this event monitor on, CPU gets to 100% and end-users reports dramatic performance drops.
Actually I only need to monitor statements on 4 not so frequently accessed tables, but I need to monitor all insert/update/delete/select statements. Is there any way I can filter event monitor by only monitoring all statements executed against 4 tables that I need?
I have read event monitor documentation at:
DB2 Database for Linux, UNIX, and Windows
but I can't find any "filter by table" option.
Any idea how to filter per table?
My system: DB2 v9.5 fixpack 2a on Linux
Regards