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 JULY 20, 2024

Applies to:

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

Symptoms

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 12.2.0.1.0 - 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
Processing object type TABLE_EXPORT/TABLE/APPLICATION_DATA/TABLE_DATA
. . 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 12.2.0.1.0 - 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

 

Changes

 NONE

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
Changes
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.