Skip to Main Content

Oracle Database Discussions

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!

materialized view complete refresh on commit

433030Feb 27 2006 — edited Feb 27 2006
Hi,

i'm trying to create a materialized view containing references to pl/sql and sysdate in the where clause:

CREATE MATERIALIZED VIEW
foreg_test
build IMMEDIATE
refresh complete on COMMIT
DISABLE QUERY REWRITE
AS
select
CODE,
VALIDITY,
TX,
TN,
TG,
WW
from
foreg
WHERE timestamp_begin in (sysdate);

I know that with that kind of thing, fast refresh of the view isn't possible. My problem is that I can't force Oracle to do a complete refresh with on commit option :(

I always got this error message: ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view

I've used the package with the table MV_CAPABILITIES_TABLE where the parameter REFRESH_COMPLETE is set to Y if don't use the ON COMMIT option.

Is it possible to use the REFRESH COMPLETE ON COMMIT ?

What' is wrong with my create query ?

Thx !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 27 2006
Added on Feb 27 2006
3 comments
400 views