Hi,
I've created a statement monitor with the table option on a
partitioned database. I have the table going to a partition group that
includes all partitions on the database. When I look at the monitor
results table there isn't any stmt_text output. Has anyone encountered
this problem? The monitor definition and table definition as defined
by db2 follows:
create event monitor stmts for statements write to table
stmt(table db2prod.stmt_mo nitor, in ibmdefaultgroup );
CREATE TABLE "DB2PROD "."STMT_MONITOR " (
"PARTITION_ KEY" INTEGER NOT NULL ,
"AGENT_ID" BIGINT NOT NULL ,
"AGENTS_TOP " BIGINT NOT NULL ,
"APPL_ID" CHAR(32) NOT NULL ,
"BLOCKING_CURSO R" SMALLINT NOT NULL ,
"CONSISTENCY_TO KEN" CHAR(8) NOT NULL ,
"CREATOR" VARCHAR(30) NOT NULL ,
"CURSOR_NAM E" VARCHAR(18) NOT NULL ,
"EVMON_FLUS HES" BIGINT NOT NULL ,
"FETCH_COUN T" BIGINT NOT NULL ,
"INT_ROWS_DELET ED" BIGINT NOT NULL ,
"INT_ROWS_INSER TED" BIGINT NOT NULL ,
"INT_ROWS_UPDAT ED" BIGINT NOT NULL ,
"PACKAGE_NA ME" CHAR(8) NOT NULL ,
"PACKAGE_VERSIO N_ID" VARCHAR(64) NOT NULL ,
"PARTIAL_RECORD " SMALLINT NOT NULL ,
"PARTITION_NUMB ER" SMALLINT NOT NULL ,
"POOL_DATA_L_RE ADS" BIGINT NOT NULL ,
"POOL_DATA_P_RE ADS" BIGINT NOT NULL ,
"POOL_INDEX_L_R EADS" BIGINT NOT NULL ,
"POOL_INDEX_P_R EADS" BIGINT NOT NULL ,
"POOL_TEMP_DATA _L_READS" BIGINT NOT NULL ,
"POOL_TEMP_DATA _P_READS" BIGINT NOT NULL ,
"POOL_TEMP_INDE X_L_READS" BIGINT NOT NULL ,
"POOL_TEMP_INDE X_P_READS" BIGINT NOT NULL ,
"ROWS_READ" BIGINT NOT NULL ,
"ROWS_WRITT EN" BIGINT NOT NULL ,
"SECTION_NUMBER " BIGINT NOT NULL ,
"SEQUENCE_N O" CHAR(4) NOT NULL ,
"SORT_OVERFLOWS " BIGINT NOT NULL ,
"SQL_REQ_ID " BIGINT NOT NULL ,
"SQLCABC" INTEGER NOT NULL ,
"SQLCAID" CHAR(8) NOT NULL ,
"SQLCODE" INTEGER NOT NULL ,
"SQLERRD1" INTEGER NOT NULL ,
"SQLERRD2" INTEGER NOT NULL ,
"SQLERRD3" INTEGER NOT NULL ,
"SQLERRD4" INTEGER NOT NULL ,
"SQLERRD5" INTEGER NOT NULL ,
"SQLERRD6" INTEGER NOT NULL ,
"SQLERRM" VARCHAR(72) NOT NULL ,
"SQLERRP" CHAR(8) NOT NULL ,
"SQLSTATE" CHAR(5) NOT NULL ,
"SQLWARN" CHAR(11) NOT NULL ,
"START_TIME " TIMESTAMP NOT NULL ,
"STMT_OPERATION " BIGINT NOT NULL ,
"STMT_TYPE" BIGINT NOT NULL ,
"STOP_TIME" TIMESTAMP NOT NULL ,
"SYSTEM_CPU_TIM E" BIGINT NOT NULL ,
"TOTAL_SORT_TIM E" BIGINT NOT NULL ,
"TOTAL_SORT S" BIGINT NOT NULL ,
"USER_CPU_T IME" BIGINT NOT NULL ,
"STMT_TEXT" CLOB(2097152) LOGGED NOT COMPACT )
PARTITIONING KEY ("PARTITION_KEY ") USING HASHING
IN "IBMDEFAULTGROU P" ;
Lew 0 1631 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David |
last post by:
I have the following SQL which gives me the row Im after
SELECT *
FROM staff, staffemails
WHERE staff.users_username='$user'
and staff.staff_id = staffemails.staff_id
thing is I now want to perform an update on the result of this query. Ive tried
UPDATE staffemails
|
by: dba2adm |
last post by:
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.
|
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,...
|
by: jbaker |
last post by:
I have run an statement event monitor and am digging through the data
it produced. Some of the rows in the stmt table have me perplexed.
These records have a stmt_text that is blank with a stmt_type of 1. I
understand that this means it is a static SQL statement and I can use
the creator, package_name, package_version_id and section_number to
look up the text in the syscat.statements table. In this case though,
these records have no...
|
by: brandon |
last post by:
I've followed the instructions here
(http://groups-beta.google.com/group/comp.databases.ibm-db2/browse_frm/thread/1f69a5fecafba8d8/c35658a24456ad87?tvc=1&q=db2+statement+event+monitor#c35658a24456ad87)
to enable sql tracing w/ DB2 8.1. However, when I view the db2evmon
output, the values in the queries have been replaced by question marks.
For example:
65) Statement Event ...
Appl Handle: 14
Appl Id: GA990C3C.B410.00F1C5212311
Appl...
| |
by: nekiv90 |
last post by:
Greetings,
How can 'rows read' from a DB2 CALL statement incur so many reads? I
would expect it to be zero.
Could someone enlighten me on this? Thanks!
Here is output from executing event monitor on STATEMENTS:
68) Statement Event ...
|
by: Michel Esber |
last post by:
Hello,
DB2 V8 LUW FP 11.
My applications eventually takes a very long time to process simple
insert statements.
Here´s the output of a event monitor:
Text : INSERT INTO MyTable
VALUES('000D60984D9A586AAD001128','2006-09-23-02.25.00',0,103923200,1843939328,298211000,6931647000,1834013105000,128034627001536546,6779,252559,0,33,54219,12803462700153654)
|
by: Bill Nguyen |
last post by:
Is there a way to send output from a .NET app to a selected monitor screen
in a 3-monitor client desktop?
Currently, my app sends output to 3 windows then I have to move/drag each of
them to the proper monitor connected to the desktop.
Thanks
Bill
|
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 lock wait.
However, I am stumped by the fact that the snapshot monitor does not
|
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...
|
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,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |