您的位置:首页 > 数据库 > Oracle

oracle expdp导出指定表的部分数据

2013-10-13 14:32 387 查看
指定部分表数据导出[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 2013Copyright (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=jobExport: Release 11.2.0.1.0 - Production on 星期一 8月 26 21:03:20 2013Copyright (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

本文出自 “zhanghr” 博客,请务必保留此出处http://zhanghr.blog.51cto.com/1762608/1308381
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: