How to export & import only data in oracle 11g?

Nitesh Kumar picture Nitesh Kumar · Nov 16, 2012 · Viewed 30.7k times · Source

I want to export only data on of my master tables and then imports it to some other server on same oracle 11g . Is it possible to do that. using exp command it dumps the complete data along with schema which I don`t want . I want only data to be dump and imported to some other location.

Please help me out.

Thanks,

Nitesh Kumar

Answer

Alex Poole picture Alex Poole · Nov 16, 2012

You can't with the original export (exp) utility, but with the newer data pump expdp you can use the content parameter to export only the data:

expdp content=data_only ...

With exp I think the closest equivalent is to set ignore=y on import; it will try to recreate the schema objects but won't complain that they're already there. But since the original utilities are deprecated, you should use data pump anyway.