Dbms_datapump.Open Fails With ORA-31626 When Used As A Function In A SQL Select

(Doc ID 459419.1)

Last updated on APRIL 15, 2013

Applies to:

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


A call to dbms_datapump procedures from within a function called from a select statement fails with the following errors:

select test_job_open from dual 
ERROR at line 1: 
ORA-31626: job does not exist 
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79 
ORA-06512: at "SYS.DBMS_DATAPUMP", line 911 
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4356 
ORA-06512: at "SYS.TEST_JOB_OPEN", line 6 


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