Import dump with SQLFILE parameter not returning the data inside the table

前端 未结 1 994
臣服心动
臣服心动 2021-01-27 17:14

I am trying to import the dump file to .sql file using SQLFILE parameter.

I used the command \"impdp username/password DIRECTORY=dir DUMPFILE=sample.dmp SQLFILE=sample.s

相关标签:
1条回答
  • 2021-01-27 17:52

    Your expectation was wrong, I'm afraid. You're asking it to do something it isn't designed for.

    The documentation for SQLFILE says:

    Purpose

    Specifies a file into which all of the SQL DDL that Import would have executed, based on other parameters, is written.

    So it will only ever contain DDL.

    There isn't a mechanism to turn a .dmp file into a .sql containing insert statements. If you need to put the data into a table, just use the native import.

    Individual insert statements - if you could generate them, which SQL Developer will do as a separate task unrelated to your data pump export - would be slower, would have problems with LOBs, and would have to be careful about the order they were run unless integrity constraints were disabled. Data pump takes care of all of that for you.

    0 讨论(0)
提交回复
热议问题