IMPDP Fails with ORA-39083 and ORA-06502 for PASSWORD_HISTORY (Doc ID 1551778.1)

APPLIES TO:

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

SYMPTOMS

Migrating Oracle database release 10.2.0.4.0 to 11.2.0.3.0 using Datapump export and import.

Getting errors ORA-39083 and ORA-06502 when importing into Oracle release 11.2.0.3.0:


Import: Release 11.2.0.3.0 - Production on Wed May 1 22:02:17 2013
...
Processing object type SCHEMA_EXPORT/PASSWORD_HISTORY

ORA-39083: Object type PASSWORD_HISTORY failed to create with error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small

Failing sql is:

DECLARE SUBTYPE HIST_RECORD IS SYS.DBMS_PSWMG_IMPORT.ARRAYOFHISTORYRECORDS;
HIST_REC HIST_RECORD; i number := 0; BEGIN i := i+1;   
HIST_REC(i).USERNAME := '....'; HIST_REC(i).PASSWORD := '';
HIST_REC(i).PASSWD_DATE := '';
i := i+1;  HIST_REC(i).USERNAME := '...';
HIST_REC(i).PASSWORD := '21\



 

CHANGES

 

CAUSE

The errors ORA-39083 ORA-06502 occur while importing the password_history.
Import log shows import is completed successfully with object type PASSWORD_HISTORY failed to create with the errors.

There are reported incidents with similar errors that are suspended.  For example,

Bug 12334060:  IMPDP FAILS WITH ORA-39083 FOR PASSWORD_HISTORY


 

SOLUTION

Rerun the import with parameter exclude=password_history.
This will not cause any problem as the password history just has old password records.

If the workaround is not feasible or does not solve the problem then collect following additional diagnostic information for further analysis:

1. From source database, please provide a formatted output of following query:

SELECT * FROM KU$_PSW_HIST_LIST_VIEW;

2. On the target database, set the below event as sys user

alter system set events '6502 trace name errorstack level 3';

-- Rerun the import

-- Turn off the event using

alter system set events '6502 trace name errorstack off'

你可能感兴趣的:(Oracle)