oracle expdp導出指定表的部分數據

指定部分表數據導出

[oracle@oratest ~]$ expdp oracle/oracle@oratest dumpfile=20130826.dmp directory=dpdump tables=job query='"where ID like '15%' "'

Export: Release 11.2.0.1.0 - Production on 星期一 8月 26 21:02:07 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

連接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
啓動 "ORACLE"."SYS_EXPORT_TABLE_01": oracle/********@oratest dumpfile=20130826.dmp directory=dpdump tables=job query="where ID like 15% "  
正在使用 BLOCKS 方法進行估計...
處理對象類型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的總估計: 64 KB
處理對象類型 TABLE_EXPORT/TABLE/TABLE
處理對象類型 TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
處理對象類型 TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
處理對象類型 TABLE_EXPORT/TABLE/TRIGGER
處理對象類型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
ORA-31693: 表數據對象 "ORACLE"."JOB" 無法加載/卸載並且被跳過, 錯誤如下:
ORA-00911: 無效字符
已成功加載/卸載了主表 "ORACLE"."SYS_EXPORT_TABLE_01"
******************************************************************************
ORACLE.SYS_EXPORT_TABLE_01 的轉儲文件集爲:
/oradata/dpdump/20130826.dmp
作業 "ORACLE"."SYS_EXPORT_TABLE_01" 已經完成, 但是有 1 個錯誤 (於 21:02:33 完成)


指定表導出

[oracle@oratest ~]$ expdp oracle/oracle@oratest dumpfile=20130827.dmp directory=dpdump tables=job

Export: Release 11.2.0.1.0 - Production on 星期一 8月 26 21:03:20 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

連接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
啓動 "ORACLE"."SYS_EXPORT_TABLE_02": oracle/********@oratest dumpfile=20130827.dmp directory=dpdump tables=job
正在使用 BLOCKS 方法進行估計...
處理對象類型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的總估計: 64 KB
處理對象類型 TABLE_EXPORT/TABLE/TABLE
處理對象類型 TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
處理對象類型 TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
處理對象類型 TABLE_EXPORT/TABLE/TRIGGER
處理對象類型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . 導出了 "ORACLE"."JOB" 7.578 KB 21 行
已成功加載/卸載了主表 "ORACLE"."SYS_EXPORT_TABLE_02"
******************************************************************************
ORACLE.SYS_EXPORT_TABLE_02 的轉儲文件集爲:
/oradata/dpdump/20130827.dmp
作業 "ORACLE"."SYS_EXPORT_TABLE_02" 已於 21:03:34 成功完成


兩者比較一下就能看出,部分表數據導出是成功的

[root@oratest dpdump]# ls -ltr

-rw-r-----. 1 oracle oinstall 110592 Aug 26 21:02 20130826.dmp
-rw-r-----. 1 oracle oinstall 118784 Aug 26 21:03 20130827.dmp


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章