My Oracle Support Banner

DataPump Import (IMPDP) Fails With Errors ORA-1031 UDI-31626 If DBA Role Is Missing (Doc ID 1459430.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.3 [Release 11.2]
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
Information in this document applies to any platform.

Symptoms

DataPump import (impdp) fails with errors:

ORA-39097: Data Pump job encountered unexpected error -1031
ORA-39065: unexpected master process exception in DISPATCH
ORA-01031: insufficient privileges<>/code>


The errors reported at import client level are:

UDI-31626: operation generated ORACLE error 31626
ORA-31626: job does not exist
ORA-39086: cannot retrieve job information
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3326
ORA-06512: at "SYS.DBMS_DATAPUMP", line 4551
ORA-06512: at line 1


The DataPump Master trace file generated shows the error is raised while calling DBMS_DST procedure for tables with TSTZ columns:

KUPM:12:39:19.730: exp TSTZ version: 11
KUPM:12:39:19.730: imp TSTZ version: 14
KUPM:12:39:19.730: Need to load secondary TSTZ table version 11
KUPM:12:39:19.844: Error detected by MCP
KUPC:12:39:19.853: Before ENQ: Sending Type: 2022 ID:
KUPC:12:39:19.854:  DG,KUPC$S_1_20110914123905,MCP, ,3,Y
kwqberlst rqan->lascn_kwqiia > 0 block
kwqberlst rqan->lascn_kwqiia  22
kwqberlst ascn 1724625264 lascn 22
KUPM:12:39:19.854: ORA-39097: Data Pump job encountered unexpected error 1031
KUPC:12:39:19.855: Before ENQ: Sending Type: 2022 ID:
KUPC:12:39:19.855:  DG,KUPC$S_1_20110914123905,MCP, ,4,Y
kwqberlst rqan->lascn_kwqiia > 0 block
kwqberlst rqan->lascn_kwqiia  22
kwqberlst ascn 1724625264 lascn 22
KUPM:12:39:19.855: ORA-39065: unexpected master process exception in DISPATCH
KUPM:12:39:19.855: ORA-1031: insufficient privileges
KUPM:12:39:19.855: ORA-6512: at "SYS.DBMS_DST", line 37

Changes

The user running the DataPump job has the DATAPUMP_IMP_FULL_DATABASE or IMP_FULL_DATABASE role which should be enough to run the DBMS_DST procedure. But, ORA-1031 occurs in DataPump when DBA role is not granted to the import user.

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.