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 > How to find out parameter marker/host variable values used in queries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-10, 16:18
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
How to find out parameter marker/host variable values used in queries

I'm aware of the following options:
- CLI trace
- JDBC trace
- db2trc


Is there some other way?
Reply With Quote
  #2 (permalink)  
Old 11-06-10, 17:45
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Event monitor for statements?
Reply With Quote
  #3 (permalink)  
Old 11-06-10, 19:34
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Forgot about event monitor. Thx. I think I've seen some statement event monitors with parameter markers and some with the actual values. I think it depends on the reopt option used? I'll need to take a look at it again.


I also found the following after posting my question:

"When you audit using the EXECUTE category, the statement text for both static and dynamic SQL is recorded, as are input parameter markers and
host variables. You can configure the EXECUTE category to be audited with or without input values."

IBM DB2 9.7 for Linux, UNIX and Windows Information Center


I don't know much about db2audit, but it sounds like this should do it.
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