RE: Remote Materialized View containing joins

  • From: "Xu, Roger" <Roger.Xu@xxxxxxxx>
  • To: "Jared Still" <jkstill@xxxxxxxxx>
  • Date: Fri, 29 May 2009 13:20:27 -0600

Hi list, how do I tweak so this can be fast refreshed? Thanks in
advance.

 

SQL> CREATE MATERIALIZED VIEW campaign

  2  TABLESPACE BTPMTBL

  3  NOCACHE LOGGING NOPARALLEL BUILD IMMEDIATE

  4  REFRESH FAST WITH ROWID ON DEMAND

  5  AS

  6  select

  7
S_SRC.ROW_ID,S_SRC.PROD_ID,S_SRC.CTLG_CAT_ID,S_SRC.PAR_SRC_ID,S_SRC.PR_A
CCNT_ID,

S_SRC.TMPL_ID,S_SRC.BU_ID,S_SRC.PERIOD_ID,S_SRC.PROMO_PRI_LST_ID,S_SRC.A
CTIVE_FLG,

  8    9
S_SRC.ADVERT_DESC_TEXT,S_SRC.COUPON_DROP_FLG,S_SRC.DISPLAY_FLG,S_SRC.CON
SUME_END_DT,

S_SRC.PROG_END_DT,S_SRC.SHIP_END_DT,S_SRC.FEATURE_FLG,S_SRC.PROMO_NUM,

 10   11
S_SRC.OBJECTIVE,S_SRC.PACKAGE_DESC_TEXT,S_SRC.TMP_PRI_RDX_PCT,S_SRC.SRC_
CD,

 12
S_SRC.CONSUME_START_DT,S_SRC.PROG_START_DT,S_SRC.SHIP_START_DT,S_SRC.TRG
T_QTY,

 13  S_SRC.TMP_PRI_RDX_FLG,S_SRC.CREATED,S_SRC.STATUS_CD,

 14  S_SRC.NAME,S_SRC.X_BRAND,S_SRC.X_CONTAINER_SIZE,

 15
S_SRC.X_CONTAINER_TYPE,S_SRC.CREATED_BY,S_SRC.X_NEW_FLG,S_SRC.X_PACK_QTY
,

 16  S_SRC.X_SETTLEMENT_DT,S_SRC.X_NUM_STORES,S_SRC_CHNL.ROW_ID
SRC_CHNL_ROW_ID,

 17
S_SRC_CHNL.PROMO_ACV_PCT,S_SRC_CHNL.PAR_ROW_ID,S_SRC_CHNL.ACTL_BASELINE_
CASE,

 18
S_SRC_CHNL.ACTL_SPENT_AMT,S_SRC_CHNL.ACTL_INCR_CASES,S_SRC_CHNL.EST_BASE
LINE_CASES,

 19
S_SRC_CHNL.ATTRIB_01,S_SRC_CHNL.EST_INCR_CASES,S_SRC_CHNL.INCR_LIFT,

 20  S_SRC_CHNL.TACTICS_CD,S_PRI_LST.NAME PRI_LST_NAME, S_SRC.SUB_TYPE,

 21  S_SRC_CHNL.rowid CHNL_RID,

 22  S_PRI_LST.rowid LST_RID,

 23  S_SRC.rowid SRC_RID

 24  from

 25  S_SRC@xxxxxxxxxxx

 26  left outer join S_SRC_CHNL@xxxxxxxxxxx on S_SRC.ROW_ID =
S_SRC_CHNL.PAR_ROW_ID

 27  left outer join S_PRI_LST@xxxxxxxxxxx on S_SRC.PROMO_PRI_LST_ID =
S_PRI_LST.ROW_ID;

left outer join S_SRC_CHNL@xxxxxxxxxxx on S_SRC.ROW_ID =
S_SRC_CHNL.PAR_ROW_ID

                                                         *

ERROR at line 26:

ORA-12015: cannot create a fast refresh materialized view from a complex
query

 

 


 
http://www.drpeppersnapplegroup.com/about/corporate to learn more about Dr 
Pepper Snapple Group’s commitment to corporate social responsibility.

Please be conscious of the environment and print this email only if absolutely 
necessary. 
This e-mail (including any attachments) is confidential and may contain 
privileged information of Dr Pepper Snapple Group, Inc. and/or its subsidiaries 
("Dr Pepper Snapple Group"). If you are not the intended recipient or receive 
it in error, you may not use, distribute, disclose or copy any of the 
information contained within it and it may be unlawful to do so. If you are not 
the intended recipient, please notify us immediately by returning this e-mail 
to us at mailto:mailerror@xxxxxxxx and destroy all copies. Any views expressed 
by individuals within this e-mail do not necessarily reflect the views of Dr 
Pepper Snapple Group. This e-mail does not constitute a binding offer, 
acceptance, amendment, waiver or other agreement, unless the intent that an 
e-mail will constitute such is clearly stated in the body of the email. 
Recipients are advised to subject this e-mail and attachments to their own 
virus checking, in keeping with good computing practice. Please note that 
e-mail received by Dr Pepper Snapple Group may be monitored in accordance with 
applicable law.

Other related posts: