473,465 Members | 1,366 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

db2 reset monitor question

I have a question regarding the db2 reset monitor.
When I issue the command and do a get snapshot I see most of the
counters are reset . How ever the Dynamic SQL snapshot section doesnt
seem to get reset. Is there any way to reset that ?

When do the buffers for the dynamic SQL get updated reset?
Nov 12 '05 #1
6 8165
FLUSH PACKAGE CACHE statement

PM

"Ramachandran Subramanian" <rr****@yahoo.com> a écrit dans le message de
news:c4*************************@posting.google.co m...
I have a question regarding the db2 reset monitor.
When I issue the command and do a get snapshot I see most of the
counters are reset . How ever the Dynamic SQL snapshot section doesnt
seem to get reset. Is there any way to reset that ?

When do the buffers for the dynamic SQL get updated reset?

Nov 12 '05 #2
The FLUSH PACKAGE CACHE statement doesnt seem to work. The only
statement I see is FLUSH EVENT MONITOR . Any further help will be
appreciated.
Ram
Nov 12 '05 #3
Ramachandran Subramanian <rr****@yahoo.com> wrote:
The FLUSH PACKAGE CACHE statement doesnt seem to work. The only
statement I see is FLUSH EVENT MONITOR . Any further help will be
appreciated.


Which version of DB2 are you using on which platform?

In DB2 UDB for LUW, there is a FLUSH PACKAGE CACHE statement. You can find
the documentation for it here (right next to the FLUSH EVENT MONITOR doc):

http://www-3.ibm.com/cgi-bin/db2www/...n=r0007117.htm

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #4
Can you post an example (before & after the reset)? Not all counters in
the dyn sql snapshot are resettable...please also append the output of
'db2level' on your server. Thanks.

Ramachandran Subramanian wrote:
I have a question regarding the db2 reset monitor.
When I issue the command and do a get snapshot I see most of the
counters are reset . How ever the Dynamic SQL snapshot section doesnt
seem to get reset. Is there any way to reset that ?

When do the buffers for the dynamic SQL get updated reset?


Nov 12 '05 #5
/home/db2inst1>db2level
DB21085I Instance "db2inst1" uses DB2 code release "SQL07023" with
level
identifier "03040105" and informational tokens "DB2 v7.1.0.55",
"s011211" and
"U480359".
/home/db2inst1>db2 get snapshot for dynamic sql on prodord|wc -l
16007
/home/db2inst1>db2 reset monitor all
DB20000I The RESET MONITOR command completed successfully.
/home/db2inst1>db2 get snapshot for dynamic sql on prodord|wc -l
16007
/home/db2inst1>
As you can see the Reset monitor did not reset the Dynamic SQL
snapshot. They seem to have the same data before and after the reset.

Ram

Sean McKeough <mc******@nospam.ca.ibm.com> wrote in message news:<bp**********@hanover.torolab.ibm.com>...
Can you post an example (before & after the reset)? Not all counters in
the dyn sql snapshot are resettable...please also append the output of
'db2level' on your server. Thanks.

Ramachandran Subramanian wrote:
I have a question regarding the db2 reset monitor.
When I issue the command and do a get snapshot I see most of the
counters are reset . How ever the Dynamic SQL snapshot section doesnt
seem to get reset. Is there any way to reset that ?

When do the buffers for the dynamic SQL get updated reset?

Nov 12 '05 #6
Counting the number of lines will not show the effect of a reset.
Resetting the monitor data will 0 out some of the counters reported by
the snapshot. It will not flush the dynamic sql package cache. The
snapshot for dynamic sql will always report the contents of the package
cache. Resetting the data will only allow you to see delta work done by
statements over time.

Ramachandran Subramanian wrote:
/home/db2inst1>db2level
DB21085I Instance "db2inst1" uses DB2 code release "SQL07023" with
level
identifier "03040105" and informational tokens "DB2 v7.1.0.55",
"s011211" and
"U480359".
/home/db2inst1>db2 get snapshot for dynamic sql on prodord|wc -l
16007
/home/db2inst1>db2 reset monitor all
DB20000I The RESET MONITOR command completed successfully.
/home/db2inst1>db2 get snapshot for dynamic sql on prodord|wc -l
16007
/home/db2inst1>
As you can see the Reset monitor did not reset the Dynamic SQL
snapshot. They seem to have the same data before and after the reset.

Ram

Sean McKeough <mc******@nospam.ca.ibm.com> wrote in message news:<bp**********@hanover.torolab.ibm.com>...
Can you post an example (before & after the reset)? Not all counters in
the dyn sql snapshot are resettable...please also append the output of
'db2level' on your server. Thanks.

Ramachandran Subramanian wrote:

I have a question regarding the db2 reset monitor.
When I issue the command and do a get snapshot I see most of the
counters are reset . How ever the Dynamic SQL snapshot section doesnt
seem to get reset. Is there any way to reset that ?

When do the buffers for the dynamic SQL get updated reset?


Nov 12 '05 #7

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

Similar topics

2
by: xcb7226 | last post by:
Is it possible to reset monitor global, without turn Off/on monitor switches (an restart of the instance). It seems that reset monitor effects only the shell from where it's performed
2
by: Jack David | last post by:
Using the code below I am able to monitor a single directory for a new file and then kick-off a process to deal with the file. The question is??? How would I modify this code to be able to monitor...
3
by: fournij | last post by:
Hi I'm writing a MFC C++ application using Visual .NET. I'm using a Dual Head video card with 2 monitors. I want to start my application in the first monitor but open a dialog box in the...
2
by: www.brook | last post by:
I have a VC++.net code. Two threads are created, one thread keeps appending elements to the queue, another keeps deleting an element from the queue. I tried to use monitor, but it seems that the...
7
by: Kermit Piper | last post by:
Hello, How can you clear session variables when a reset button is pressed? I thought I might be able to do something like: <% If request.form("Reset") = "Reset" then Session("variable") =...
12
by: Perecli Manole | last post by:
I am having some strange thread synchronization problems that require me to better understand the intricacies of Monitor.Wait/Pulse. I have 3 threads. Thread 1 does a Monitor.Wait in a SyncLock...
2
by: Ian | last post by:
Monitor::Enter and Monitor::Exit must be called in pairs. Is there a way to determine if Monitor::Exit has been called so that it does not get called a second time? The psuedocode below...
2
by: DeveloperX | last post by:
Hi, Below is a hacked up version of an example I found on MSDN. My only change was to add a third thread and some Sleeps. That's where my question(s) comes in. In the original it seems to work...
1
by: db2admin | last post by:
Hello, I am interested in capturing snapshot information using SQL functions or views but i can not reset monitor switches when i use following command. db2 "reset monitor for database...
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
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,...
1
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...
0
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 ...

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.