473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

DB2 Event Monitor puts "?" for all the values

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

update monitor switches using statement on

set event monitor lcacapture state=1

run my application

set event monitor lcacapture state=0

then from command line

db2evmon -path ./mon > montxt/1.txt

And in 1.txt I have things like

Text : INSERT INTO "EV5R14"."VPMPRODUCTCLASS" ("TYPE" , "OID" ,
"DATADOMAIN" , "CPROPERTIES" , "VAGGREGATED" , "CTIMESTAMP" , "CCREATED"
, "CMODIFIED" , "VEXTERNALID" , "VEXPOSED" , "VUSER" , "VORGANIZATION" ,
"VPROJECT0011" , "VHISTOID" , "VPREVIOUS" , "VPREVIOUS$" , "VPREVIOUS#"
, "V508APPDOMAINE" , "V508APPTYPE" , "VID" , "VNAME" , "VDESCRIPTION" ,
"VSTATUS" , "V506GRAPH" , "VLEVEL" , "VPC" , "VPRC" , "LASTUPDATEDATE" ,
"LASTMODIFIERID" , "LOCKTIMESTAMP" , "OWNERSITE" , "LOCKSTATUS" ,
"LOCKUSER") VALUES ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? )
Anyway to capture the actual values here?

Thanks!

Ken
Nov 12 '05 #1
4 2980
yoyo wrote:
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

update monitor switches using statement on

set event monitor lcacapture state=1

run my application

set event monitor lcacapture state=0

then from command line

db2evmon -path ./mon > montxt/1.txt

And in 1.txt I have things like

Text : INSERT INTO "EV5R14"."VPMPRODUCTCLASS" ("TYPE" , "OID" ,
"DATADOMAIN" , "CPROPERTIES" , "VAGGREGATED" , "CTIMESTAMP" , "CCREATED"
, "CMODIFIED" , "VEXTERNALID" , "VEXPOSED" , "VUSER" , "VORGANIZATION" ,
"VPROJECT0011" , "VHISTOID" , "VPREVIOUS" , "VPREVIOUS$" , "VPREVIOUS#"
, "V508APPDOMAINE" , "V508APPTYPE" , "VID" , "VNAME" , "VDESCRIPTION" ,
"VSTATUS" , "V506GRAPH" , "VLEVEL" , "VPC" , "VPRC" , "LASTUPDATEDATE" ,
"LASTMODIFIERID" , "LOCKTIMESTAMP" , "OWNERSITE" , "LOCKSTATUS" ,
"LOCKUSER") VALUES ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? )

The venet monitor logs what the DB2 server received. It may be that your
cleinet (CLI) is stripping out the constants to re-use the package cache.
There is a way via db2trc to capture the statement as well as the bind
variables but it's a tad heavy for my taste.
If you want to intercept a complete workload I'm told the "Rational
Performance Tool" does a good job by intercepting the http-connection.
"Load Runner" is another (3. party) tool that can do the job.

Out of curiousity, may I ask what you are trying to achieve (in the
grand scheme, I mean). Is your purpose load capture, debugging, ... ?

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
Serge Rielau wrote:
yoyo wrote:
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

update monitor switches using statement on

set event monitor lcacapture state=1

run my application

set event monitor lcacapture state=0

then from command line

db2evmon -path ./mon > montxt/1.txt

And in 1.txt I have things like

Text : INSERT INTO "EV5R14"."VPMPRODUCTCLASS" ("TYPE" , "OID" ,
"DATADOMAIN" , "CPROPERTIES" , "VAGGREGATED" , "CTIMESTAMP" ,
"CCREATED" , "CMODIFIED" , "VEXTERNALID" , "VEXPOSED" , "VUSER" ,
"VORGANIZATION" , "VPROJECT0011" , "VHISTOID" , "VPREVIOUS" ,
"VPREVIOUS$" , "VPREVIOUS#" , "V508APPDOMAINE" , "V508APPTYPE" , "VID"
, "VNAME" , "VDESCRIPTION" , "VSTATUS" , "V506GRAPH" , "VLEVEL" ,
"VPC" , "VPRC" , "LASTUPDATEDATE" , "LASTMODIFIERID" , "LOCKTIMESTAMP"
, "OWNERSITE" , "LOCKSTATUS" , "LOCKUSER") VALUES ( ? , ? , ? , ? , ?
, ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )


The venet monitor logs what the DB2 server received. It may be that your
cleinet (CLI) is stripping out the constants to re-use the package cache.
There is a way via db2trc to capture the statement as well as the bind
variables but it's a tad heavy for my taste.
If you want to intercept a complete workload I'm told the "Rational
Performance Tool" does a good job by intercepting the http-connection.
"Load Runner" is another (3. party) tool that can do the job.

Out of curiousity, may I ask what you are trying to achieve (in the
grand scheme, I mean). Is your purpose load capture, debugging, ... ?

Cheers
Serge


I developing a transfer tool from one PLM application to another, and
I'm kinda of reverse engineering the new PLM tool to find out where it's
writing things when you do certain things in the application.
I can of course go retreive the inserted values from the table and fill
in, but that's a little labour intensive, I was hoping to just see the
full statment in the event monitor.
This is just a test database on my machine with me as the only one using
it right now.
Hmmmm..db2trc...I'll check into that one..what do you mean by heavy?

Thanks

Ken
Nov 12 '05 #3
If this is testing only for the moment, you might want to look at the output
of your db2audit command.
Since you can audit in context, it would audit an execute immediate which
would carry the values instead of the ? (or so I think).
This would be useful only if you do not need the values immediately as you
have to stop your auditor and then format the output log to be parsed.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"yoyo" <yo**@ma.com> a écrit dans le message de news:
s4********************@centurytel.net...
Serge Rielau wrote:
yoyo wrote:
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

update monitor switches using statement on

set event monitor lcacapture state=1

run my application

set event monitor lcacapture state=0

then from command line

db2evmon -path ./mon > montxt/1.txt

And in 1.txt I have things like

Text : INSERT INTO "EV5R14"."VPMPRODUCTCLASS" ("TYPE" , "OID" ,
"DATADOMAIN" , "CPROPERTIES" , "VAGGREGATED" , "CTIMESTAMP" , "CCREATED"
, "CMODIFIED" , "VEXTERNALID" , "VEXPOSED" , "VUSER" , "VORGANIZATION" ,
"VPROJECT0011" , "VHISTOID" , "VPREVIOUS" , "VPREVIOUS$" , "VPREVIOUS#"
, "V508APPDOMAINE" , "V508APPTYPE" , "VID" , "VNAME" , "VDESCRIPTION" ,
"VSTATUS" , "V506GRAPH" , "VLEVEL" , "VPC" , "VPRC" , "LASTUPDATEDATE" ,
"LASTMODIFIERID" , "LOCKTIMESTAMP" , "OWNERSITE" , "LOCKSTATUS" ,
"LOCKUSER") VALUES ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? )


The venet monitor logs what the DB2 server received. It may be that your
cleinet (CLI) is stripping out the constants to re-use the package cache.
There is a way via db2trc to capture the statement as well as the bind
variables but it's a tad heavy for my taste.
If you want to intercept a complete workload I'm told the "Rational
Performance Tool" does a good job by intercepting the http-connection.
"Load Runner" is another (3. party) tool that can do the job.

Out of curiousity, may I ask what you are trying to achieve (in the grand
scheme, I mean). Is your purpose load capture, debugging, ... ?

Cheers
Serge


I developing a transfer tool from one PLM application to another, and I'm
kinda of reverse engineering the new PLM tool to find out where it's
writing things when you do certain things in the application.
I can of course go retreive the inserted values from the table and fill
in, but that's a little labour intensive, I was hoping to just see the
full statment in the event monitor.
This is just a test database on my machine with me as the only one using
it right now.
Hmmmm..db2trc...I'll check into that one..what do you mean by heavy?

Thanks

Ken


Nov 12 '05 #4
yoyo wrote:
Hmmmm..db2trc...I'll check into that one..what do you mean by heavy?

db2trc is very verbose. Even including a filter in my experience the
dump still chews up some 20k per statement.
Bounce me an email for more info.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #5

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

Similar topics

11
by: Rohit | last post by:
Hi, Threads in the .NET Framework 1.1 (and possibly in 1.0 also) leak "Event" handles, by Event handles I mean Win32 Event handles which can be monitored using the ProcessExplorer from...
2
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...
2
by: brandon | last post by:
I've followed the instructions here...
0
by: Frank 'Olorin' Rizzi | last post by:
Hello everyone. This is quite convoluted, but I'll try to make it simple. I have a couple of bottom-line questions (I guess): 1~ what happens between the Page_Load routine in the code behind...
4
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 ...
1
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...
0
by: bughunter | last post by:
Local server C:\TRACE>db2level DB21085I Instance "DB2" uses "32" bits and DB2 code release "SQL08024" with level identifier "03050106". Informational tokens are "DB2 v8.1.11.973", "s060120",...
1
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...
9
by: anon.asdf | last post by:
In terms of efficieny: Is it better to use multiple putchar()'s after one another as one gets to new char's OR is it better to collect the characters to a char-array first, and then use...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.