My Oracle Support Banner

Data Pump Export Fails with ORA-31631 and ORA-39109 (Doc ID 1482248.1)

Last updated on MAY 15, 2024

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database 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.

Symptoms

Data Pump Export Fails with ORA-31631 and ORA-39109:

Command for the datapump export:
expdp userid=test/<PASSWORD> DUMPFILE=<DUMPFILE> LOGFILE=<LOGFILE> DIRECTORY=<MY_DIR> CONTENT=metadata_only SCHEMAS=SCOTT
 

Changes

Privileges defined by the role EXP_FULL_DATABASE is granted individually, e.g:

 
GRANT CONNECT TO test;
GRANT SELECT_CATALOG_ROLE TO test;
ALTER USER test DEFAULT ROLE ALL;

...  
GRANT CONNECT TO test;
GRANT SELECT_CATALOG_ROLE TO test;
ALTER USER test DEFAULT ROLE ALL;
--grant EXP_FULL_DATABASE TO test;
ALTER USER test QUOTA 512M ON TOOLS;
...
GRANT RESUMABLE TO test;
GRANT BACKUP ANY TABLE TO test;
GRANT EXECUTE ANY TYPE TO test;
GRANT SELECT ANY TABLE TO test;
GRANT READ ANY FILE GROUP TO test;
GRANT SELECT ANY SEQUENCE TO test;
GRANT EXECUTE ANY PROCEDURE TO test;
BEGIN
SYS.DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SYSTEM_PRIVILEGE
(GRANTEE_NAME   => 'test',
 PRIVILEGE_NAME => 'ADMINISTER_RESOURCE_MANAGER',
 ADMIN_OPTION   => FALSE);
END;
/
GRANT EXECUTE_CATALOG_ROLE TO test;
GRANT SELECT_CATALOG_ROLE TO test;

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.