My Oracle Support Banner

DataPump Import Fails With ORA-31625 / ORA-01031 in 12.2 When Importing a Common Schema With REMAP_SCHEMA Into A Multitenant Database With Data Vault Enabled (Doc ID 2301722.1)

Last updated on MAY 18, 2021

Applies to:

Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Information in this document applies to any platform.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data .Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.


On a Oracle 12c Release 2 database with Data Vault enabled, an error is received when using Oracle Data Pump to import a common user schema using remap_schema to another common user schema:

Import: Release - Production on Tue Jun 13 12:05:10 2017

Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release - 64bit Production
Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01": system/********@<TNS> schemas=c##user1 remap_schema=c##user1:c##FRAME_user2 directory=dpump_dir dumpfile=dumpfile.dmp logfile=dumpfile.log
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
ORA-39083: Object type PROCACT_SCHEMA failed to create with error:
ORA-31625: Schema c##FRAME_user2 is needed to import this object, but is unaccessible
ORA-01031: insufficient privileges

Failing sql is:
sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'ORCL', inst_scn=>'53109845');COMMIT; END;

The 'C##' prefix indicates that these are common users, i.e. they exist and have privileges across multiple PDBs.




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.