I am trying to familiarize myself with materialized views. I want to use them for a data warehousing scenario, so only really need them to refresh once a day. However, I have been experimenting with a small amount of data to see how it all works.
The problem I'm having is that if I use the "REFRESH FORCE" clause, it creates the view and transfers the data once... and only once. Even if I specify START WITH and NEXT, it never refreshes again on it's own. However, if I specify REFRESH FAST, I get the error message "ORA-00942: table or view does not exist".
As I said, what I really want in the end is a materialized view that will refresh itself (without me telling it to) once a day, based on either the primary key or the rowid. Any direction would be helpful here, as I'm not quite sure how the REFRESH FAST/FORCE ON DEMAND/COMMIT work in conjunction with the START WITH and NEXT options. I assumed that REFRESH FAST ON COMMIT means that it would constantly update itself as data is committed to the source table, which is not really what I want. However, with FORCE, it seems like you have to manually force it to update. Is there a way to get the "schedule" to work?
Thanks for any advice.
Start Free Trial