<?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: Dangers of Oracle Virtual Columns</title>
	<atom:link href="http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/feed/" rel="self" type="application/rss+xml" />
	<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/</link>
	<description>Or maybe not</description>
	<lastBuildDate>Wed, 16 May 2012 06:40:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Matt McPeak</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-461</link>
		<dc:creator>Matt McPeak</dc:creator>
		<pubDate>Mon, 30 Apr 2012 19:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-461</guid>
		<description>What does this query return on your system?

select * from dba_sys_privs
where grantee = &#039;JOXEAN&#039;
order by 2</description>
		<content:encoded><![CDATA[<p>What does this query return on your system?</p>
<p>select * from dba_sys_privs<br />
where grantee = &#8216;JOXEAN&#8217;<br />
order by 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt McPeak</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-460</link>
		<dc:creator>Matt McPeak</dc:creator>
		<pubDate>Mon, 30 Apr 2012 19:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-460</guid>
		<description>No, my test was flawed..  In fact, I cannot use this method to do anything I shouldn&#039;t be able to do.  I cannot, for example, even insert into a table owned by the querying user.

When the privileged user selects the virtual column, SYS_CONTEXT(&#039;USERENV&#039;,&#039;CURRENT_USER&#039;) is the table owner, not the privileged user.  It behaves just like an invoker&#039;s rights function invoked via a view, in that respect.

I&#039;m on 11.2.0.1.</description>
		<content:encoded><![CDATA[<p>No, my test was flawed..  In fact, I cannot use this method to do anything I shouldn&#8217;t be able to do.  I cannot, for example, even insert into a table owned by the querying user.</p>
<p>When the privileged user selects the virtual column, SYS_CONTEXT(&#8216;USERENV&#8217;,'CURRENT_USER&#8217;) is the table owner, not the privileged user.  It behaves just like an invoker&#8217;s rights function invoked via a view, in that respect.</p>
<p>I&#8217;m on 11.2.0.1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joxean</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-459</link>
		<dc:creator>joxean</dc:creator>
		<pubDate>Mon, 30 Apr 2012 17:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-459</guid>
		<description>@Galen

AskTom is correct: it isn&#039;t that different to selecting data from a view. But, I had to try to find if privileges where not correctly handled for virtual columns.

@Matt

Interesting... Are you sure it works for you? I mean, do you scalate privileges by running DBMS_STATS.GATHER_STATS or the like? If your answer is yes, well, we have a new 0day :)</description>
		<content:encoded><![CDATA[<p>@Galen</p>
<p>AskTom is correct: it isn&#8217;t that different to selecting data from a view. But, I had to try to find if privileges where not correctly handled for virtual columns.</p>
<p>@Matt</p>
<p>Interesting&#8230; Are you sure it works for you? I mean, do you scalate privileges by running DBMS_STATS.GATHER_STATS or the like? If your answer is yes, well, we have a new 0day <img src='http://joxeankoret.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt McPeak</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-458</link>
		<dc:creator>Matt McPeak</dc:creator>
		<pubDate>Mon, 30 Apr 2012 17:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-458</guid>
		<description>Actually, seems to work either way on my system -- as long as there is data in the table.</description>
		<content:encoded><![CDATA[<p>Actually, seems to work either way on my system &#8212; as long as there is data in the table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt McPeak</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-457</link>
		<dc:creator>Matt McPeak</dc:creator>
		<pubDate>Mon, 30 Apr 2012 17:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-457</guid>
		<description>Gathering stats didn&#039;t set off your logic bomb because the function is deterministic and you passed in a constant parameter.  If you had used 

CREATE TABLE t2
(
  col1 VARCHAR2(50),
  col2 generated always AS (f1(col1)) virtual
);

instead, I believe it would have worked.</description>
		<content:encoded><![CDATA[<p>Gathering stats didn&#8217;t set off your logic bomb because the function is deterministic and you passed in a constant parameter.  If you had used </p>
<p>CREATE TABLE t2<br />
(<br />
  col1 VARCHAR2(50),<br />
  col2 generated always AS (f1(col1)) virtual<br />
);</p>
<p>instead, I believe it would have worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Galen Boyer</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-456</link>
		<dc:creator>Galen Boyer</dc:creator>
		<pubDate>Mon, 30 Apr 2012 17:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-456</guid>
		<description>Hi Joxean,

This blog post was referenced by a reader on Tom Kyte&#039;s site.  In the following URL, you will find the URL to this blog asked by a reader.  The reader pasted this blogs URL in and asked Tom&#039;s opinion on what you wrote here, http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:676611400346196844

Tom Kyte answered that question about this blog.  Maybe you would want to join in the conversation by replying on that AskTom URL?</description>
		<content:encoded><![CDATA[<p>Hi Joxean,</p>
<p>This blog post was referenced by a reader on Tom Kyte&#8217;s site.  In the following URL, you will find the URL to this blog asked by a reader.  The reader pasted this blogs URL in and asked Tom&#8217;s opinion on what you wrote here, <a href="http://asktom.oracle.com/pls/apex/f?p=100:11:0" rel="nofollow">http://asktom.oracle.com/pls/apex/f?p=100:11:0</a>::::P11_QUESTION_ID:676611400346196844</p>
<p>Tom Kyte answered that question about this blog.  Maybe you would want to join in the conversation by replying on that AskTom URL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joxean</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-454</link>
		<dc:creator>joxean</dc:creator>
		<pubDate>Sun, 29 Apr 2012 10:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-454</guid>
		<description>In the tests I did, it didn&#039;t worked, unfortunately :( However, I think that it should work for exports and other ways.</description>
		<content:encoded><![CDATA[<p>In the tests I did, it didn&#8217;t worked, unfortunately <img src='http://joxeankoret.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  However, I think that it should work for exports and other ways.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-453</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 29 Apr 2012 07:41:37 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-453</guid>
		<description>Very interesting and cool to know this, thanks. 

I&#039;m just thinking whether the stats collection job would perform a select against the table so you might not even need a DBA to manually select it? 

Just theorizing if the stats collection doesn&#039;t ignore virtual columns.</description>
		<content:encoded><![CDATA[<p>Very interesting and cool to know this, thanks. </p>
<p>I&#8217;m just thinking whether the stats collection job would perform a select against the table so you might not even need a DBA to manually select it? </p>
<p>Just theorizing if the stats collection doesn&#8217;t ignore virtual columns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 9 Interesting Things You May Have Missed This Week &#187; Eddie Awad&#039;s Blog</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-452</link>
		<dc:creator>9 Interesting Things You May Have Missed This Week &#187; Eddie Awad&#039;s Blog</dc:creator>
		<pubDate>Sun, 29 Apr 2012 06:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-452</guid>
		<description>[...] Dangers of Oracle Virtual Columns [...]</description>
		<content:encoded><![CDATA[<p>[...] Dangers of Oracle Virtual Columns [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Dangers of Oracle Virtual Columns « Unintended Results -- Topsy.com</title>
		<link>http://joxeankoret.com/blog/2010/05/14/dangers-of-oracle-virtual-columns/comment-page-1/#comment-343</link>
		<dc:creator>Tweets that mention Dangers of Oracle Virtual Columns « Unintended Results -- Topsy.com</dc:creator>
		<pubDate>Fri, 14 May 2010 23:01:35 +0000</pubDate>
		<guid isPermaLink="false">http://joxeankoret.com/blog/?p=144#comment-343</guid>
		<description>[...] This post was mentioned on Twitter by Joxean Koret. Joxean Koret said: New post: Dangers of Oracle 11g Virtual Columns. http://u.nu/99uu9 #oracle [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Joxean Koret. Joxean Koret said: New post: Dangers of Oracle 11g Virtual Columns. <a href="http://u.nu/99uu9" rel="nofollow">http://u.nu/99uu9</a> #oracle [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

