Question

I need to export a subset of an Oracle table and import it in another Oracle instance. The export using expdp works pretty well but when I try to import the data in the other instance using impdp tool it fails because there are dependencies (foreign keys) missing. Is there any option to force expdp tool to export all required dependencies as well?

Was it helpful?

Solution

no.

You should makie sure your dump set is complete. What you could try is to use impdp to generate the sql file, apply the generated sql to the other database to only create the table[s]. For this you might need to do some edit work on the generated sql until it fits your task.

Next use impdp with contents=data_only to import the rows in the pre-create table[s]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top