【问题标题】:How to fast refresh materialized views in Oracle after exchange partition交换分区后如何快速刷新Oracle中的物化视图
【发布时间】:2018-09-04 22:52:05
【问题描述】:

我在一张桌子上创建了一个物化视图。

SRC_TBL ---> MV

快速刷新的物化视图。成功完成。

物化视图和目标表之间是否交换了分区。

MV ---> TGT_TBL

它也成功完成了。交换分区后,当我尝试快速刷新时它正在抛出:

[Error] Execution (58: 1): ORA-32320: REFRESH FAST of "MV" unsupported after container table PMOPs
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2809
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3025
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2994
ORA-06512: at line 1

感谢您的投入。

问候, 敏捷。

【问题讨论】:

    标签: oracle plsql partitioning materialized-views


    【解决方案1】:

    来自消息手册,或

    oerr ora 32320 
    

    命令:

    32320, 00000, "REFRESH FAST of \"%s\".\"%s\" unsupported after container table PMOPs"
    // *Cause:  A Partition Maintenance Operation (PMOP) has been performed on the
    //          materialized view, and no materialized view supports
    //          fast refersh after container table PMOPs.
    // *Action: Use REFRESH COMPLETE.  Note: you can determine why your
    //          materialized view does not support fast refresh after PMOPs using
    //          the DBMS_MVIEW.EXPLAIN_MVIEW() API.
    

    所以基本上,做分区维护后没有快速刷新。

    【讨论】:

      猜你喜欢
      • 2013-12-04
      • 1970-01-01
      • 2015-06-13
      • 2011-10-20
      • 2012-07-18
      • 2017-05-18
      • 2013-06-28
      • 1970-01-01
      • 2010-11-26
      相关资源
      最近更新 更多