My Oracle Support Banner

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

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.
***Checked for relevance on 30-Apr-2018***


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

expdp tc1/tc1 DIRECTORY=test_dp DUMPFILE=export_schemas.dmp

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','EMP','SCOTT') 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.