<?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: Propagating Middle-Tier and Application Users to the DBMS (Part 2 of 3)</title>
	<atom:link href="http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/</link>
	<description>Slavik&#039;s Blog</description>
	<lastBuildDate>Wed, 14 Dec 2011 10:35:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Paul</title>
		<link>http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/comment-page-1/#comment-164</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 11 Sep 2007 13:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/#comment-164</guid>
		<description>I was able to make it work using another method though... If I disregard everything that has to do with action and module, and only care about clientid, I can make it work if I do a PL/SQL call in the advice instead of using the jdbc driver API.

So by changing connection.setEndToEndMetrics to a PL/SQL call: &quot;begin dbms_session.set_identifier(&#039;Slavik&#039;);end;&quot;

This is per suggestion in the article http://www.oracle.com/technology/tech/java/oc4j/pdf/j2ee-cmp-with-vpd.pdf

I have no idea why the jdbc driver API does not work for us, but I guess using the PL/SQL call works just as fine.</description>
		<content:encoded><![CDATA[<p>I was able to make it work using another method though&#8230; If I disregard everything that has to do with action and module, and only care about clientid, I can make it work if I do a PL/SQL call in the advice instead of using the jdbc driver API.</p>
<p>So by changing connection.setEndToEndMetrics to a PL/SQL call: &#8220;begin dbms_session.set_identifier(&#8216;Slavik&#8217;);end;&#8221;</p>
<p>This is per suggestion in the article <a href="http://www.oracle.com/technology/tech/java/oc4j/pdf/j2ee-cmp-with-vpd.pdf" rel="nofollow">http://www.oracle.com/technology/tech/java/oc4j/pdf/j2ee-cmp-with-vpd.pdf</a></p>
<p>I have no idea why the jdbc driver API does not work for us, but I guess using the PL/SQL call works just as fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/comment-page-1/#comment-162</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Tue, 11 Sep 2007 06:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/#comment-162</guid>
		<description>We are using Oracle 9i R2.</description>
		<content:encoded><![CDATA[<p>We are using Oracle 9i R2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slavik</title>
		<link>http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/comment-page-1/#comment-161</link>
		<dc:creator>Slavik</dc:creator>
		<pubDate>Wed, 05 Sep 2007 14:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/#comment-161</guid>
		<description>Hi Paul,

The database requires no special settings (not even for the audit to be enabled). What database version are you running?</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>The database requires no special settings (not even for the audit to be enabled). What database version are you running?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/comment-page-1/#comment-159</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 03 Sep 2007 12:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/#comment-159</guid>
		<description>OK. Excellent.

I have another question for you. We have tried to use your code with our database, but we can  not get it to work. The test runs fine without any exceptions, but the assertions fails. We have tried both set/clearClientIdentifier, and the End-to-end metrics API. Is there any special settings we need to enable on the database side? The only thing we have done is to set audit=DB in ora.ini file.</description>
		<content:encoded><![CDATA[<p>OK. Excellent.</p>
<p>I have another question for you. We have tried to use your code with our database, but we can  not get it to work. The test runs fine without any exceptions, but the assertions fails. We have tried both set/clearClientIdentifier, and the End-to-end metrics API. Is there any special settings we need to enable on the database side? The only thing we have done is to set audit=DB in ora.ini file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slavik</title>
		<link>http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/comment-page-1/#comment-157</link>
		<dc:creator>Slavik</dc:creator>
		<pubDate>Fri, 31 Aug 2007 13:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/#comment-157</guid>
		<description>Hi Paul,

Thanks for the comment. I planned to publish part 3 a while ago but was totally swamped with work and travels. I&#039;ll be publishing part 3 next week after finally freeing some weekend time to finish it.</description>
		<content:encoded><![CDATA[<p>Hi Paul,</p>
<p>Thanks for the comment. I planned to publish part 3 a while ago but was totally swamped with work and travels. I&#8217;ll be publishing part 3 next week after finally freeing some weekend time to finish it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/comment-page-1/#comment-156</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 31 Aug 2007 13:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.slaviks-blog.com/2007/06/10/propagating-middle-tier-and-application-users-to-the-dbms-part-2-of-3/#comment-156</guid>
		<description>Hi.
Excellent article. This is exactly something I have been looking for. Do you know when you will be publishing part 3?</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Excellent article. This is exactly something I have been looking for. Do you know when you will be publishing part 3?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.927 seconds -->

