Jaimin,

For read-only snapshots, there is no need to run any
additional scripts as dbmssnap.sql is called by
catproc.  I suspect that running the script
invalidated some objects that you didn't recompile
prior to trying to refresh the snapshot.

Either you still have invalid objects, in which case
you need to resolve them, or calling
dbms_snapshot.refresh recompiled them, in which case
calling it again should work.

HTH,

-- Anita

--- jaimin <[EMAIL PROTECTED]> wrote:
> 
> Hello gurus,
>       I am testing dbms_snapshot package on my test
> server. I run
> "dbmssnapshot.sql" script which is in "rdbms"
> directory. The script gives no
> error.
> I have snapshot  called 'TEST_SNAP'.
> 
> 
> When I execute procedure it gives me following
> error.
> 
> SQL> exec dbms_snapshot.refresh ('test_snap','?');
> begin dbms_snapshot.refresh ('ja','?'); end;
> 
> *
> ERROR at line 1:
> ORA-04068: existing state of packages has been
> discarded
> ORA-04063: package body "SYS.DBMS_SNAPSHOT" has
> errors
> ORA-06508: PL/SQL: could not find program unit being
> called
> ORA-06512: at line 1
> 
> Can any one help me on this?
> 
> 
> Regards,
> Jaimin.
> 
> -- 
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> -- 
> Author: jaimin
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX:
> (858) 538-5051
> San Diego, California        -- Public Internet
> access / Mailing Lists
>
--------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an
> E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of
> 'ListGuru') and in
> the message BODY, include a line containing: UNSUB
> ORACLE-L
> (or the name of mailing list you want to be removed
> from).  You may
> also send the HELP command for other information
> (like subscribing).


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: A. Bardeen
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to