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 -> ROWID-based aggregate MV

ROWID-based aggregate MV

From: Vsevolod Afanassiev <vafanassiev_at_aapt.com.au>
Date: 28 Jan 2002 16:32:05 -0800
Message-ID: <4f7d504c.0201281632.4bb2e268@posting.google.com>


I need to build a fast-refreshable aggregate MV on a table that does not have primary key, so it has to be ROWID-based. Oracle says that such MV is not allowed - From Oracle816 SQL Reference, page 7-326: "Rowid-based materialized views must be based on a single remote table and cannot contain any of the following:
* distinct or aggregate function

If fast-refresheable MV is not possible, then the only other aproach is to load each file twice - in the "historic facts" table and also in the staging table, run a query against the staging table to update the summary table, and then truncate the staging table - clearly, a MV would be much better.

Regards,
Sev Received on Mon Jan 28 2002 - 18:32:05 CST

Original text of this message

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