zoukankan      html  css  js  c++  java
  • convert expdp dmp file to SQL DDL statements

    convert expdp dmp file to SQL DDL statements

    Oracle Database Tips by Donald BurlesonApril 7, 2016

    Question:  I want to take an export dmp file and convert it into the native SQL statements.  Can I convert a dmp file using the sqlfile option?

    Answer:  You cannot convert an existing dmp file because of its internal format, but you can re-run the impdp to get the SQL DDL statements from a Data Pump dmp file with this sqlfile command:

    impdp scott/tiger directory=dir_name dumpfile=myfile sqlfile=xyz.sql

    This sqlfile option will create a myfile file in the dir_name directory with the DDL statements.

    Here is an example of using the sqlfile parameter with impdp to display the DDL within an Data Pump Export (expdp) file named myexp.dmp:

    $ impdp directory=expdir dumpfile=myexp.dmp sqlfile=ddl.sql

    In this example, the impdp does not actually perform an import of the contents of the dump file.  Rather, the sqlfile parameter create a script named ddl.sql that contains all DDL from within the export dump file.

    Also see how using the sqlfile parameter is useful when gathering arguments for the dbms_datapump metadata_remap procedure.

  • 相关阅读:
    acwing793. 高精度乘法
    acwing788. 逆序对的数量
    acwing791. 高精度加法
    acwing787. 归并排序
    acwing789. 数的范围
    acwing790. 数的三次方根
    acwing786. 第k个数
    acwing792. 高精度减法
    1.9
    课程总结
  • 原文地址:https://www.cnblogs.com/yaoyangding/p/12881317.html
Copyright © 2011-2022 走看看