My Oracle Support Banner

12.2 Multitenant: ORA-31655 and ORA-39166 When Exporting Objects from Application PDB with DataPump (Doc ID 2482767.1)

Last updated on APRIL 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


NOTE: The document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Metadata linked tables (i.e tables created with sharing=metadata) are not exported from Application PDB. The objects are exported with success only with SYSTEM user, as shown below:

- a table can be unloaded by DataPump from an APP PDB with SYSTEM user, but it cannot be unloaded when expdp job is launched by the user who owns the table:

Connected to: Oracle Database 12c Enterprise Edition Release - 64bit Production
Starting "SYSTEM"."SYS_EXPORT_TABLE_01":  system/********@<application_pdb> DIRECTORY=dpump_dir dumpfile=dump_table.dmp tables=TC.TEST_TABLE logfile=table_log.log
. . exported "TC"."TEST_TABLE"                0 KB       0 rows
Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
- starting the export job with the user who owns the table, it reports:

Connected to: Oracle Database 12c Enterprise Edition Release - 64bit Production
Starting "TC"."SYS_EXPORT_TABLE_01":  tc/********@<application_pdb> directory=dpump_dir dumpfile=dump_table.dmp tables=TC.TEST_TABLE logfile=2_table_log.log
ORA-39166: Object TC.TEST_TABLE was not found or could not be exported or imported.
ORA-31655: no data or metadata objects selected for job





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.