Chinaunix首页 | 论坛 | 博客
  • 博客访问: 662754
  • 博文数量: 163
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1625
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-24 11:40
个人简介

资深Oracle数据库专家 OCM认证大师 10年数据库相关服务及开发经验 各类数据库相关方案的编写,管理及实施 数据中心数据库日常运维、大型项目割接、性能优化等方面有丰富的实战经验 客户包括: 电信,银行,保险,航空,国网,汽车,烟草等 想要一起学习探讨数据安全技术的请加qq群 256041954

文章分类

全部博文(163)

文章存档

2017年(2)

2016年(112)

2015年(38)

2014年(11)

我的朋友

分类: Oracle

2015-01-07 15:56:51

有一次,在做异机迁移时:本地没有足够的空间存放rman备份文件,最后想到了分批次备份数据文件的方案,脚本如下:

run{
allocate channel ch1 type disk ;
allocate channel ch2 type disk ;
allocate channel ch3 type disk ;
allocate channel ch4 type disk ;
allocate channel ch5 type disk ;
allocate channel ch5 type disk ;
allocate channel ch6 type disk ;
allocate channel ch7 type disk ;
allocate channel ch8 type disk ;
backup datafile  149,66,78,77,76,70,69,68,4,21,22,23,83,82,84,17,34,35,36,18,63,64,65,80,81,38,28,27,20,19,11,10,9,172,150,151,152,26,12,25,128,129,130,127,112,126,113,171,8,119,118,117,100,99,79,125,173,153,29,3,1,7,13,14,15,24,40,41,43,44,45,46,47,48,49,50,51,52,53,71,87,97,98,101,102,103,104,105,106,120,121,122,123,124,133,134,135  format  '/bossdata/rmanbackup/bossdatafile149-135-20140416%d%U.dbf.%T';                  
release channel ch1;
release channel ch2;
release channel ch3;
release channel ch4;
release channel ch5;
release channel ch6;
release channel ch7;
release channel ch8;
}
exit;

阅读(961) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~