If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how can i get current state of event monitor "conn_events"??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-03-09, 21:49
xiaomage79 xiaomage79 is offline
Registered User
 
Join Date: May 2009
Posts: 9
how can i get current state of event monitor "conn_events"??

db2 => set event monitor conn_events state 1

after that ,how can i get current state of event monitor "conn_events"??
Reply With Quote
  #2 (permalink)  
Old 06-04-09, 03:19
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Check out the syscat.xxxxxxxx views of the catalog and look for one that has event monitor information. They are documented in the Appendix of the SQL Reference Vol 1.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-04-09, 08:49
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Try "values event_mon_state('CONN_EVENTS')"
Reply With Quote
  #4 (permalink)  
Old 06-30-09, 10:00
coolwinds coolwinds is offline
Registered User
 
Join Date: Apr 2007
Posts: 6
Quote:
select event_mon_state('conn_events') from sysibm.sysdummy1
Quote:
select evmonname, EVENT_MON_STATE(conn_events) as state from syscat.eventmonitors
----------------
Eric Xu (许 昌)

Last edited by coolwinds; 06-30-09 at 10:04.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On