<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Small Read Consistency Oddity</title>
	<atom:link href="http://marogel.wordpress.com/2012/01/20/small-read-consistency-oddity/feed/" rel="self" type="application/rss+xml" />
	<link>http://marogel.wordpress.com/2012/01/20/small-read-consistency-oddity/</link>
	<description></description>
	<lastBuildDate>Tue, 30 Apr 2013 13:06:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Matthias Rogel</title>
		<link>http://marogel.wordpress.com/2012/01/20/small-read-consistency-oddity/#comment-74</link>
		<dc:creator><![CDATA[Matthias Rogel]]></dc:creator>
		<pubDate>Tue, 24 Jan 2012 14:51:27 +0000</pubDate>
		<guid isPermaLink="false">http://marogel.wordpress.com/?p=227#comment-74</guid>
		<description><![CDATA[Radoslav,

&quot;...I think that read consistency is not ensured for queries on data dictionary and dynamic views.. ...&quot;

Chapter 6 &quot;Data Dictionary and Dynamic Performance Views&quot; of Oracle® Database Concepts 11g Release 2 (11.2), 
see
http://docs.oracle.com/cd/E11882_01/server.112/e25789/datadict.htm
says
&quot;... Dynamic performance views are based on virtual tables built from database memory structures. Thus, they are not conventional tables stored in the database. Read consistency is not guaranteed for the views because the data is updated dynamically. &quot;

Hence, I expect the data dictionary to respect read consistency.


The difference does not depend on the execution plan:
SQL&gt; select
  2  (select count(*) from user_tables) cot,
  3  (select count(*) from user_objects where object_type=&#039;TABLE&#039;) coo
  4  from dual;

       COT        COO
---------- ----------
         0          0

SQL&gt; create table t
  2  as
  3  select
  4  (select count(*) from user_tables) cot,
  5  (select count(*) from user_objects where object_type=&#039;TABLE&#039;) coo
  6  from dual;

Table created.

SQL&gt; select * from t;

       COT        COO
---------- ----------
         0          1]]></description>
		<content:encoded><![CDATA[<p>Radoslav,</p>
<p>&#8220;&#8230;I think that read consistency is not ensured for queries on data dictionary and dynamic views.. &#8230;&#8221;</p>
<p>Chapter 6 &#8220;Data Dictionary and Dynamic Performance Views&#8221; of Oracle® Database Concepts 11g Release 2 (11.2),<br />
see<br />
<a href="http://docs.oracle.com/cd/E11882_01/server.112/e25789/datadict.htm" rel="nofollow">http://docs.oracle.com/cd/E11882_01/server.112/e25789/datadict.htm</a><br />
says<br />
&#8220;&#8230; Dynamic performance views are based on virtual tables built from database memory structures. Thus, they are not conventional tables stored in the database. Read consistency is not guaranteed for the views because the data is updated dynamically. &#8221;</p>
<p>Hence, I expect the data dictionary to respect read consistency.</p>
<p>The difference does not depend on the execution plan:<br />
SQL&gt; select<br />
  2  (select count(*) from user_tables) cot,<br />
  3  (select count(*) from user_objects where object_type=&#8217;TABLE&#8217;) coo<br />
  4  from dual;</p>
<p>       COT        COO<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
         0          0</p>
<p>SQL&gt; create table t<br />
  2  as<br />
  3  select<br />
  4  (select count(*) from user_tables) cot,<br />
  5  (select count(*) from user_objects where object_type=&#8217;TABLE&#8217;) coo<br />
  6  from dual;</p>
<p>Table created.</p>
<p>SQL&gt; select * from t;</p>
<p>       COT        COO<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
         0          1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radoslav Golian</title>
		<link>http://marogel.wordpress.com/2012/01/20/small-read-consistency-oddity/#comment-72</link>
		<dc:creator><![CDATA[Radoslav Golian]]></dc:creator>
		<pubDate>Mon, 23 Jan 2012 09:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://marogel.wordpress.com/?p=227#comment-72</guid>
		<description><![CDATA[I think that read consistency is not ensured for queries on data dictionary and dynamic views..
Very interesting example. I wondered why the results are different for those 2 queries, so I looked at the plans and they are different. Execution plan of the second query contains additional union all operation (on sum$ table).  It would be interesting to trace that sessions.]]></description>
		<content:encoded><![CDATA[<p>I think that read consistency is not ensured for queries on data dictionary and dynamic views..<br />
Very interesting example. I wondered why the results are different for those 2 queries, so I looked at the plans and they are different. Execution plan of the second query contains additional union all operation (on sum$ table).  It would be interesting to trace that sessions.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
