I’m reading some articles, even some answers here on stack, but i still have some issues. I’ll post my MV code for possible analysis:
CREATE MATERIALIZED VIEW some_materialized_view
REFRESH COMPLETE
START WITH sysdate
NEXT '2011-12-01' + 31
WIDTH PRIMARY KEY
AS my_query
The error is:
00984. 00000 - "column not allowed here"
Am i forgeting something? The only thing i want is that my MV update every month beggining. Can someone help?
Thanks!
There are two syntax errors in your command.
The clause
WIDTH PRIMARY KEYshould beWITH PRIMARY KEY(you have a typo onWITH)The
NEXTclause is using a date literal which requires thedatekeyword:NEXT DATE '2011-12-01' + 31.So the full command should be: