views:

457

answers:

1

Hello, I'm using Data Pump to export/import data, one requirement is to import data to a sql file. The OS is window. I made the follow export :

expdp system/password directory=dpump_dir dumpfile=tablesdump.dmp content=DATA_ONLY tables=user.tablename

and it works, I can see the file TABLESDUMP.DMP in the directory path.

then when I tried to import it to a sql file:

impdp system/password directory=dpump_dir dumpfile=tablesdump.dmp sqlfile=tables_export.sql

the log show :

.....
ORA-31655 no data or metadata objects selected for job
.....

and the sql file is created empty in the directory path.

I'm not DBA, I'm a Java developer , Can you help me?

Thks

A: 

Hi, Since I exported the data using the parameter 'content=data_only' the dump file has not metadata info to be imported.I tried export with 'content=all' paramteer and then import to sql file worked. I hope this be helpful for other cases.

Thks to Anurag Tibrewa.

Francisco Quiñones