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 > SQL log available? (DB2 8.1.4)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-04, 09:01
loge loge is offline
Registered User
 
Join Date: Nov 2003
Posts: 30
SQL log available? (DB2 8.1.4)

Hi,

i am searching a logfile where all SQL transactions are stored. To be more specific, i am working on a strange java application written by some other guys and i want to see what kind of SQLs are arriving at the DB2. Where do i have to look for these kind of informations? I allready checked files in SQLLOGDIR but this stuff was not readable.

Thanks.

marc
Reply With Quote
  #2 (permalink)  
Old 01-20-04, 09:07
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: SQL log available? (DB2 8.1.4)

You can use an event monitor ...

or

For dynamic sql, use dynamic sql snapshot (get snapshot for dynamic sql on <dbname>)

For static sql, you can look at the syscat.statements view

HTH

Sathyaram

Quote:
Originally posted by loge
Hi,

i am searching a logfile where all SQL transactions are stored. To be more specific, i am working on a strange java application written by some other guys and i want to see what kind of SQLs are arriving at the DB2. Where do i have to look for these kind of informations? I allready checked files in SQLLOGDIR but this stuff was not readable.

Thanks.

marc
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 01-20-04, 13:35
loge loge is offline
Registered User
 
Join Date: Nov 2003
Posts: 30
Re: SQL log available? (DB2 8.1.4)

Quote:
Originally posted by sathyaram_s
You can use an event monitor ...

or

For dynamic sql, use dynamic sql snapshot (get snapshot for dynamic sql on <dbname>)

For static sql, you can look at the syscat.statements view

HTH

Sathyaram
Thanks.

(man, this guy knows a lot about DB2 ;-))
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