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.

  • 相关阅读:
    nignx 配置https
    开发插件
    pdf 转word 网站
    github 镜像站点
    apk 托管
    系统引导原理以及过程
    网络维护-路由与路由的链接
    linux 常用命令
    Linux netsat 命令
    Oracle登录 ORA-01033: ORACLE正在初始化或关闭的解决方法
  • 原文地址:https://www.cnblogs.com/yaoyangding/p/12881317.html
Copyright © 2011-2022 走看看