My Oracle Support Banner

DataPump Export Or Import Fails With Errors ORA-39006 ORA-39065 ORA-6502 (Doc ID 821593.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Database - Enterprise Edition - Version and later
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 Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.


DataPump export (expdp) encountered unexpected errors ORA-39097 ORA-6502 ORA-39065:


Export: Release - Production on Tuesday, 28 April, 2009 16:25

Copyright (c) 2003, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release -
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39006: internal error
ORA-39065: unexpected master process exception in DISPATCH
ORA-06502: PL/SQL: numeric or value error: character to number conversion error

ORA-39097: Data Pump job encountered unexpected error -6502

The same error messages also occur during DataPump import (impdp).

When executing DBMS_METADATA.GET_DDL ORA-31600 and ORA-6512 are encountered, too:

set long 100000
set linesize 100
select dbms_metadata.get_ddl('TABLE','<OBJECT_NAME>','<SCHEMA>') from dual;

ORA-31600: invalid input value COMPATIBLE for parameter VERSION in function
ORA-06512: at "SYS.DBMS_METADATA", line 2682
ORA-06512: at "SYS.DBMS_METADATA", line 2733
ORA-06512: at "SYS.DBMS_METADATA", line 4333
ORA-06512: at line 1




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.