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 > Adabas > cpu intensive query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Dec 2012
Posts: 2
cpu intensive query

I can able to get statement text and cpu time of particular query from table function "SNAP_GET_DYN_SQL".

But i can't able to get who is running that particular statement and from which database.

So i used SNAP_GET_STMT table function which gives statment text with agent_id and database_name.

But the problem is always get statment text as null from SNAP_GET_STMT table function.

Anyone know the reason, why i am getting null value in statement text column. I am running this query on db2 v10

And if any alternate way to get cpu intensive query with username ( who is running this query )

Please help me on this.

Thanks and regards
selva
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Jun 2013
Posts: 1
Quote:
Originally Posted by selva1587 View Post
I can able to get statement text and cpu time of particular query from table function "SNAP_GET_DYN_SQL".

But i can't able to get who is running that particular statement and from which database.
I was looking for the same info and I have discovered SNAP_GET_DYN_SQL does not provide that information, unfortunately. Use SNAP_GET_STMT instead.
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