ITPub博客

首页 > 数据库 > Oracle > rman 备份脚本

rman 备份脚本

原创 Oracle 作者:wlovely 时间:2015-07-08 09:32:54 0 删除 编辑
rman备份脚本
rman target / < run { 
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS; 
CONFIGURE CONTROLFILE AUTOBACKUP ON; 
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;
allocate channel d1 type disk;
backup incremental level 0 database format '/oracle/rman_backup/level0_%d_%s_%p_%t_%T.bak'
tag='level 0' include current controlfile;
sql 'alter system archive log current';
backup archivelog all format '/oracle/rman_backup/archivelog_%d_%s_%p_%t_%T.bak' delete all input;
release channel d1;
}
crosscheck backup;
delete noprompt expired backup;
EOF




来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10569970/viewspace-1726249/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2008-06-10

  • 博文量
    20
  • 访问量
    39854