Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Posts
    30

    Unanswered: 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

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    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

    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.

  3. #3
    Join Date
    Nov 2003
    Posts
    30

    Re: SQL log available? (DB2 8.1.4)

    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 ;-))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •