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

Home -> Community -> Mailing Lists -> Oracle-L -> Can't create simple MV with FAST refresh

Can't create simple MV with FAST refresh

From: Jesse, Rich <Rich.Jesse_at_qtiworld.com>
Date: Mon, 09 Sep 2002 10:38:23 -0800
Message-ID: <F001.004CB36A.20020909103823@fatcity.com>


Hi all,

Using 8.1.7.4.0 on HP/UX with COMPATIBILE set to "8.1.7", I'm not able to create the following simple MV:

	CREATE MATERIALIZED VIEW qt_gl_trans_ab_mv
	TABLESPACE qt_mat_view
	BUILD IMMEDIATE
	USING INDEX TABLESPACE qt_mat_view PCTFREE 15 INITRANS 2  
	REFRESH FAST WITH ROWID
	USING LOCAL ROLLBACK SEGMENT rbsbig  
	START WITH SYSDATE 
	NEXT (TRUNC(SYSDATE+1) + 4/24) 
	AS
	select fiscal_year, fiscal_period, account_no,
		trans_type, trans_amount
	from my_general_ledge
	where trans_type in ('A','B')

It errors with ORA-12015 "cannot create a fast refresh snapshot from a complex query". According to MetaLink doc 179466.1, a complex query in a MV on 8.1.7 is one that has at least one of:

But my query has none of those? Thinking somethings hosed or I'm completely misunderstanding the "IN" operator of the WHERE clause, I tried "where trans_type = 'A'", but with the same results.

Also, I've created the MV log for the fast refresh:

	CREATE MATERIALIZED VIEW LOG ON my_general_ledger
		WITH  ROWID

I'm just testing out MVs here, but I'm missing something real simple and/or stupid here, but for the life of me I can't see what (even after a lunch break).

Anyone?

Rich Jesse                           System/Database Administrator
Rich.Jesse_at_qtiworld.com              Quad/Tech International, Sussex, WI USA
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jesse, Rich
  INET: Rich.Jesse_at_qtiworld.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Mon Sep 09 2002 - 13:38:23 CDT

Original text of this message

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