Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Fast Refresh of Materialized View

Fast Refresh of Materialized View

From: CompDatabasesOracleServer <helge.hauan_at_applica.no>
Date: 27 Jan 2006 06:20:19 -0800
Message-ID: <1138371619.477209.227420@z14g2000cwz.googlegroups.com>


Hi
I'm using Oracle 10g (10.1.0.2.0) database.

Our network contains one single Master, and several Replicated sites with updateable materialized view. All MV's are defined with fast refresh.
When I add a row to a table at a replicated site (MV), it is pushed to the master site, and other replicated sites. My question is: does anyone know how the refresh of the materialized views are performed? Is is so that during the refresh, the new row is first deleted, and then inserted again at the replicated site that first inserted the new row? I've added some logging to the INSERT, UPDATE and DELETE tirggers, and according to the log, the INSERT trigger gets fired at both the Master and the replicated site where the row was inserted, but during the refresh of MV, the new row is first deleted, and then inserted again. Is this behaviour correct?

What will happen if the MV table is a parent of another table (not MV), and this relation is defined with CASCADE-DELETE constraint? Am I loosing the child records of the MV then? Can this be avoided?

Hope for a quick answer. Received on Fri Jan 27 2006 - 08:20:19 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US