当前位置:网站首页>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
边栏推荐
- const修饰的指针变量(详解)
- Custom picker scroll selector style
- Digital Collection Platform System Development Practice
- 物资采购小程序开发制作功能介绍
- Mysql statement analysis, storage engine, index optimization, etc.
- Problem solving-->Online OJ (19)
- 中学数学建模书籍及相关的视频等(2022.08.09)
- JS entry to proficient full version
- Data Types and Integer Storage
- 1004(树状数组+离线操作+离散化)
猜你喜欢
12海里、24海里、200海里的意义及名称
fastposter v2.9.1 programmer must-have poster generator
APP automation testing with Uiautomator2
领域驱动模型设计与微服务架构落地-从项目去剖析领域驱动
基于 Azuki 系列:NFT估值分析框架“DRIC”
推荐几款最好用的MySQL开源客户端,建议收藏!
阿里五位MySQL封神大佬耗17个月总结出53章性能优化法则
Zijin Example
fatal error C1083 Unable to open include file 'io.h' No such file
scala集合
随机推荐
关于async\await 的理解和思考
数据在内存中的存储
司空见惯 - 股市狠狠下跌后,何時能反弹?
metaForce佛萨奇2.0系统开发功能逻辑介绍
数字藏品平台系统开发实战
fatal error C1083 Unable to open include file 'io.h' No such file
无线网络、HTTP缓存、IPv6
BFT机器人带你走进智慧生活 ——探索遨博机器人i系列的多种应用
Azure IoT 合作伙伴技术赋能工作坊:IoT Dev Hack
网络工程师的背包(EDC总结推荐)
软件测试用例篇
易观千帆银行用户体验中心:聚焦银行APP用户体验
fatal error C1083 无法打开包括文件'io.h' No such file
解读STEAM教育中的表现性评价
学习MySQL 临时表
scala 10种函数高级应用
Basic use of Go Context
Go Context基本使用
E. Cross Swapping (and check out deformation/good questions)
Zijin Example