 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Track SQL Statements run by a specific user through ODBC Connection</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/track-sql-statements-run-by-a-specific-user-through-odbc-connection/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/track-sql-statements-run-by-a-specific-user-through-odbc-connection/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 12:30:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/track-sql-statements-run-by-a-specific-user-through-odbc-connection/#comment-105497</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 31 Mar 2012 00:30:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-105497</guid>
		<description><![CDATA[&lt;i&gt;The ‘Job user’ will not work.&lt;/i&gt;

That&#039;s not entirely true. You can use &#039;Job user&#039;, but the user will usually be QUSER and the results will include everybody running ODBC/JDBC jobs -- and possibly more.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>The ‘Job user’ will not work.</i></p>
<p>That&#8217;s not entirely true. You can use &#8216;Job user&#8217;, but the user will usually be QUSER and the results will include everybody running ODBC/JDBC jobs &#8212; and possibly more.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/track-sql-statements-run-by-a-specific-user-through-odbc-connection/#comment-105484</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 31 Mar 2012 00:22:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-105484</guid>
		<description><![CDATA[&lt;i&gt;...while analysing the output I could not find the SQL Statements which were exeucted by my ID.&lt;/i&gt;

Please clarify. Could not find the statements? ...or could not find a way to see the statements? Were any statements shown at all for you?

Note that for ODBC/JDBC, the monitor must track &#039;Current user&#039;. The &#039;Job user&#039; will not work. Also, any filters may cause statements to be excluded from the list.

&lt;i&gt;I also tried running the below command which creates a dump of the SQL Statements run through a Particular ID. &lt;/i&gt;

That is only used by interactive SQL, the STRSQL command. It&#039;s used just for STRSQL to be able to show you where you left off in previous uses of the command. If you don&#039;t save your session when you exit, the command won&#039;t store anything there.

But the SQL monitor will capture the statements even if you don&#039;t save your STRSQL session.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;while analysing the output I could not find the SQL Statements which were exeucted by my ID.</i></p>
<p>Please clarify. Could not find the statements? &#8230;or could not find a way to see the statements? Were any statements shown at all for you?</p>
<p>Note that for ODBC/JDBC, the monitor must track &#8216;Current user&#8217;. The &#8216;Job user&#8217; will not work. Also, any filters may cause statements to be excluded from the list.</p>
<p><i>I also tried running the below command which creates a dump of the SQL Statements run through a Particular ID. </i></p>
<p>That is only used by interactive SQL, the STRSQL command. It&#8217;s used just for STRSQL to be able to show you where you left off in previous uses of the command. If you don&#8217;t save your session when you exit, the command won&#8217;t store anything there.</p>
<p>But the SQL monitor will capture the statements even if you don&#8217;t save your STRSQL session.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: haaiderali</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/track-sql-statements-run-by-a-specific-user-through-odbc-connection/#comment-105453</link>
		<dc:creator>haaiderali</dc:creator>
		<pubDate>Fri, 30 Mar 2012 10:25:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-105453</guid>
		<description><![CDATA[Tom as suggested I had created a SQL Monitor through iseries Navigator after which SELECT Queries were executed and on completion the monitor was ended. However while analysing the output I could not find the SQL Statements which were exeucted by my ID.

I also tried running the below command which creates a dump of the SQL Statements run through a Particular ID. 

DMPSYSOBJ OBJ(ISQLSTQLIKVIEW*) CONTEXT(QRECOVERY) TYPE(19) SUBTYPE(EE)
Command failed with error as No objects printed because no objects found.]]></description>
		<content:encoded><![CDATA[<p>Tom as suggested I had created a SQL Monitor through iseries Navigator after which SELECT Queries were executed and on completion the monitor was ended. However while analysing the output I could not find the SQL Statements which were exeucted by my ID.</p>
<p>I also tried running the below command which creates a dump of the SQL Statements run through a Particular ID. </p>
<p>DMPSYSOBJ OBJ(ISQLSTQLIKVIEW*) CONTEXT(QRECOVERY) TYPE(19) SUBTYPE(EE)<br />
Command failed with error as No objects printed because no objects found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/track-sql-statements-run-by-a-specific-user-through-odbc-connection/#comment-105436</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 29 Mar 2012 23:48:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-105436</guid>
		<description><![CDATA[Simplest is probably iSeries Navigator, your connection, Databases-&gt; {yourDatabase}-&gt; SQL Performance Monitors. Set up a monitor for the &lt;CurrentUser&gt; filter to match the user id you want to track.

You might create a new library just to hold the collected data. Specify that library for &#039;Schema for data:&#039;. You probably want a &#039;Detailed&#039; collection. Shouldn&#039;t be a need to collect anything but &#039;User&#039; actions, but there&#039;s no way to know from here.

Regardless, set one up for yourself first, just to get a feel for it. After it starts, use Navigator to view the content of a table or two, try &#039;Run SQL scripts&#039; to run a query or two.

Then end the monitor and select it for analysis. Look at what it gives you so you&#039;ll have an idea if it suits your need.

Tom]]></description>
		<content:encoded><![CDATA[<p>Simplest is probably iSeries Navigator, your connection, Databases-&gt; {yourDatabase}-&gt; SQL Performance Monitors. Set up a monitor for the &lt;CurrentUser&gt; filter to match the user id you want to track.</p>
<p>You might create a new library just to hold the collected data. Specify that library for &#8216;Schema for data:&#8217;. You probably want a &#8216;Detailed&#8217; collection. Shouldn&#8217;t be a need to collect anything but &#8216;User&#8217; actions, but there&#8217;s no way to know from here.</p>
<p>Regardless, set one up for yourself first, just to get a feel for it. After it starts, use Navigator to view the content of a table or two, try &#8216;Run SQL scripts&#8217; to run a query or two.</p>
<p>Then end the monitor and select it for analysis. Look at what it gives you so you&#8217;ll have an idea if it suits your need.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdraebel</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/track-sql-statements-run-by-a-specific-user-through-odbc-connection/#comment-105427</link>
		<dc:creator>pdraebel</dc:creator>
		<pubDate>Thu, 29 Mar 2012 14:09:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-105427</guid>
		<description><![CDATA[Have a look at exit point programming. A quick look at WRKREGINF pointed me to exit points QIBM_QZDA_SQL1 and QIBM_QZDA_SQL2.]]></description>
		<content:encoded><![CDATA[<p>Have a look at exit point programming. A quick look at WRKREGINF pointed me to exit points QIBM_QZDA_SQL1 and QIBM_QZDA_SQL2.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.023 seconds using memcached
Object Caching 324/327 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 12:55:17 -->