******************************** 【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';
}
--------------------------------------------------------------------------
创新互联长期为近千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为宝清企业提供专业的
网站设计、成都网站设计,
宝清网站改版等技术服务。拥有十载丰富建站经验和众多成功案例,为您定制开发。
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
当前名称:oraclerman数据备份-创新互联
分享地址:
http://cxhlcq.com/article/cedhci.html