DataPump User Level Imports Missing Foreign Key Constraints After IMPDP Errors ORA-31685 (Doc ID 1171365.1)

Last updated on NOVEMBER 28, 2012

Applies to:

Oracle Server - Enterprise Edition - Version 10.2.0.1 to 10.2.0.5 [Release 10.2]
Information in this document applies to any platform.
***Checked for relevance on 28-NOV-2012***

Symptoms

After a user level import, foreign key constraints are missing. The import log may show error messages like following:

ORA-31685: Object type REF_CONSTRAINT:"B"."LOG_FK" failed due to insufficient privileges. Failing sql is:
ALTER TABLE "B"."TRIPLOG" ADD CONSTRAINT "LOG_FK" FOREIGN KEY ("CONFIGID") REFERENCES "SM"."TRIP" ("ID") ENABLE

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