Full And Schema DataPump Exports Fail With Errors ORA-39125 ORA-31642 During DBMS_SCHED_EXPORT_CALLOUTS.SCHEMA_CALLOUT (Doc ID 1109045.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 22-Jul-2013***

Symptoms

You created a user named A_USER. The user A_USER cannot have own objects. This is verified by a database DDL trigger:

connect / as sysdba

-- create DDL trigger that raises an error,
-- if the user A_USER creates objects
create or replace trigger ddltrigger
after ddl on database
declare
  l_sql_text ora_name_list_t;
  l_cnt number;

begin
  l_cnt := nvl (ora_sql_txt (l_sql_text), 0);
  if (ora_dict_obj_owner = 'A_USER') then
    raise_application_error (-20000, 'Error: the user A_USER is not allowed to have own objects!'||chr(10)||'Statement: '||l_sql_text(1));
  end if;
end;
/


Then schema (or full) database exports (performed as user SYSTEM):

#> expdp system/password directory=tmp dumpfile=a_user.dmp schemas=a_user

ends with:

...
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB []
ORA-31642: the following SQL statement fails:
BEGIN "SYS"."DBMS_SCHED_EXPORT_CALLOUTS".SCHEMA_CALLOUT(:1,1,1,'10.02.00.04.00'); END;
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_METADATA", line 907
ORA-20000: Error: The user A_USER is not allowed to have own objects!
Statement: drop table "A_USER".scheduler$_program_arg
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPW$WORKER", line 6307
...

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