Skip to Main Content

Database Software

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 views showing with status NEEDS_COMPILE after refresh

SPowell42May 4 2007 — edited May 7 2007
Hi,

we have a process flow that loads a fact table, and then kicks off a refresh of the materialized view that depends on it. We're using partition change tracking, so we call the update using:

dbms_mview.refresh('mv_name', 'P');

About 50% of the time, this works fine. However, after the other 50%, we end up with the MV not being available for query rewrite, and when I do a "select * from user_mviews" - I can see the "staleness" column says NEEDS_COMPILE.

Does anyone have any ideas why this is occurring?

Thanks,
Scott
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2007
Added on May 4 2007
2 comments
1,283 views