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 > Recreate event monitors ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-28-10, 01:02
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Recreate event monitors ?

Hello,

Running db2 v9.5 AIX v6.1.
I did redirected restore of our sap db. Db instance owner changed from db2u1 to db2u2. One of post restore tasks is to recreate event monitors which were created under old instance owner name and now throws errors. The goal is to create exactly the same event monitors only using current instance owner (db2u2). This is ouput of "select * from syscat.eventmonitors":
Code:
EVMONNAME         OWNER  OWNERTYPE TARGET_TYPE TARGET                       MAXFILES    MAXFILESIZE BUFFERSIZE  IO_MODE WRITE_MODE AUTOSTART DBPARTITIONNUM MONSCOPE EVMON_ACTIVATES NODENUM DEFINER REMARKS
----------------- ------ -------------------------------------------------- ----------- ----------- ----------- ------- ---------- --------- -------------- -------- --------------- ------- ------- -------
DB2DETAILDEADLOCK DB2U1  U         F           db2detaildeadlock                     20         512        17   B       A          Y                      0 G                      0       0 DB2U1  -
DB6_EDLMON1       DB2U1  U         F           /db2/db2u1/db2event/edlmon1            -        1000         2   B       R          Y                      0 L                      0       0 DB2U1  -
DB6_EDLMON2       DB2U1  U         F           /db2/db2u1/db2event/edlmon2            -        1000         2   B       R          N                      0 L                      0       0 DB2U1  -
  
  3 record(s) selected.
The syntax of "create event monitor" statement is rather complex and I have no idea what parameters to use to construct event monitors exact as they are now.
Any ideas ?

thanks
Vilius
Reply With Quote
  #2 (permalink)  
Old 10-28-10, 01:33
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You need to also look at SYSCAT.EVENTS, and maybe SYSCAT.EVENTTABLES in some cases (if the event monitor is defined to write to a table). All of these catalog views are documented in the SQL Reference Vol 1, Appendix D System Catalog Views.
__________________
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
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