› Fóruns › Banco de dados Oracle › BACKUP BI › BACKUP BI
Vieri,
Segue uma sugestão para o seu backup.
Backup Full
run {
allocate channel t1 type disk;
allocate channel t2 type disk;
allocate channel t3 type disk;
backup as compressed full database include current controlfile tag ‘BKP_BI_FULL’
format ‘/uo1/backup/ora10/full/bkp_full_%d_%t_%s.rman’;
backup current controlfile tag ‘BKP_CF’
format ‘/uo1/backup/ora10/full/bkp_ctl_%d_%t_%s.rman’;
backup spfile tag ‘BKP_SPFILE’
format ‘/uo1/backup/ora10/full/bkp_spfile_%d_%t_%s.rman’;
[b]sql ‘alter system archive log current’;
backup as compressed archivelog all tag ‘BKP_ARCH’
format ‘/uo1/backup/ora10/full/bkp_arch_%d_%t_%s.rman’;[/b]
release channel t1;
release channel t2;
release channel t3;
}
Observações:
Como você configurou o Paralelismo para 4 no RMAN (No catálogo ou controlfile do banco) não precisaria alocar os 3 canais acima de forma manual, a não ser que queira somente 3.
Para o backup FULL, faça os archives junto, para deixar consistente!
Backup Incremental Level 0
run {
allocate channel t1 type disk maxpiecesize = 50G;
sql ‘alter system archive log current’;
backup as compressed backupset incremental level 0 database
include current controlfile
plus archivelog
tag ‘bi_bkp_full’
format ‘/uo1/backup/ora10/full/bkp_l0_diario_%d_%t_%s.rman’;
release channel t1;
}
Esse eu não vejo muitos problemas. Poderia mesclar com outros como esse:
run {
allocate channel t1 type disk maxpiecesize = 50G;
sql ‘alter system archive log current’;
backup as compressed backupset incremental level 1 database
include current controlfile
plus archivelog
tag [/b]’bi_bkp_L1′[b]
format ‘/uo1/backup/ora10/full/bkp_l1_diario_%d_%t_%s.rman’;
release channel t1;
}
run {
allocate channel t1 type disk maxpiecesize = 50G;
sql ‘alter system archive log current’;
backup as compressed backupset incremental level 2 database
include current controlfile
plus archivelog
tag ‘bi_bkp_L2’
format ‘/uo1/backup/ora10/full/bkp_l2_diario_%d_%t_%s.rman’;
release channel t1;
}
Agora, para o backup FULL e INCREMENTAL LEVEL 0, não muda nada, é que o backup INCREMENTAL LEVEL 0 deve ser utilizado como backup base para futuros backups incrementais, 1, 2, 3 e 4.
O padrão do RMAN é FULL, então se eu não dizer nada no comando BACKUP DATABASE, é padrão é FULL. Mas lembre-se que esse FULL não pode ser utilizado com outros incrementais. Pois incrementais nível 1,2,3 e 4 precisa da base do nivel 0.
Abraços,
Rodrigo Almeida[/b]