Is it possible to partially refresh a materialized view in Oracle?

前端 未结 4 1310
梦如初夏
梦如初夏 2021-01-11 15:44

I have a very complex Oracle view based on other materialized views, regular views as well as some tables (I can\'t \"fast refresh\" it). Most of the time, existing records

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-11 16:03

    After more reading and judging by the lack of answers to this question, I come come to the conclusion that it is not possible to refresh a single partition of a materialized view.

    If you can give a syntax example that proves otherwise, I will happily mark your answer the accepted one.

    To others who might find this questions useful in the future: you might also want to know that in Oracle 10g, refreshing a partition (or any mview) will cause Oracle to issue DELETE, followed by INSERT.

    If this is giving you performance problems (like me), there is an option to use atomic_refresh => false, which will TRUNCATE, then INSERT /*+APPEND*/.

提交回复
热议问题