EXPDP
导出整库
expdp username/password DIRECTORY=dpump_dir DUMPFILE=full_export_%U.dat FULL=Y LOGFILE=export.log PARALLEL=4
%U 是一个自动生成文件名的占位符,PARALLEL=4 表示使用4个并行进程来执行导出。
导出某个模式
[oracle@strong ~]$ expdp system/system@orcl schemas=hr
dumpfile=hr_dump:schema_by_system.dat
[oracle@strong ~]$ expdp hr/hr@orcl directory=hr_dump
dumpfile=schema_by_hr.dat
导出特定的表
expdp system/system@orcl
tables=hr.employees,hr.jobs,hr.departments directory=hr_dump
dumpfile=table_by_system.dat
导出指定的表空间
expdp system/system@orcl tablespaces=sysaux parallel=2
directory=hr_dump dumpfile=tablespace_by_system.dat
只导出数据行
通过content参数,可以指定导出的内容:
ALL:导出表数据和元数据;
DATA_ONLY:只导出表行数据;
METADATA_ONLY:只导出元数据,即对象的定义(只导出表结构)
expdp system/system@orcl schemas=hr content=data_only
directory=hr_dump dumpfile=schema_by_system_dataonly.dat
--------------------------------------------------------------------------------------------------------------------------------------
IMPDP
导入整库
impdp system/system@orcl full=y directory=hr_dump
dumpfile=full_export.dat
导入表空间
impdp system/system@orcl tablespaces=sysaux
directory=hr_dump dumpfile=tablespace_by_system.dat
table_exists_action=replace
导入指定的表
impdp hr/hr@orcl tables=employees directory=hr_dump
dumpfile=table_by_hr.dat table_exists_action=replace
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
oracle数据库使用数据泵中导出指定用户下的表
朝印村的保安
33次阅读
2025-04-15 11:23:50
IBM大型机在国内即将落下帷幕?农业银行大型机国产替代关停!
青年数据库学习互助会
33次阅读
2025-04-07 09:57:48
oracle数据库导入导出命令!
淡定
33次阅读
2025-04-04 18:22:14
Kingbase 常用运维命令总结
小周的数据库进阶之路
29次阅读
2025-04-14 09:40:55
Oracle Administrator's Guide(Oracle 19c):3.5 Suspending and Resuming a Database
Ryan Bai
22次阅读
2025-04-24 20:30:05
10分钟教你写一个数据库
luyingjun
20次阅读
2025-04-08 19:01:52
T4模版引擎之生成数据库实体类
鲁鲁
17次阅读
2025-04-08 17:25:18
内核探究|Apache Cloudberry™ Directory Table 底层逻辑与实现原理讲解
ApacheCloudberry
14次阅读
2025-04-11 15:34:43
面试官:Java反射和new效率对比,差距有多大?
捡田螺的小男孩
10次阅读
2025-04-13 10:34:43
使用 python 收集硬件信息
老柴杂货铺
9次阅读
2025-04-02 16:47:57