当前位置:网站首页>Oracle database backup DMP file is too big, what method can be split into multiple DMP when backup?
Oracle database backup DMP file is too big, what method can be split into multiple DMP when backup?
2022-08-10 15:24:00 【commoner & mundane】
The Oracle database backup dmp file is too large, is there any way to split it into multiple dmps during backup?
Accepted answer 1:
When creating an export, split the export by time or other conditions.
Then write a shell script to cyclically export:
Example:
vim par.pardirectory=DP_DIRdumpfile=t1.dmptables=t1query=t1:" WHERE CREATED_TS >= TO_DATE('20170501 000000', 'YYYY/MM/DD HH24:MI:SS')AND CREATED_TS < TO_DATE('20170601 000000', 'YYYY/MM/DD HH24:MI:SS')"logfile=expdp_test.logcontent=data_only -- only export dataexpdp username/'password' parfile=par.par
Example 2:
Image capture:
httpshttps://www.xifenfei.com/2021/06/expdp-single-table-parallel.html
Another method is to use parallelism. It is a bit dangerous to use parallelism in the production environment. I have not used it, but it is also an idea for your reference:
Image capture:
https://www.it610.com/article/1290850473259114496.htm
I hope it helps you.If helpful, please click to accept
Other Answer 1:
When creating an export, split the export by time or other conditions.
Then write a shell script to cyclically export:
Example:
vim par.pardirectory=DP_DIRdumpfile=t1.dmptables=t1query=t1:" WHERE CREATED_TS >= TO_DATE('20170501 000000', 'YYYY/MM/DD HH24:MI:SS')AND CREATED_TS < TO_DATE('20170601 000000', 'YYYY/MM/DD HH24:MI:SS')"logfile=expdp_test.logcontent=data_only -- only export dataexpdp username/'password' parfile=par.par
Example 2:
Image capture:
httpshttps://www.xifenfei.com/2021/06/expdp-single-table-parallel.html
Another method is to use parallelism. It is a bit dangerous to use parallelism in the production environment. I have not used it, but it is also an idea for your reference:
Image capture:
https://www.it610.com/article/1290850473259114496.htm
I hope it helps you.If helpful, please click to accept
Other Answer 2:
DUMPFILE can replace variables by specifying %U, and multiple dump files can be created. The replacement variables will be from 01 to 99. For example, exp%U.dmp can be dumped into exp01.dmp, exp02.dmp, exp03.dmp and other file names.
Multiple dump files specified with %U, determined by the parameter PARALLEL.
Serving multiple files in a comma-separated list
https://docs.oracle.com/database/121/SUTIL/GUID-A6300021-419F-4C1D-AFF1-38FE1123326B.htm#SUTIL841
https://blog.csdn.net/linsuhangoracle/article/details/118960073
Other Answer 3:
https://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm#sthref44
dumpfile %U parameter description
Other Answer 4:
When exporting expdp, there are several parameters that can be specified:
1, filesize----"specify the size of a single dump file
2, %U substitution variable, can create multiple dump files
3, parallel-----" specifies the parallel process started when exporting.
If you want to export multiple files, you can use the above parameters to achieve it. Please note that generally if there is only one table and multiple parallels are started, the performance improvement is not obvious.
expdp mobile/mobile directory=DATA_PUMP_DIR dumpfile=UserBoss_20160619_25%U.dmp parallel=4 filesize=500M
边栏推荐
- 王学岗—————————哔哩哔哩直播-手写哔哩哔哩硬编码录屏推流(硬编)(26节课)
- 中学数学建模书籍及相关的视频等(2022.08.09)
- Systemui status bar to add a new icon
- 头脑风暴:目标和
- Azure IoT Partner Technology Empowerment Workshop: IoT Dev Hack
- Introduction to the Internet (2)
- pm2之静态文件服务
- How to code like a pro in 2022 and avoid If-Else
- 2022-08-10日报: Swin Transformer作者曹越加入智源,开展视觉基础模型研究
- 程序员=加班??——掌握时间才能掌握人生
猜你喜欢
消息称原美图高管加盟蔚来手机 顶配产品或超7000元
紫金示例
富爸爸穷爸爸之读书笔记
易基因|深度综述:m6A RNA甲基化在大脑发育和疾病中的表观转录调控作用
metaForce佛萨奇2.0系统开发功能逻辑介绍
MySQL 原理与优化:Update 优化
Introduction to program debugging and its use
NFT digital collection development issue - digital collection platform
Mysql statement analysis, storage engine, index optimization, etc.
JS entry to proficient full version
随机推荐
websocket实现实时变化图表内容
线上线下课程教学培训小程序开发制作功能介绍
Appium进行APP自动化测试
常见SQL、API接口等常见约定
头脑风暴:目标和
JS 从零手写实现一个bind方法
pytest框架优化
Epoll learn to think: a high performance server processing framework
[Letter from Wu Enda] The development of reinforcement learning!
“国资云”和“国家云”能给市场带来怎样的变革?
PAT甲级 1014 排队等候(队列大模拟+格式化时间)
const修饰的指针变量(详解)
CSP-J1 CSP-S1 初赛 第1轮(2022.08.09)
老板加薪!看我做的WPF Loading!!!
SWIG tutorial "four" - package of go language
Introduction to program debugging and its use
Lilac Garden
scala 基础篇
High-paid programmers & interview questions series 135 How do you understand distributed?Do you know CAP theory?
Redis -- Nosql