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 > Event monitoring

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-04, 14:49
new_user1 new_user1 is offline
Registered User
 
Join Date: Feb 2004
Posts: 18
Event monitoring

Hello List,

My db2 is reporting "Event monitor has reached its file capacity.
ZRC=0x800D002B" in my db2diag.log file. But I havent started any event monitoring.

I was wondering, what is this related to. I'm running 8.1 for Aix.

Any help?
Reply With Quote
  #2 (permalink)  
Old 02-25-04, 15:14
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Event monitoring

Quote:
Originally posted by new_user1
But I havent started any event monitoring.

May be somebody else started it? An event monitor also can be defined to start automatically upon database startup.

Do:

select evmonname, autostart, target from syscat.eventmonitors;

This will give you the list of defined monitors, along with their autostart flag ('Y' means it starts automatically), and directories where their output goes.

You can then check each monitor's status by:

values (event_mon_state('<monitor name, case sensitive>'));

1 means the corresponding monitor is active.

Deactivate it by:

set event monitor <monitor name> state 0;
Reply With Quote
  #3 (permalink)  
Old 02-25-04, 15:31
new_user1 new_user1 is offline
Registered User
 
Join Date: Feb 2004
Posts: 18
Event monitoring

Hello,

Thanks for your answer.

I ran your given statement against the database and see the following event in the system:

db2detaildeadlock event:

I was wondering, If the above is a system required event? If no, can i disable this?


Thanks,
Reply With Quote
  #4 (permalink)  
Old 02-25-04, 15:46
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Event monitoring

Quote:
Originally posted by new_user1
Hello,

Thanks for your answer.

I ran your given statement against the database and see the following event in the system:

db2detaildeadlock event:

I was wondering, If the above is a system required event? If no, can i disable this?


Thanks,
All event monitors are user-defined, so you can drop it if you want. However, deadlock monitor should not have any significant effect on database performance while providing useful data in case you experience occasional deadlocks. If you can ensure that there's enough disk space for its log you should probably leave it running.
Reply With Quote
  #5 (permalink)  
Old 02-25-04, 15:48
new_user1 new_user1 is offline
Registered User
 
Join Date: Feb 2004
Posts: 18
Event monitoring

Thanks for your answer.

How can I drop it? can i run a delete statement against the syscat.eventmonitors table?
Reply With Quote
  #6 (permalink)  
Old 02-25-04, 16:00
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Event monitoring

Quote:
Originally posted by new_user1
can i run a delete statement against the syscat.eventmonitors table?
Yes you can; it will fail however.

Look for the "DROP" statement in the SQL reference manual.
Reply With Quote
  #7 (permalink)  
Old 02-25-04, 16:09
new_user1 new_user1 is offline
Registered User
 
Join Date: Feb 2004
Posts: 18
Event monitoring

db2 => select evmonname, autostart from syscat.eventmonitors

EVMONNAME
AUTOSTART
---------------------------------------------------------------------------
DB2DETAILDEADLOCK Y

db2 => set event monitor db2detaildeadlock state 0

SQL1615W The specified event monitor is already in the requested state. SQLSTATE=01598


I'm trying to disable this event. anytime I run the above statement. It says, Its in the requested (disable) mode. But when i query the eventmonitors view. It says, its in autostart "Y" mode.

Should I assume, the above event is still active based on Autostart mode or there' something i'm not understanding.

Any suggestions?
Reply With Quote
  #8 (permalink)  
Old 02-25-04, 16:29
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Event monitoring

Quote:
Originally posted by new_user1
db2 => select evmonname, autostart from syscat.eventmonitors

EVMONNAME
AUTOSTART
---------------------------------------------------------------------------
DB2DETAILDEADLOCK Y

db2 => set event monitor db2detaildeadlock state 0

SQL1615W The specified event monitor is already in the requested state. SQLSTATE=01598

Autostart flag tells the database manager to activate the monitor at startup. However, since its log file is full (as indicated by the message in db2diag.log) the monitor gets deactivated and when you try to deactivate it manually it is already "in the requested state".
Reply With Quote
  #9 (permalink)  
Old 02-25-04, 16:45
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Event monitoring

Is it possible to alter the evetmonitor from autostart Y to N

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #10 (permalink)  
Old 02-25-04, 16:58
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: Event monitoring

Quote:
Originally posted by sathyaram_s
Is it possible to alter the evetmonitor from autostart Y to N

Sathyaram
I don't think so - you'll have to drop and re-create the monitor
Reply With Quote
  #11 (permalink)  
Old 02-25-04, 17:05
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: Event monitoring

I think this event monitor is created by DB2 itself!!! I have seen this earlier on one of our NT server where I was getting the same message in diag log and upon investigation I found out about the existence of this event monitor with exact same name. Nobody in our shop knows how to do this and at the end I dropped it. It just can't be a co-incident that somebody at new_user's company created the same event monitor with same name explicitly.


dollar


Quote:
Originally posted by n_i
I don't think so - you'll have to drop and re-create the monitor
Reply With Quote
  #12 (permalink)  
Old 02-25-04, 17:24
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Event monitoring

Thanks dollar ..

Just 'discovered' from the manuals that the event monitor is created by default when you create the database ..

And my desktop PE does have one too ..

Cheers

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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