473,403 Members | 2,293 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,403 software developers and data experts.

Snapshot Statement Monitor Decode

Can someone assist in decoding the values returned from the snapshot
statement table function ?

Specifically, I am looking to relate the numerical values of
stmt_operation column to a literal.

db2 "select distinct STMT_OPERATION from
table(snapshot_statement('',-1)) as sn_stmt"

STMT_OPERATION
--------------------
5
9
11

3 record(s) selected.
Thank you.

Aug 4 '06 #1
4 2966
mike_dba wrote:
Can someone assist in decoding the values returned from the snapshot
statement table function ?
The best place I've found to get this information is usually from the
sqlmon.h file, which is located in sqllib/include.
STMT_OPERATION
--------------------
5
9
11
For these particular ones:

#define SQLM_FETCH 5 /* SQL Fetch
*/
#define SQLM_STATIC_ROLLBACK 9 /* SQL Static Rollback
*/
#define SQLM_PREP_COMMIT 11 /* Prepare to commit (2-phase
commit)*/

-Chris

Aug 4 '06 #2
Chris,

Thanks for your response. It looks like you have these in a C header
file. Can this be found somewhere? There are many more possible values
that I would like to decode. The ones I originally noted were just a
sample. Thanks
ChrisC wrote:
mike_dba wrote:
Can someone assist in decoding the values returned from the snapshot
statement table function ?

The best place I've found to get this information is usually from the
sqlmon.h file, which is located in sqllib/include.
STMT_OPERATION
--------------------
5
9
11

For these particular ones:

#define SQLM_FETCH 5 /* SQL Fetch
*/
#define SQLM_STATIC_ROLLBACK 9 /* SQL Static Rollback
*/
#define SQLM_PREP_COMMIT 11 /* Prepare to commit (2-phase
commit)*/

-Chris
Aug 8 '06 #3
Chris,

Thank you for the assist. Much apprecaited.
ChrisC wrote:
mike_dba wrote:
Can someone assist in decoding the values returned from the snapshot
statement table function ?

The best place I've found to get this information is usually from the
sqlmon.h file, which is located in sqllib/include.
STMT_OPERATION
--------------------
5
9
11

For these particular ones:

#define SQLM_FETCH 5 /* SQL Fetch
*/
#define SQLM_STATIC_ROLLBACK 9 /* SQL Static Rollback
*/
#define SQLM_PREP_COMMIT 11 /* Prepare to commit (2-phase
commit)*/

-Chris
Aug 8 '06 #4
mike_dba wrote:
Chris,

Thanks for your response. It looks like you have these in a C header
file. Can this be found somewhere? There are many more possible values
that I would like to decode. The ones I originally noted were just a
sample. Thanks
As I mentioned in my e-mail (I have read-only access to this newsgroup
on weekends) - look in sqlmon.h

Jan M. Nelken
Aug 8 '06 #5

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

Similar topics

8
by: Jean-Marc Blaise | last post by:
Dear all, It seems there is a problem with some snapshot table functions, if you try to divide by some element that is unset or equal to 0. This generates a trap file with the db2fmp.exe...
2
by: hype | last post by:
Hi, 1) If I need to monitor a resource eg, bufferpools at the database level across all users, how can I do this ? If snapshot monitoring needs to be done wouldn't enabling the switch at the DBM...
14
by: Ina Schmitz | last post by:
Hello, I would like to get the logical and physical reads for every sql statement executed. Thatfore, I used the command "db2 get snapshot for dynamic sql on <mydatabase>". There, I could see...
3
by: sethwai | last post by:
Hi, I find the "snapshot for dynamic sql" a great tool for identifying the most frequently executed dynamic sql statements, most cpu used, etc. It is a great help for system tuning. My...
1
by: shenanwei | last post by:
I have db2 v8.2.5 on AIX V5.3 with all the switches on Buffer pool (DFT_MON_BUFPOOL) = ON Lock (DFT_MON_LOCK) = ON Sort ...
4
by: steingold | last post by:
Hi all I'm using DB2 UDB v8.2 on linux. After minimizing the code in order to isolate the problem, I have a simple jdbc client that executes the following SQL statement in loop : SELECT * FROM...
0
by: mike | last post by:
Problem: the snapshot output for dynamic SQL shows some SELECT statements executed many times but all three CPU counters (total/system/user) in the dynamic-sql-snapshot are zero, but most other...
1
by: PaulR | last post by:
Hi all, (DB2 LUW 8.2) I'm just trying to write a little widget to capture lock wait details (when they occur). i.e when a lock-wait occurs, simply record the 2 statements involved in the...
2
by: Yaron Goldstein | last post by:
Hi all. I'm writing a performance analysis utility that uses the snapshot monitor C API to get statistics in the connection level. It seems that the way I use the snapshot monitor is very...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
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,...
0
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...

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.