您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
******************************** 【RMAN备份】 *************************** less /etc/crontab ##每周6进行0级别备份 30 1 * * 6 oracle sh /home/oracle/backup/L0.sh ##每周1/2/3/4/5/7进行1级别备份 30 1 * * 0,1,2,3,4,5 oracle sh /home/oracle/backup/L1.sh ------------------------------------------------------------------------ cat full.sh set oracle_sid=racdb1 rman target/ log full.log cmdfile=fullbackup.rman [root@db1 backup]# less fullbackup.rman run { allocate channel c1 device type disk; allocate channel c2 device type disk; backup database filesperset 2 format '/home/oracle/backup/full_%d_%T_%s_%p'; crosscheck archivelog all; backup archivelog all format '/home/oracle/backup/arch_%d_%T_%s_%p' ; backup current controlfile format '/home/oracle/backup/cont_%d_%T_%s_%p' ; } ------------------------------------------------------------------------ [root@db1 backup]# less L0.sh cd /home/oracle/ source .bash_profile cd /home/oracle/backup/ set oracle_sid=racdb1 rman target/ log L0.log cmdfile=L0backup.rman [root@db1 backup]# less L0backup.rman run { allocate channel c1 device type disk; allocate channel c2 device type disk; backup INCREMENTAL level =0 database filesperset 2 format '/home/oracle/backup/full_L0_%d_%T_%s_%p'; crosscheck archivelog all; backup current controlfile format '/home/oracle/backup/cont_%d_%T_%s_%p' ; backup archivelog all format '/home/oracle/backup/arch_%d_%T_%s_%p' delete input; } -------------------------------------------------------------------------- [root@db1 backup]# cat L1.sh cd /home/oracle/ source .bash_profile cd /home/oracle/backup/ set oracle_sid=racdb1 rman target/ log L1.log cmdfile=L1backup.rman [root@db1 backup]# less L1backup.rman run { allocate channel c1 device type disk; allocate channel c2 device type disk; backup INCREMENTAL level =1 database filesperset 2 format '/home/oracle/backup/full_L1_%d_%T_%s_%p'; } --------------------------------------------------------------------------
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。