Query Rewrite in Materialised Views (merged) [message #354961] |
Wed, 22 October 2008 01:37 |
hexmanju
Messages: 78 Registered: September 2005 Location: MUMBAI
|
Member |
|
|
Hello All
Here is my Query
create materialized view ROLE PARALLEL 4 BUILD IMMEDIATE REFRESH COMPLETE ENABLE QUERY REWRITE AS select b.rolename , count(distinct a.roleuser) AS PORTAL ,count(distinct b.roleuser) AS HR from psroleuser@hrtoep a, psroleuser b where a.rolename = b.rolename and b.DYNAMIC_SW='Y' group by b.rolename;
Can anyone let me know that is it becuase of the DB link the query is failing to rewrite.IF MV has a DB link is it that a query will not rewrite
Regards
mm
|
|
|
Query Rewrite in Materialised Views [message #354963 is a reply to message #354961] |
Wed, 22 October 2008 01:38 |
hexmanju
Messages: 78 Registered: September 2005 Location: MUMBAI
|
Member |
|
|
Hello All
Here is my Query
create materialized view ROLE PARALLEL 4 BUILD IMMEDIATE REFRESH COMPLETE ENABLE QUERY REWRITE AS select b.rolename , count(distinct a.roleuser) AS PORTAL ,count(distinct b.roleuser) AS HR from psroleuser@hrtoep a, psroleuser b where a.rolename = b.rolename and b.DYNAMIC_SW='Y' group by b.rolename;
Can anyone let me know that is it becuase of the DB link the query is failing to rewrite.IF MV has a DB link is it that a query will not rewrite
Regards
mm
|
|
|
|
|