473,766 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Restoring the event monitor file

$db2evmon -db DEV1926 -evm DB2DETAILDEADLO CK was showing data from all
the runs whereas i want the data just for a single run. To capture
fresh events, I deleted the old events file. caveat was, I deleted
this event file while DB2DETAILDEADLO CK was still active (state 1).

now when i Try to run the db2evmon command I get an error like

Cannot open Event Monitor file "/home/db2inst1/db2inst1/NODE0000/
SQL00005/db2event/db2detaildeadlo ck/00000000.evt."

I tried switching back and forth between state 0 and 1 but to no
avail. is there a way out? (apart from deleting the event and creating
it back again)

Thanks

- rajeev

Aug 2 '07 #1
1 6079
Hi ,
Event monitor monitors deadlocks until configured max
files is full , db2evmon will show all the deadlocks since it is
configured to till current or max files have reached

Run " $ db2 " describe table syscat.eventmon itors " " to check to
how many max files your event monitor is configured to then drop
& recreate the event monitor to reflect your environment need

like for example
db2 " DROP EVENT MONITOR DB2DETAILDEADLO CK "
then recreate
db2 " create event monitor db2detaildeadlo ck for deadlocks with
details write to file 'db2detaildeadl ock' maxfiles 20 maxfilesize 512
buffersize 17 blocked append autostart "

regards
sadanjan

rjha94 wrote:
$db2evmon -db DEV1926 -evm DB2DETAILDEADLO CK was showing data from all
the runs whereas i want the data just for a single run. To capture
fresh events, I deleted the old events file. caveat was, I deleted
this event file while DB2DETAILDEADLO CK was still active (state 1).

now when i Try to run the db2evmon command I get an error like

Cannot open Event Monitor file "/home/db2inst1/db2inst1/NODE0000/
SQL00005/db2event/db2detaildeadlo ck/00000000.evt."

I tried switching back and forth between state 0 and 1 but to no
avail. is there a way out? (apart from deleting the event and creating
it back again)

Thanks

- rajeev
Aug 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6714
by: Jian Chen | last post by:
System with DB2 UDB V8.1 occasionally generates an event log file (db2eventlog.000) that resides at the directory of db2diag.log. Can anybody shed some light on what the file is used for, and how to read the content of the file? (I am using DB2 UDB V8.1 ESE on Linux) Thanks
2
2652
by: JS | last post by:
I have v8.1 fix5 using Win2k AS on 7 node logical system. I create event monitor writing to file and turn it on. Using application, I connect to db and navigate from screen to screen, generating reports using select sql. I flush the buffer, turn the event monitor off and format the data with db2evom. But, the output never contains the statement text. But, if I issue sql from the clp, these statements appear in the output. In addition,...
1
4242
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here. From the log it looks like the problem happens when 2 threads insert 1 record each in the same table and then try to aquire a NS (Next Key Share) lock on the record inserterd by the other thread. Thanks Rohit
4
3008
by: yoyo | last post by:
Is there any way in DB2 to get the exact command. I have an event monitor I created for statments, and all the statment values are filled with a question mark. I was using this at another site (different application too) and the values were filled in properly, but here it is not. This is DB2 8.2 (8.1fp6) on AIX 5.3ml02 create event monitor LCACAPTURE for statements write to file '/db2adm/mon' NONBLOCKED REPLACE ON NODE 1 LOCAL
4
4016
by: Peter Lin | last post by:
Dear all; I need to monitor a xml file so that I can update my data in hashtable, but the problem is it will trigger more than one event for a lastwrite action(I trigger this action by add something in the xml file using notepad). Here is my codes about using FilesystemWatcher fileWatcher=new FileSystemWatcher(); fileWatcher.Path=System.Environment.CurrentDirectory; fileWatcher.NotifyFilter=NotifyFilters.LastWrite;
1
2371
by: Robbert van Geldrop | last post by:
Hello, I have a problem restoring Exchange 2000 files. Our software has an interface to ESEBCLI2.dll for online backup and restore features. Everything works fine with Exchange 2003 and also when backing up Exchange 2000, yet restoring Exchange 2000 gives some problems: A Store is restored: * the restore is started.
4
6165
by: Raj | last post by:
Can we create an event monitor for statements in a partitioned environment? CREATE EVENT MONITOR stmt_event FOR STATEMENTS WRITE TO FILE '/home/rajm/event' ON PARTITION 0 GLOBAL DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned:
1
1999
by: Jo | last post by:
Hi. I have a few questions regd event monitoring. Would appreciate some assistance with this. 1. Does the event monitor only insert data into the event monitoring tables once the connection has been disconnected? sometimes when i select from the tables the data does not show current connections, only when i use the FLUSH command the data is updated. so, is my understanding correct? thanks. 2. Can we activate and deactivate the event...
1
3336
by: vijay.db | last post by:
Hi group, Have a problem with event monitor so my db2diag.log is getting filled like any thing.. Running DB2 V8.1 Fixpack 6 in AIX server. Created a event monitor and redirecting it's output to a file..getting error like
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9837
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.