In this Document
Symptoms
Changes
Cause
Solution
References
APPLIES TO:
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Information in this document applies to any platform.
SYMPTOMS
DataPump export completed without any errors/warnings but the following error in encountered in the import
log:
ORA-39083: Object type REF_CONSTRAINT failed to create with error:
ORA-02298: cannot validate (<SCHEMA_NAME>.<FK_CONSTRAINT_NAME>) - parent keys not found
CHANGES
CAUSE
From the error encountered, it appears that the export dump is inconsistent. DataPump export is not consistent
in time, even though the consistency is maintained at table level.
Furthermore, this is an expected error if there are orphaned child records.
An orphaned child record is a record in the table with a foreign key constraint for which no corresponding
primary key value exists.
The following query can be used to identify the orphaned child record:
select <FK_column_name> from <child_table>
minus
select <PK_column_name> from <parent_table>;
SOLUTION
Similar to the parameter "CONSISTENT" associated with the traditional export utility, we have the parameters
FLASHBACK_SCN and FLASHBACK_TIME with the datapump export utility in order to achieve a consistent export
dump. These parameters do not have a default value. This means that if the parameters are not specified
explicitly, that the Export DataPump job will not be consistent in time. There still is a consistency on table level
though.
相关文档
评论