首页 文章

如何在交换分区后快速刷新Oracle中的物化视图

提问于
浏览
0

我在 table 上创建了一个物化视图 .

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

感谢您的意见 .

此致,Dex .

1 回答

  • 0

    从消息手册,或

    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.
    

    所以基本上,在进行分区维护后没有快速刷新 .

相关问题