0

I have to make a dump file with the extension .sql, what is the correct way to do this? I am using Oracle database Express Edition 10g. Would this work fine if I enter it in the cmd?

expdp system/system_password full=Y EXCLUDE=SCHEMA:\"LIKE \'APEX_%\'\",SCHEMA:\"LIKE \'FLOWS_%\'\" directory=DUMP_DIR dumpfile=DB1.sql logfile=expdpDB10G.log
Bernhard Barker
  • 54,589
  • 14
  • 104
  • 138
arbast
  • 145
  • 7

1 Answers1

0

expdp creates a dump file, which can only be used by impdp and cannot be run as a SQL script, so it doesn't make sense to name it with the .sql extension.

I prefer to name it with something like .dmp so that it's clearer what it contains.

Jeffrey Kemp
  • 59,135
  • 14
  • 106
  • 158