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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: [Replication] Altering Master Object at materialized view replication environment

Re: [Replication] Altering Master Object at materialized view replication environment

From: Arup Nanda <arupnanda_at_hotmail.com>
Date: Wed, 15 Jan 2003 08:18:52 -0800
Message-ID: <F001.00530543.20030115081852@fatcity.com>


Dennis,

That's one of the nuances of MV replication. If you alter the master table, you have to drop and recreate the MV on the snapshot site. This is as per Oracle's internal documentation.

However, there is a trick. If you have created the MV using a prebuilt table, then you can have a workaround. When you build an MV on a table, Oracle simply assumes the type of the segment as MV rather than the table, i.e. the segment that used to be known as the table is now known as the MV. when the MV is dropped, Oracle does not drop the segment; rather it reverts the type to the table as it used to be.

So when you alter the master table, follow the sequence of steps.

stop replication
drop the MV
alter the master table
alter the prebuilt table in the same way. Build the MV on the prebuilt table again.

Of course, there are several small but crucial steps to be followed. I have described the procedure completely in http://www.dbazine.com/nanda2.html .

Hope this helps.

Arup Nanda

> Hello
>
> How can i replicate DDL on table (modify column for example) in
> materialized view replication environment ?
> DBMS_REPCAT.ALTER_MASTER_REPOBJECT alter the object, put changes are not
> propagated to MV site ...
>
> I try DBMS_REFRESH.REFRESH and DBMS_REPCAT.REFRESH_MVIEW_REPGROUP at MV
> site, but I steel don't see the changes.
> Is it possible to propagate DDL to MV site ?
> Thnx.
>
> /sds
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Dennis Sorokin
> INET: sds_at_ru.ru
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Arup Nanda
  INET: arupnanda_at_hotmail.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Jan 15 2003 - 10:18:52 CST

Original text of this message

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