Created
April 4, 2014 01:46
-
-
Save auycro/9966492 to your computer and use it in GitHub Desktop.
DB2 SQL Event Monitor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
update monitor switches using statement on ; | |
--Create Event Monitor | |
create event monitor ykrkmonapp for statements write to file 'd:/tmp'; | |
--Set Event Monitor Active | |
set event monitor ykrkmonapp state=1 ; | |
--Drop Event Monitor | |
drop event monitor ykrkmonapp ; | |
-- Create Trace File From *evt [run in DB2CMD] | |
-- db2evmon -path d:/tmp > sqltrace.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment