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 -> Re: Materialized Views with refresh in 8.1.7

Re: Materialized Views with refresh in 8.1.7

From: Gints Plivna <gints.plivna_at_gmail.com>
Date: 12 Jul 2006 05:59:49 -0700
Message-ID: <1152709189.346412.250820@b28g2000cwb.googlegroups.com>


Cosimo wrote:
> Hi Dbas
>
> I ave a materialized view with logs:
>
> CREATE MATERIALIZED VIEW log
> ON aspiag_scontrino
> WITH PRIMARY KEY, ROWID (
> dta_trunc_iscrizione,
> dta_trunc_acquisto,
> importo_number,
> flg_superpremio,
> tipo_punto_vendita,
> provincia,
> store,
> produttore1,
> produttore2,
> tot_chance,
> progr_chance,
> group_id)
> INCLUDING NEW VALUES;
>
> CREATE MATERIALIZED VIEW mv_aspiag_scontrino_general
> REFRESH FORCE
> START WITH SYSDATE
> NEXT SYSDATE + 10/86400
> AS
> SELECT
> COUNT(*),
> COUNT(importo_number) count_importo,
> dta_trunc_iscrizione,
> SUM(importo_number) sum_importo,
> flg_superpremio,
> SUM(TOT_CHANCE) totale_inserimenti
> FROM ASPIAG_SCONTRINO
> WHERE PROGR_CHANCE=1
> GROUP BY dta_trunc_iscrizione, flg_superpremio;
>
> The materialized view mv_aspiag_scontrino_general not refresh when a row
> is inserted on table aspiag_scontrino.
>
> In the file init.ora ave:
> job_queue_processes = 4
> job_queue_interval = 60
>
> Where is the problem ?

>From your question isn't clear whether it doesn't refresh MV at all, or
it doesn't refresh it on commit?

If it doesn't refresh on commit it is absolutely normal because you haven't said that :)

Gints Plivna
http://www.gplivna.eu/ Received on Wed Jul 12 2006 - 07:59:49 CDT

Original text of this message

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