Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-32314: REFRESH FAST unsupported after update/delete

520501Dec 11 2006 — edited Dec 11 2006
My mat view is:
CREATE MATERIALIZED VIEW sal_dept_mv
NOLOGGING
PARALLEL
BUILD IMMEDIATE
REFRESH FAST ON DEMAND
ENABLE QUERY REWRITE
AS
SELECT e.job, e.deptno, sum(e.sal)
FROM emp e,
dept d
WHERE e.deptno=d.deptno
GROUP BY e.job, e.deptno;

Works fine if i have only inserts. Gives the about error when there are updates and i need do a complete refresh.

If i change the code from REFRESH FAST ON DEMAND to REFRESH FAST ON COMMIT (without changing anything else) I can see the latest data in my MAT View even for updates and deletes.

Is it doing a complete refresh automatically on commit in case of updates/inserts???

Thanks,
Dushyant
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2007
Added on Dec 11 2006
1 comment
813 views