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

How do I know how many times a particular statement was executed UDB V8 on Aix 5

The SNAPSHOT_STATEMENT table function gives the CPU used rows read etc
information. How do I know the total number of time the particular
statement was executed (as in snapshot_dyn_sql's num_executions)?
Also, is the value "STMT_USR_CPU_TIME_S" etc cumulative?

Thanks.
Nov 12 '05 #1
3 1908
Snapshot monitor just give you a snapshot of the statements that are
executing at the time you took the snapshot. To capture all the
executions of statements and figure out the number of times a
statement was executed reliably you need to create and event monitor
on the database. Look at CREATE EVENT MONITOR in sql referebce for
more details.

db*****@yahoo.com wrote in message news:<90**************************@posting.google. com>...
The SNAPSHOT_STATEMENT table function gives the CPU used rows read etc
information. How do I know the total number of time the particular
statement was executed (as in snapshot_dyn_sql's num_executions)?
Also, is the value "STMT_USR_CPU_TIME_S" etc cumulative?

Thanks.

Nov 12 '05 #2
Also on the same topic, is the times such as TOTAL_EXEC_TIME in
SNAPSHOT_DYN_SQL in milli second unit? Where do I find the explantion
for these fields? (I looked at system monitor guide but did not find
much info).

Thanks.

db*****@yahoo.com wrote in message news:<90**************************@posting.google. com>...
The SNAPSHOT_STATEMENT table function gives the CPU used rows read etc
information. How do I know the total number of time the particular
statement was executed (as in snapshot_dyn_sql's num_executions)?
Also, is the value "STMT_USR_CPU_TIME_S" etc cumulative?

Thanks.

Nov 12 '05 #3
I found the information on the system monitor giude for my follow-up
question.
But it confuses on the total_exec_time.

Element identifier:
-------------------
total_exec_time

Element type:
-------------
time

Description:
------------
"The total time in seconds and microseconds that was spent executing a
particular statement in the SQL cache."

The field is a bigint and how does it represent both seconds and
microseconds at the same time?

Thanks.

db*****@yahoo.com wrote in message news:<90**************************@posting.google. com>...
The SNAPSHOT_STATEMENT table function gives the CPU used rows read etc
information. How do I know the total number of time the particular
statement was executed (as in snapshot_dyn_sql's num_executions)?
Also, is the value "STMT_USR_CPU_TIME_S" etc cumulative?

Thanks.

Nov 12 '05 #4

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

Similar topics

5
by: flemming eriksen | last post by:
Dear NG. IIS5 (and II6) , ASP 3.0.; W2k, WS03. A websolution has a login-page, transaction page (just reading data), and logout-page Under heavy load I get in the IIS-Log : Too many...
6
by: Christian | last post by:
HI, I have a function that is used to constrain a query: Select COl1, Col2 From MyTable WHERE col1 = ... AND col2 = ... And MyFunction(col1) = ... My problem is that MyFunction is executed...
3
by: wotan | last post by:
We have an application that accesses a particular table, but it is never updated. Without stepping through the complex application code, is there a method of logging when a particular table is...
3
by: Roy Adams | last post by:
Hello everyone I'm doing a multiple insert from ten text fields. all named color when I submit the from with the text fields it goes to an asp page with the script to do the job and the go to...
14
by: mluvw47 | last post by:
Know the answers to the following? Line Contains 50 char *b, q, *r; 200 b = getbuf (); 201 q = *b; 212 R = anotherfunction (b); 213-2003 /* we want to use 'q' and 'r'...
37
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as...
6
by: sumedh..... | last post by:
main() { int i; fork(); fork(); fork(); printf("----"); } how many times the printf will be executed .
1
by: GS | last post by:
the windows form application works but the eventhandler for binding source postionChanged got executed too many times: 12 times from saveitemclicked for the data navigator many time from additem ...
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...
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
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...
0
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,...
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
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.