Advertisement

03.13.2008 at 09:38PM PDT, ID: 23240871
[x]
Attachment Details

Materialized View Refresh Error

Asked by kamsupport in Oracle 10.x, Oracle 8.x, Oracle 9.x

Tags: Oracle, 10g

Hi
I am trying to load bulk of data(millions of data) using dat files with Oracle 10g . I am doing this to get details about how much time it takes to refresh the materialized view when loading the table.  When I was loading the data for the first time, it refreshed appropriately for the first 3 batches of file and then the state went to stale. So, I tried to refresh it manually using dbms_snapshot.refresh('mv_table','f') basically Fast Refresh. When i executed it, it gives me the following error:

EXEC DBMS_SNAPSHOT.REFRESH('mv_lrx_script_3','f')
ERROR AT LINE 1:
ORA-12008: error in materialized view refresh path
ORA-01426: numeric overflow
ORA-06512: at "SYS.DBMS_SNAPSHOT",line 2255
ORA-06512: at "SYS.DBMS_SNAPSHOT",line 2461
ORA-06512: at "SYS.DBMS_SNAPSHOT",line 2430

But when I executed dbms_snapshot.refresh('mv_table','c') (Complete refresh) the procedure is completed successfully without any error.  

My questions are:
1. What does the error means and what's the solution to this?
2. Why is complete manual refresh not failed?Does that mean the query (select count(*) cnt, usc_cd, cmf_prod_nbr, cmf_pack_nbr from lrx_script_3 group by usc_cd, cmf_prod_nbr, cmf_pack_nbr) which is used to create columns in mv table doesnt meet the requirement of fast refresh? If so, how does it refreshed for the first 3 dat files..
3. Why is it the MV refreshed for the first 3 dat files and failed to refresh only for the 4th one?

Can anyone throw light on this?

For your understanding, I also attached the creation of materialized view and view log..

Thanks in advance
RegardsStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
create materialized view log on lrx_script_3
with rowid(usc_cd, cmf_prod_nbr, cmf_pack_nbr) including new values;
 
drop materialized view     mv_lrx_script_3;
CREATE MATERIALIZED VIEW mv_lrx_script_3
  TABLESPACE TS_LRX_DATA04 NOLOGGING
   STORAGE (INITIAL 512K NEXT 256K)
   BUILD IMMEDIATE
   REFRESH FAST ON COMMIT
   ENABLE QUERY REWRITE
AS
select count(*) cnt, usc_cd, cmf_prod_nbr, cmf_pack_nbr
from lrx_script_3
group by usc_cd, cmf_prod_nbr, cmf_pack_nbr
[+][-]03.14.2008 at 06:01AM PDT, ID: 21125028

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2008 at 08:35AM PDT, ID: 21126473

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.15.2008 at 01:06AM PDT, ID: 21131801

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle 10.x, Oracle 8.x, Oracle 9.x
Tags: Oracle, 10g
Sign Up Now!
Solution Provided By: schwertner
Participating Experts: 1
Solution Grade: C
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628