My Oracle Support Banner

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

Last updated on OCTOBER 01, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2 to 11.2]
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.


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


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

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