 




<?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: Oracle Materialized Views &#8211; Fast Refresh</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/oracle-materialized-views-fast-refresh/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-materialized-views-fast-refresh/</link>
	<description></description>
	<lastBuildDate>Mon, 20 May 2013 03:56:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: azimfahmi</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-materialized-views-fast-refresh/#comment-36525</link>
		<dc:creator>azimfahmi</dc:creator>
		<pubDate>Tue, 11 May 2004 10:09:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-36525</guid>
		<description><![CDATA[Try creating an updateable materialized view in the same schema.. Use insert, update, delete trigger on the base table to appropriately update the materialized view; in that case you do not want the log on the materialized view.

If this seems an unacceptable solution, you may want to provide a fast refresh time (NEXT) on your CREATE MATERIALIZED VIEW script.. But then you have to be content with the fact that the materialized view data is not real time data and that it lags behind the base table by your specified refresh rate.  

Let me know what you think.

Thanks

Azim]]></description>
		<content:encoded><![CDATA[<p>Try creating an updateable materialized view in the same schema.. Use insert, update, delete trigger on the base table to appropriately update the materialized view; in that case you do not want the log on the materialized view.</p>
<p>If this seems an unacceptable solution, you may want to provide a fast refresh time (NEXT) on your CREATE MATERIALIZED VIEW script.. But then you have to be content with the fact that the materialized view data is not real time data and that it lags behind the base table by your specified refresh rate.  </p>
<p>Let me know what you think.</p>
<p>Thanks</p>
<p>Azim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frankkulash</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/oracle-materialized-views-fast-refresh/#comment-36526</link>
		<dc:creator>frankkulash</dc:creator>
		<pubDate>Tue, 04 May 2004 14:42:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-36526</guid>
		<description><![CDATA[Thanks!  That works in Oracle 9.2, but in 8.1.7 I get &quot;ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view&quot;

Here&#039;s my code:

-- ****************************************

ALTER SESSION	SET query_rewrite_enabled	= TRUE;
ALTER SESSION	SET query_rewrite_integrity	= ENFORCED;

DROP MATERIALIZED VIEW	emp_view;

SELECT	*
FROM	user_sys_privs;

CREATE MATERIALIZED VIEW LOG ON	emp;

CREATE MATERIALIZED VIEW	emp_view
BUILD IMMEDIATE
REFRESH ON COMMIT
ENABLE QUERY REWRITE
AS
SELECT	empno
,	ename
,	deptno
,	mgr
FROM	emp
WHERE	deptno	 10
;
]]></description>
		<content:encoded><![CDATA[<p>Thanks!  That works in Oracle 9.2, but in 8.1.7 I get &#8220;ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view&#8221;</p>
<p>Here&#8217;s my code:</p>
<p>&#8211; ****************************************</p>
<p>ALTER SESSION	SET query_rewrite_enabled	= TRUE;<br />
ALTER SESSION	SET query_rewrite_integrity	= ENFORCED;</p>
<p>DROP MATERIALIZED VIEW	emp_view;</p>
<p>SELECT	*<br />
FROM	user_sys_privs;</p>
<p>CREATE MATERIALIZED VIEW LOG ON	emp;</p>
<p>CREATE MATERIALIZED VIEW	emp_view<br />
BUILD IMMEDIATE<br />
REFRESH ON COMMIT<br />
ENABLE QUERY REWRITE<br />
AS<br />
SELECT	empno<br />
,	ename<br />
,	deptno<br />
,	mgr<br />
FROM	emp<br />
WHERE	deptno	 10<br />
;</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 3/10 queries in 0.030 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 04:34:45 -->