Datapump API Metadata_filter fails with ORA-39001 (Doc ID 1341483.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.5 to 11.2.0.2 - Release: 10.2 to 11.2
Information in this document applies to any platform.

Symptoms

You are performing a Data Pump export using the API:

Example:

SQL> declare
2 dp_handle NUMBER;
3 begin
4 dbms_datapump.detach (handle => dp_handle);
5 dp_handle := dbms_datapump.open (operation => 'EXPORT', job_mode => 'TRANSPORTABLE');
6 dbms_datapump.metadata_filter (handle => dp_handle,name => 'TABLESPACE_LIST', value => 'USER');
7 end;
8 /

 

And you experience the following errors:

declare
*
ERROR at line 1:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 2953
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4132
ORA-06512: at line 6

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