| materialized View Error : existing state of packages has been discarded [message #64449] |
Mon, 31 January 2005 00:55  |
Sreedhar Reddy Messages: 55 Registered: February 2005 |
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 #64458 is a reply to message #64457 ] |
Mon, 31 January 2005 02:39   |
Sreedhar Reddy Messages: 55 Registered: February 2005 |
Member |
|
|
|
its not with only one materialized view, but with all the materialized views, it shows the same error message
|
|
|
| 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: September 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
|
|
|
|
| Re: materialized View Error : existing state of packages has been discarded [message #64472 is a reply to message #64466 ] |
Mon, 31 January 2005 22:05   |
Sreedhar Reddy Messages: 55 Registered: February 2005 |
Member |
|
|
We are using Oracle 9i Version, no FULL import was taken place.
Currently exec DBMS_MVIEW.REFRESH_ALL is working fine, but refreshing particular materialized view is not taking place.
the particular user has got DBA privileges.
|
|
|
|
|
| Re: ORA-04068: Existing state of packages has been discarded [message #298263 is a reply to message #298261 ] |
Tue, 05 February 2008 08:34   |
Michel Cadot Messages: 17716 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
Is not "could not find program unit being called" clear?
I doubt there is a package scott.dbms_pipe.
Next time, please read OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code.
Use the "Preview Message" button to verify.
Always post your Oracle version (4 decimals).
Regards
Michel
|
|
|
|