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: to - Release: 10.2 to 11.2
Information in this document applies to any platform.


You are performing a Data Pump export using the API:


SQL> declare
2 dp_handle NUMBER;
3 begin
4 dbms_datapump.detach (handle => dp_handle);
5 dp_handle := (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:

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


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