My Oracle Support Banner

Dbms_datapump.Open Fails With ORA-31626 When Used As A Function In A SQL Select (Doc ID 459419.1)

Last updated on JUNE 14, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.3 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Symptoms

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 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.