简体   繁体   English

更新oracle 11g中的物化视图

[英]Update materialized view in oracle 11g

I want to update materialized view every 5 min such that it does a delta update not a full update. 我想每5分钟更新一次物化视图,以便进行增量更新而不是完整更新。 Can i use last modified date, and just update data that has been updated? 我可以使用上次修改日期,只更新已更新的数据吗? my question is: 我的问题是:

1) how to do update every 5 minute? 1)如何每5分钟更新一次?

2) how to do just a delta import(update) so that it only updates the modified stuff and not go into the whole database. 2)如何只进行增量导入(更新),以便它只更新修改后的内容而不进入整个数据库。

Thanks. 谢谢。

What you're looking for here is a scheduled fast refresh, which requires a materialised view log on the master tables and which is subject to certain conditions (described in the documentation ). 您在这里寻找的是计划的快速刷新,它需要在主表上进行物化视图登录,并且受某些条件的限制(在文档中描述)。

Whether your MV is suitable for this or not depends on the query that defines it. 您的MV是否适合此取决于定义它的查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM