可更新物化视图复制站点
来源:互联网 发布:淘宝卖的魔兽世界宏 编辑:程序博客网 时间:2024/05/16 17:19
可更新物化视图说明
1.可更新的物化视图必须属于一个物化视图组。
2.可更新的物化视图总是基于单表,尽管能够在子查询中引用多个表。
3.可更新的物化视图能够快速刷新。
4.oracle将可更新MV的改变传播到远程主表或主物化视图,远程主表的改变同样会传播到所有的复制站点。
5.当创建可更新的物化视图时,不要使用列别名(column aliases),否则使用CREATE_MVIEW_REPOBJECT过程将物化视图添加到物化视图组时会导致错误。
6.可更新的物化视图不会自动使用主表或主物化视图列默认值。
可更新物化视图带来的益处
1.即使从主站点或主物化视图站点断开,用户也能够查询和更新本地站点已复制的数据集(data set)。
2.相对于多主站点的复制,要求更少的资源,却仍然支持数据的更新操作。
3.相对于多主站点的复制,降低了网络资源的压力,因为物化视图可以按需求进行刷新(refreshed on demand),而多主站点复制以定期的间隔(regular intervals)来传播改变。
注意点:
Before you build materialized view environments, you must set up your master site, create a master group, and set up your intended materialized view sites. Also, if conflicts are possible at the master site due to activity at the materialized view sites you are creating, then configure conflict resolution for the master tables of the materialized views before you create the materialized view group.
1.Setting Up Master Sites
2.Setting Up Materialized View Sites
3.Create a Master Group
4.Create Materialized View Group
具体的操作步骤可以参考:
Advanced Replication Management API Reference
主组(master group)复制过程与静默过程
SUSPEND_MASTER_ACTIVITY Procedure
This procedure suspends replication activity for a master group. You use this procedure toquiesce the master group. You must call this procedure from the master definition site.
DBMS_REPCAT.SUSPEND_MASTER_ACTIVITY (
gname IN VARCHAR2);
RESUME_MASTER_ACTIVITY Procedure
This procedure resumes normal replication activity after quiescing a replication environment.
DBMS_REPCAT.RESUME_MASTER_ACTIVITY (
gname IN VARCHAR2,
override IN BOOLEAN := false);
参考:
Overview of Updatable Materialized Views
http://docs.oracle.com/cd/B19306_01/server.102/b14226/repoverview.htm#sthref53
Updatable Materialized Views
1.可更新的物化视图必须属于一个物化视图组。
2.可更新的物化视图总是基于单表,尽管能够在子查询中引用多个表。
3.可更新的物化视图能够快速刷新。
4.oracle将可更新MV的改变传播到远程主表或主物化视图,远程主表的改变同样会传播到所有的复制站点。
5.当创建可更新的物化视图时,不要使用列别名(column aliases),否则使用CREATE_MVIEW_REPOBJECT过程将物化视图添加到物化视图组时会导致错误。
6.可更新的物化视图不会自动使用主表或主物化视图列默认值。
可更新物化视图带来的益处
1.即使从主站点或主物化视图站点断开,用户也能够查询和更新本地站点已复制的数据集(data set)。
2.相对于多主站点的复制,要求更少的资源,却仍然支持数据的更新操作。
3.相对于多主站点的复制,降低了网络资源的压力,因为物化视图可以按需求进行刷新(refreshed on demand),而多主站点复制以定期的间隔(regular intervals)来传播改变。
可更新物化视图站点结构图
This image shows that client applications can query and update an updatable materialized view at the materialized view site. These applications can also update data at the master. When the materialized view refreshes, the materialized view is updated with the changes at the master and the master is updated with the changes at the materialized view.
注意点:
Before you build materialized view environments, you must set up your master site, create a master group, and set up your intended materialized view sites. Also, if conflicts are possible at the master site due to activity at the materialized view sites you are creating, then configure conflict resolution for the master tables of the materialized views before you create the materialized view group.
1.Setting Up Master Sites
2.Setting Up Materialized View Sites
3.Create a Master Group
4.Create Materialized View Group
具体的操作步骤可以参考:
Advanced Replication Management API Reference
主组(master group)复制过程与静默过程
SUSPEND_MASTER_ACTIVITY Procedure
This procedure suspends replication activity for a master group. You use this procedure toquiesce the master group. You must call this procedure from the master definition site.
DBMS_REPCAT.SUSPEND_MASTER_ACTIVITY (
gname IN VARCHAR2);
RESUME_MASTER_ACTIVITY Procedure
This procedure resumes normal replication activity after quiescing a replication environment.
DBMS_REPCAT.RESUME_MASTER_ACTIVITY (
gname IN VARCHAR2,
override IN BOOLEAN := false);
参考:
Overview of Updatable Materialized Views
http://docs.oracle.com/cd/B19306_01/server.102/b14226/repoverview.htm#sthref53
Updatable Materialized Views
http://docs.oracle.com/cd/B19306_01/server.102/b14226/repmview.htm#sthref396
- 可更新物化视图复制站点
- 视图,物化视图,更新
- 高级复制之主站点与物化视图站点之间的数据复制(基于物化视图的配置方式)-10g
- 高级复制双向可更新视图
- 物化视图的手动更新
- 创建可物化的视图程序
- 数据物化视图(materialized view)复制
- 数据库链、物化视图、高级复制方面
- 高级复制与物化视图的选型
- 基于物化视图的数据复制方式
- 数据库链、物化视图、高级复制方面
- 创建更新物化视图的Job
- 现象:物化视图对update不更新
- 创建自动、增量更新的物化视图
- PostgreSQL 9.4版本的物化视图更新
- oracle物化视图的批量更新
- 物化视图复制概念和体系结构——高级复制
- 物化视图复制概念和体系结构——高级复制
- 如何才能更加有效率
- C# Using 使用方法详解
- 学习html的好网站
- ASP.NET 3.5 MVC 概述
- 豆瓣网推广技术
- 可更新物化视图复制站点
- 应用HTML5须知五则
- OnCtlColor 使用问题
- 从今起多写博客
- Java中JSON解析器的一点见解
- matlab 调出颜色版自选颜色
- @property (attributes) 迷惑的attributes
- C# Asp.Net MVC 3 项目实现控制器(controller)与页面(view)分项目管理
- Android成长之路-Button、ImageButton、ToggleButton按钮的功能和用法