<?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: Pop-quiz: VPD policy that depends on a table with a policy&#8230;</title>
	<atom:link href="http://technology.amis.nl/2005/09/26/pop-quiz-vpd-policy-that-depends-on-a-table-with-a-policy/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2005/09/26/pop-quiz-vpd-policy-that-depends-on-a-table-with-a-policy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pop-quiz-vpd-policy-that-depends-on-a-table-with-a-policy</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Lucas</title>
		<link>http://technology.amis.nl/2005/09/26/pop-quiz-vpd-policy-that-depends-on-a-table-with-a-policy/#comment-2466</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Wed, 28 Sep 2005 07:48:46 +0000</pubDate>
		<guid isPermaLink="false">/?p=812#comment-2466</guid>
		<description><![CDATA[En wat als de policy function refereeert naar de tabel zelf? Bijvoorbeeld: User mag alleen maar medewerkers zien die  onder een Manager vallen die de User mag zien? Zoiets als:
&lt;pre&gt;
create or replace
function get_emp_predicate
( p_schema_name  in   varchar2
, p_table_name   in   varchar2
) return varchar2
is
begin
   if user = &#039;SCOTT&#039;
   then
    return &#039;ENAME = &#039;&#039;BLAKE&#039;&#039; or exists ( select 1 from emp e where e.empno = emp.mgr)&#039;;
   else if user = &#039;UP&#039;
        then
          return &#039;DEPTNO=10 or exists ( select 1 from emp e where e.empno = emp.mgr)&#039;;
        end if;
   else
          return &#039;JOB=&#039;&#039;SALESMAN&#039;&#039; or exists ( select 1 from emp e where e.empno = emp.mgr)&#039;;
   end if;
end;
&lt;/pre&gt;
Which predicate is applied in the subquery? Is this a recursive nightmare?]]></description>
		<content:encoded><![CDATA[<p>En wat als de policy function refereeert naar de tabel zelf? Bijvoorbeeld: User mag alleen maar medewerkers zien die  onder een Manager vallen die de User mag zien? Zoiets als:</p>
<pre class="wp-code-highlight prettyprint">
create or replace
function get_emp_predicate
( p_schema_name  in   varchar2
, p_table_name   in   varchar2
) return varchar2
is
begin
   if user = &#039;SCOTT&#039;
   then
    return &#039;ENAME = &#039;&#039;BLAKE&#039;&#039; or exists ( select 1 from emp e where e.empno = emp.mgr)&#039;;
   else if user = &#039;UP&#039;
        then
          return &#039;DEPTNO=10 or exists ( select 1 from emp e where e.empno = emp.mgr)&#039;;
        end if;
   else
          return &#039;JOB=&#039;&#039;SALESMAN&#039;&#039; or exists ( select 1 from emp e where e.empno = emp.mgr)&#039;;
   end if;
end;
</pre>
<p>Which predicate is applied in the subquery? Is this a recursive nightmare?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wilfred</title>
		<link>http://technology.amis.nl/2005/09/26/pop-quiz-vpd-policy-that-depends-on-a-table-with-a-policy/#comment-2465</link>
		<dc:creator>Wilfred</dc:creator>
		<pubDate>Tue, 27 Sep 2005 08:51:27 +0000</pubDate>
		<guid isPermaLink="false">/?p=812#comment-2465</guid>
		<description><![CDATA[We have the exact same policies implemented with a EXISTS clause. The only downside to it is the performance hit. Do you have any idea what happens if you have a 10+ table query in a report and all these tables get an EXISTS clause added in the predicate that refer to some central table.

We&#039;re still struggling with it. So yes, it does work but do consider the performance hit!]]></description>
		<content:encoded><![CDATA[<p>We have the exact same policies implemented with a EXISTS clause. The only downside to it is the performance hit. Do you have any idea what happens if you have a 10+ table query in a report and all these tables get an EXISTS clause added in the predicate that refer to some central table.</p>
<p>We&#8217;re still struggling with it. So yes, it does work but do consider the performance hit!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas</title>
		<link>http://technology.amis.nl/2005/09/26/pop-quiz-vpd-policy-that-depends-on-a-table-with-a-policy/#comment-2464</link>
		<dc:creator>Lucas</dc:creator>
		<pubDate>Tue, 27 Sep 2005 04:01:32 +0000</pubDate>
		<guid isPermaLink="false">/?p=812#comment-2464</guid>
		<description><![CDATA[Rob, You are most welcome. Good to see that this post actually serves a purpose! All the best.]]></description>
		<content:encoded><![CDATA[<p>Rob, You are most welcome. Good to see that this post actually serves a purpose! All the best.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Gauf</title>
		<link>http://technology.amis.nl/2005/09/26/pop-quiz-vpd-policy-that-depends-on-a-table-with-a-policy/#comment-2463</link>
		<dc:creator>Robert Gauf</dc:creator>
		<pubDate>Tue, 27 Sep 2005 02:54:52 +0000</pubDate>
		<guid isPermaLink="false">/?p=812#comment-2463</guid>
		<description><![CDATA[What a timely blog entry.  I just spent a half hour this afternoon trying to explain to a client how VPD policies could work to restrict access to their reporting database content (a DW-like info melange).  This gives me a great example for them to see how detail data access (i.e. Emp) and corresponding reference data restrictions (i.e. Dept) can combine, without building intensely ugly VPD policies on the detail.    Slick!!  Thanks!]]></description>
		<content:encoded><![CDATA[<p>What a timely blog entry.  I just spent a half hour this afternoon trying to explain to a client how VPD policies could work to restrict access to their reporting database content (a DW-like info melange).  This gives me a great example for them to see how detail data access (i.e. Emp) and corresponding reference data restrictions (i.e. Dept) can combine, without building intensely ugly VPD policies on the detail.    Slick!!  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
