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 -> Materialized view dynamic row count

Materialized view dynamic row count

From: Geoff Muldoon <geoff.muldoon_at_trap.gmail.com>
Date: Tue, 11 Oct 2005 10:56:43 +1000
Message-ID: <MPG.1db5b8d39cd68a159896f7@news.readfreenews.net>


Hi all,

Apologies if not the correct c.d.o.xxx group ...

Oracle 9.2.x.x on RHAS3 ... data warehouse implementation ...

We have a number (currently a couple of dozen but growing fast) of materialized views - refresh on demand - which are to be repopulated overnight. Results of the refresh to be written to a logging table.

Proposed process is to have a simple table with columns VIEW_NAME and REFRESH_ORDER and a stored proc fired by cron containing (simplified code below):

procedure LOAD_MVIEWS(v_cron_job_no in number) is cursor current_mviews is

    select VIEW_NAME
    from MVIEWS_TABLE
    order by REFRESH_ORDER;
v_pre_count number;
v_post_count number;
begin

    for c in current_mviews loop

Advice sought on the most efficient way of getting row counts on the dynamically named materialized views within the cursor loop.

TIA Geoff M Received on Mon Oct 10 2005 - 19:56:43 CDT

Original text of this message

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