Streams DML Handler Procedure Failing With ORA-04068, ORA-04065 and ORA-06508 When Using 'Public.Anydata' Synonym

(Doc ID 1088105.1)

Last updated on APRIL 23, 2010

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.4 to 11.1.0.7 - Release: 10.2 to 11.1
Information in this document applies to any platform.

Symptoms

You have Streams setup in place and you are using a DML Handler Procedure at Apply site (DBMS_APPLY_ADM.SET_DML_HANDLER).

Sometimes you see Apply process going into aborted state due the DML Handler procedure getting invalidated. When reviewing the reason apply aborted via dba_apply.error_message column or checking procedure errors at dba_errors view you see an error stack similar to this:

ORA-04068: existing state of packages has been discarded
ORA-04065: not executed, altered or dropped stored procedure "public.anydata"
ORA-06508: pl/sql: could not find program unit being called: "public.anydata"
ORA-06512: at "strmamdin.my_apply_dml_handler_proc", line 375
ORA-06512: at line 1

Changes

Upgraded your 9i or 10g database to 10.2.0.4.0 or 11g.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms