Error 'ORA-20376: The 'WMSYS_N' Schema Does Not Contain the Necessary Data' Running DBMS_WM.IMPORT_SCHEMAS (Doc ID 1956563.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Workspace Manager - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]
Information in this document applies to any platform.

Symptoms

Importing a datapump file containing workspace manager metadata with

DECLARE
  job_name varchar2(30) := upper('IMPORTOWMSCHEMAS') ;
  dpj number ;
BEGIN
  dpj := dbms_datapump.open('IMPORT', 'FULL', null, job_name, 'COMPATIBLE') ;
  dbms_datapump.add_file(dpj, 'owm_schema.dmp', null) ;
  dbms_datapump.add_file(dpj, 'owm_schema_import.log', null, filetype=>dbms_datapump.KU$_FILE_TYPE_LOG_FILE) ;
  dbms_wm.import_schemas(job_name) ;
END;
/

raises

ORA-20376: The 'WMSYS_N' schema does not contain the necessary data
ORA-06512: at "WMSYS.LT", line 7812
ORA-06512: at line 7


The datapump export file has been created with
DECLARE
  job_name varchar2(30) := 'EXPORTOWMSCHEMAS' ;
  dpj number ;
BEGIN
  dpj := dbms_datapump.open('EXPORT', 'SCHEMA', null, job_name, 'COMPATIBLE') ;
  dbms_datapump.add_file(dpj, 'owm_schema.dmp', null) ;
  dbms_datapump.add_file(dpj, 'owm_schema_export.log', null, filetype=>dbms_datapump.KU$_FILE_TYPE_LOG_FILE) ;
  dbms_wm.export_schemas(job_name) ;
END;
/

The source and the target databases are the same database version and have the same Workspace Manager version.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms