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 > Capturing SQL for analysis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-04, 02:16
blom0344 blom0344 is offline
Registered User
 
Join Date: Jan 2003
Location: Zutphen,Netherlands
Posts: 256
Capturing SQL for analysis

I am very curious if and how it could 'capture' the SQL statements fired at my datamarts over a period of time.

Using snapshot statements allows me to see them when they are executing, but how to store them for analysis?

We are talking version 7.1. Workgroup edition here running on Windows NT
__________________
Ties Blom
Senior Application Developer BI
Getronics Healthcare
DB2,ORACLE,Powercenter,BusObj,Access,
SQL, SQL server
Reply With Quote
  #2 (permalink)  
Old 03-29-04, 02:52
RKrick RKrick is offline
Registered User
 
Join Date: Feb 2002
Location: Germany
Posts: 141
Re: Capturing SQL for analysis

Why don't you use an event monitor?
Give a look at www.db2click.com, "Tip of the month".
__________________
Rodney Krick
Reply With Quote
  #3 (permalink)  
Old 03-29-04, 05:22
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Capturing SQL for analysis

There will be yet another tip on event monitors using pipes in the next couple of days time ..

Cheers
Sathyaram

Quote:
Originally posted by RKrick
Why don't you use an event monitor?
Give a look at www.db2click.com, "Tip of the month".
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 03-30-04, 03:43
blom0344 blom0344 is offline
Registered User
 
Join Date: Jan 2003
Location: Zutphen,Netherlands
Posts: 256
Re: Capturing SQL for analysis

Quote:
Originally posted by RKrick
Why don't you use an event monitor?
Give a look at www.db2click.com, "Tip of the month".
Okay, in database manager configuration parameters DFT_MON_STMT is switched to 'on'.

Can I (how?) collect information on SQL statements fired at the specific database with DB2 version 7, or is all of this just possible with version 8?
__________________
Ties Blom
Senior Application Developer BI
Getronics Healthcare
DB2,ORACLE,Powercenter,BusObj,Access,
SQL, SQL server
Reply With Quote
  #5 (permalink)  
Old 03-30-04, 06:10
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Capturing SQL for analysis

For event monitors to work, you do not have to switch on the monitor switch ....

Event monitoring is available on V7 also ....

On V8 there has been enhancements to event monitor, like writing the monitor records into a table .... IMHO, this is a perfromance killer when used in OLTP (many short transactions) ... DSS(few long transactions) workload will not make much difference ..

Cheers
Sathyaram

Quote:
Originally posted by blom0344
Okay, in database manager configuration parameters DFT_MON_STMT is switched to 'on'.

Can I (how?) collect information on SQL statements fired at the specific database with DB2 version 7, or is all of this just possible with version 8?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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