当前位置:网站首页>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.parExample 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.parExample 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
边栏推荐
- Lilac Garden
- $‘\r‘: command not found
- storage of data in memory
- Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!
- Understanding_Data_Types_in_Go
- JS entry to proficient full version
- 12海里、24海里、200海里的意义及名称
- 机器学习总结(一)
- 关于async\await 的理解和思考
- Systemui status bar to add a new icon
猜你喜欢
随机推荐
How to code like a pro in 2022 and avoid If-Else
Websocket realizes real-time change of chart content
王学岗—————————哔哩哔哩直播-手写哔哩哔哩硬编码录屏推流(硬编)(26节课)
$'\r': command not found
scala 10种函数高级应用
高薪程序员&面试题精讲系列135之你对分布式是怎么理解的?CAP理论你知道吗?
蓝帽杯半决赛火炬木wp
使用Uiautomator2进行APP自动化测试
JS 从零手写实现一个bind方法
Custom picker scroll selector style
PCL 最小二乘拟合空间曲线
antd组件中a-modal设置固定高度,内容滚动显示
阿里五位MySQL封神大佬耗17个月总结出53章性能优化法则
[Data warehouse design] Why should enterprise data warehouses be layered?(six benefits)
网络安全(加密技术、数字签名、证书)
容器化 | 在 S3 实现定时备份
1004(树状数组+离线操作+离散化)
High-paid programmers & interview questions series 135 How do you understand distributed?Do you know CAP theory?
基于 Azuki 系列:NFT估值分析框架“DRIC”
【芯片】人人皆可免费造芯?谷歌开源芯片计划已释放90nm、130nm和180nm工艺设计套件

![[Semantic Segmentation] DeepLab Series](/img/3d/f06c04522db40ad17f7f725613a035.png)






