测试 expdp 1> 建表 create table test5 ecology.test5 (id int); 2> 插入5条数据 insert into ecology.test5 vaules (1); insert into ecology.test5 vaules (2); insert into ecology.test5 vaules (3); insert into ecology.test5 vaules (4); insert into ecology.test5 vaules (5); commit; 3> 创建directory create ditectory mydata as '/data1/expdp'; grant read,write on directory mydata to ecology; 4> 导出id为1的数据 [oracle@oracle expdp]$ expdp ecology/ecology directory=mydata dumpfile=test5.dmp tables=test5 query='test5:"where id =1"' Export: Release 11.2.0.1.0 - Production on Mon Nov 11 02:26:08 2019 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Starting "ECOLOGY"."SYS_EXPORT_TABLE_01": ecology/******** directory=mydata dumpfile=test5.dmp tables=test5 query=test5:"where id =1" Estimate in progress using BLOCKS method... Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 64 KB Processing object type TABLE_EXPORT/TABLE/TABLE . . exported "ECOLOGY"."TEST5" 5.023 KB 1 rows Master table "ECOLOGY"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded ****************************************************************************** Dump file set for ECOLOGY.SYS_EXPORT_TABLE_01 is: /data1/expdp/test5.dmp Job "ECOLOGY"."SYS_EXPORT_TABLE_01" successfully completed at 02:26:19 impdp 首先导出test5的全部数据(省略) 以下为导出命令 [oracle@oracle expdp]$ impdp ecology/ecology directory=mydata dumpfile=test5-1.dmp tables=test5 content=data_only query='test5:"where id=1"' Import: Release 11.2.0.1.0 - Production on Mon Nov 11 02:38:29 2019 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Master table "ECOLOGY"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded Starting "ECOLOGY"."SYS_IMPORT_TABLE_01": ecology/******** directory=mydata dumpfile=test5-1.dmp tables=test5 content=data_only query=test5:"where id=1" Processing object type TABLE_EXPORT/TABLE/TABLE_DATA . . imported "ECOLOGY"."TEST5" 5.054 KB 1 out of 5 rows Job "ECOLOGY"."SYS_IMPORT_TABLE_01" successfully completed at 02:38:31
带where查询条件的expdp/impdp
来源:这里教程网
时间:2026-03-03 14:28:43
作者:
编辑推荐:
下一篇:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- EBS FORM PLL 开发入门
EBS FORM PLL 开发入门
26-03-03 - 揭秘阿里云WAF背后神秘的AI智能防御体系
揭秘阿里云WAF背后神秘的AI智能防御体系
26-03-03 - 使用 Oracle logminer 挖掘日志恢复误删数据以及查找操作者
使用 Oracle logminer 挖掘日志恢复误删数据以及查找操作者
26-03-03 - OpenSearch最新功能介绍
OpenSearch最新功能介绍
26-03-03 - ORA-08103对象不再存在问题分析
ORA-08103对象不再存在问题分析
26-03-03 - 数据上云,应该选择全量抽取还是增量抽取?
数据上云,应该选择全量抽取还是增量抽取?
26-03-03 - AI“绝地求生” 科大讯飞拼进“决赛圈”
AI“绝地求生” 科大讯飞拼进“决赛圈”
26-03-03 - 30分钟全方位了解阿里云Elasticsearch(附公开课完整视频)
30分钟全方位了解阿里云Elasticsearch(附公开课完整视频)
26-03-03 - 云栖大会SaaS加速器专场 | 阿里云朱以军:阿里云心选——面向渠道商的商业红利
- 关于等待事件cursor: pin S
关于等待事件cursor: pin S
26-03-03
