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

时间:2018-03-26 17:42:26

标签: oracle plsql partitioning materialized-views

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

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

感谢您的投入。

此致 地塞米松。

1 个答案:

答案 0 :(得分: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.

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