why i can't call dbms_mview.refresh in my proc? [message #48603] |
Fri, 03 December 2004 03:19 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Martin Tian
Messages: 5 Registered: October 2004
|
Junior Member |
|
|
i can run mv refresh like this:
SQL> exec DBMS_MVIEW.REFRESH('EDEN_SUPL_MV',null,null,true,false,1,0,0,true);
PL/SQL procedure successfully completed
SQL>
-------------------------------------------------------------------
but can't do like this:
SQL>create or replace procedure myproc is
begin
DBMS_MVIEW.REFRESH('EDEN_SUPL_MV',null,null,true,false,1,0,0,true);
end myproc;
SQL> exec myproc;
begin myproc; end;
ORA-12008: error in materialized view refresh path
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 794
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 851
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 832
ORA-06512: at "EDENFR.MYPROC", line 3
ORA-06512: at line 1
SQL>
------------------------------------------------------
WHY?PLEASE HELP!
|
|
|
|
|