materialized View Error : existing state of packages has been discarded [message #64449] |
Mon, 31 January 2005 00:55  |
Sreedhar Reddy
Messages: 55 Registered: January 2002
|
Member |
|
|
On running the below statement the error occurs..please suggest better solution
SQL> exec dbms_mview.refresh('mtourprogram');
BEGIN dbms_mview.refresh('mtourprogram'); END;
*
ERROR at line 1:
ORA-04068: existing state of packages has been discarded
ORA-04063: package body "SYS.DBMS_DEFER_SYS" has errors
ORA-06508: PL/SQL: could not find program unit being called
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 line 1
|
|
|
|
|
Re: materialized View Error : existing state of packages has been discarded [message #64463 is a reply to message #64449] |
Mon, 31 January 2005 04:55   |
VJ
Messages: 24 Registered: June 2002
|
Junior Member |
|
|
what version of oracle are u running .. ?
is the select statement of mview is inturn having any views that reads from package contents .. ?
did u tried compiling all the packages before refreshing mview.. ? Also check if your packages are having any "execute immediates / DDL statements " in those ...thats a known issue if that is the case ...
-V
|
|
|
|
|
|
|
|
|