当前位置:网站首页>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
边栏推荐
猜你喜欢
fastposter v2.9.1 programmer must-have poster generator
【教程】HuggingFace的Optimum组件已支持加速Graphcore和英特尔Habana芯片
MySQL Principle and Optimization: Update Optimization
紫金示例
Rich Dad Poor Dad Reading Notes
PyTorch multi-machine multi-card training: DDP combat and skills
基于 Azuki 系列:NFT估值分析框架“DRIC”
Mysql语句分析、存储引擎、索引优化等详情
Redis -- Nosql
Understanding_Data_Types_in_Go
随机推荐
BCG库简介
"NIO Cup" 2022 Nioke Summer Multi-School Training Camp 7
Based on Azuki Series: NFT Valuation Analysis Framework "DRIC"
第贰章模块大全之《 collections模块》
阿里五位MySQL封神大佬耗17个月总结出53章性能优化法则
Azure IoT Partner Technology Empowerment Workshop: IoT Dev Hack
司空见惯 - 股市狠狠下跌后,何時能反弹?
丁香园
网络初识(二)
$'\r': command not found
Go Context基本使用
宝塔面板开放Redis给指定外网机器
基于 Azuki 系列:NFT估值分析框架“DRIC”
SWIG教程《四》-go语言的封装
兆骑科创创业赛事活动发布平台,创业赛事,项目路演
【芯片】人人皆可免费造芯?谷歌开源芯片计划已释放90nm、130nm和180nm工艺设计套件
TestLink Export Use Case Transformation Tool
How to code like a pro in 2022 and avoid If-Else
websocket实现实时变化图表内容
BFT机器人带你走进智慧生活 ——探索遨博机器人i系列的多种应用