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

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值