DataPump Export Or Import Fails With Errors ORA-39006 ORA-39065 ORA-6502

(Doc ID 821593.1)

Last updated on NOVEMBER 28, 2016

Applies to:

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

Symptoms

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

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

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

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

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 -
Production
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;

ERROR:
ORA-31600: invalid input value COMPATIBLE for parameter VERSION in function
GET_DDL
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

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