古城热线 发表于 2018-9-14 07:27:49

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

  指定部分表数据导出
  $ expdp oracle/oracle@oratest dumpfile=20130826.dmp directory=dpdump tables=job query='"where>"'

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

  连接到: Oracle Database 11g Enterprise Edition>  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>  正在使用 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 完成)
  指定表导出
  $ expdp oracle/oracle@oratest dumpfile=20130827.dmp directory=dpdump tables=job

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

  连接到: Oracle Database 11g Enterprise Edition>  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 成功完成
  两者比较一下就能看出,部分表数据导出是成功的
  # 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

页: [1]
查看完整版本: oracle expdp导出指定表的部分数据