If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Help required in creating an event monitor for SQL queries ???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-08, 09:10
basilbc basilbc is offline
Registered User
 
Join Date: Aug 2008
Posts: 3
Question Help required in creating an event monitor for SQL queries ???

Hello,

I have an application that uses DB2 as database running in a remote linux server. I use windows telnet to manage the database via shell for testing purposes.

What is the exact procedure of creating an event monitor for getting the information regarding SQL queries executed by my application on the database ?

Thanks for the help.
Reply With Quote
  #2 (permalink)  
Old 08-31-08, 09:22
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
To be honest, I don't how to do this with an event monitor. If the queries are dynamic SQL instead of embeded static SQL, using a "get snapshot for dynamic SQL ..." is the easiest way to do this. You will need to turn on the statement monitor at the instance level, or turn it on only for that session using "update monitor switches...".

Dynamic SQL would be used for any Java interface or script. Static SQL is used in an SQL stored procedure, function, or triggers, or in a language such as C where the program is compiled and a bind is done on the associated DB2 package.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On