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: MODIFY Materialized View Definition without dropping it (or the MLog) after base table alter?

Re: MODIFY Materialized View Definition without dropping it (or the MLog) after base table alter?

From: Alberto Dell'Era <alberto.dellera_at_gmail.com>
Date: Wed, 29 Nov 2006 00:27:26 +0100
Message-ID: <4ef2fbf50611281527x274aebc6uc180b738b0a6d060@mail.gmail.com>


> > But do the new columns need to be added to the remote MV also -
> > and if yes, will they have the same value - ie is it something
> > like
> >
> > add (new_col default new_val) ?
>
>
> You can add the new column, but it will not be populated.

I think there's a misunderstanding here, I was just asking to Chris whether the new column, that has to be added on the base table, possibly with a default value, has to be propagated to the MV also (so with the same value) or not.

Eg
old mv : create materialized view as select a from t_at_dblink say you "alter table t add (new_column int default 42)" has the mv to be logically modified to
create materialized view as select a, new_column from t_at_dblink or does it stay the same, ignoring new_column ?

-- 
Alberto Dell'Era
"Per aspera ad astra"
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 28 2006 - 17:27:26 CST

Original text of this message

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