如何獲取expdp出來的dmp檔案中的DDL語句
Data Pump sqlfile parameter tips
Oracle Tips by Burleson Consulting
July 21, 2010
Question: In the old import utility we were able to use "show=y" to see the DDL contents of an export dump file. What is the equivalent in Data Pump?
Answer: In Data Pump import (impdp) made several great improvements:
The dump file is now in XML, and you can browser a dump file to see the contents.
The show=y has been replaced by the sqlfile argument.
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 --- 使用這個引數可以列印出DDL , 加入了這個引數後,impdp不會實際執行 。如果需要執行,需要去掉這個引數。
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.
Oracle Tips by Burleson Consulting
July 21, 2010
Question: In the old import utility we were able to use "show=y" to see the DDL contents of an export dump file. What is the equivalent in Data Pump?
Answer: In Data Pump import (impdp) made several great improvements:
The dump file is now in XML, and you can browser a dump file to see the contents.
The show=y has been replaced by the sqlfile argument.
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 --- 使用這個引數可以列印出DDL , 加入了這個引數後,impdp不會實際執行 。如果需要執行,需要去掉這個引數。
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.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1481091/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle中獲取TABLE的DDL語句的方法Oracle
- 獲取物件DDL語句的方法物件
- Oracle 獲取ddl語句Oracle
- 檢視dmp檔案是exp還是expdp匯出來的
- 如何確定一個dmp檔案是exp匯出的還是expdp匯出的?
- oracle之 獲取建表ddl語句Oracle
- 用dbms_metadata.get_ddl獲取ddl語句
- oracle dbms_metadata 獲取ddl語句Oracle
- 通過dblink獲取遠端DDL語句
- Oracle exp dmp包檔案轉化為insert語句,extract dmp to sqlfileOracleSQL
- win10藍屏dmp檔案在哪_win10系統如何獲取藍屏錯誤dmp檔案Win10
- dbms_metadata.get_ddl()來獲得物件的定義語句物件
- 從Export Dumpfile file 中讀出DDL 語句Export
- Oracle從dump檔案中提取DDL語句方法Oracle
- win10藍色畫面dmp檔案在哪_win10系統如何獲取藍色畫面錯誤dmp檔案Win10
- dmp檔案的做成
- Oracle 儲存過程中的DDL語句Oracle儲存過程
- 搬運工,oracle獲得ddl語句Oracle
- Oracle中獲取最低效的 topSQL的語句 (引用)OracleSQL
- 獲取物件的構建語句物件
- oracle匯出dmp檔案的2種方法Oracle
- Oracle獲取資料庫中的物件建立語句Oracle資料庫物件
- 使用SQL語句獲取SQLite中的表定義SQLite
- 【ASK_ORACLE】一眼判斷出Oracle的dmp檔案是用expdp匯出還是exp匯出Oracle
- 觸發器中獲取SQL語句觸發器SQL
- 修改exp 的 匯出dmp檔案的字符集
- Oracle 從Dump 檔案裡提取 DDL 語句 方法說明Oracle
- Laravel 獲取執行的sql語句LaravelSQL
- 【IMP】使用imp工具的show選項獲取超大備份檔案中的SQL語句將非常耗時SQL
- 使用資料泵匯出DDL語句
- 如何不安裝但是獲取rpm包中的檔案
- help:如何獲取類檔案的路徑
- Java中的獲取檔案的物理絕對路徑,和讀取檔案Java
- php一句話獲取獲取檔案目錄的方法PHP
- DBMS_METADATA包獲得物件DDL語句物件
- 如何在MySQL 5.7中使用SELECT … INTO語句匯出資料檔案?MySql
- C#中獲取Excel檔案中的表名C#Excel
- 抽取exp/expdp匯出檔案頭的資訊