› Fóruns › Banco de dados Oracle › Rman › Rman
Então não falta mas nenhum detalhe.
Ele só faz o backup do target, vc só faz o backup de uma base por vez.
Tente esse script aqui, é melhor para visualizar os arquivos depois.
run {
allocate channel t1 type disk maxpiecesize = 50G;
allocate channel t2 type disk maxpiecesize = 50G;
allocate channel t3 type disk maxpiecesize = 50G;
backup as compressed backupset database include current controlfile tag ‘BKP_LUIZ_FULL_HOT’
format ‘/dba/backup/bkp_full_%U.rman’;
backup current controlfile tag ‘BKP_CTL_LUIZ’
format ‘/dba/backup/bkp_ctl_%U.rman’;
backup spfile tag ‘BKP_SPFILE_LUIZ’
format ‘/dba/backup/oracle/ADMBI1/data/bkp_spfile_%U.rman’;
release channel t1;
release channel t2;
release channel t3;
}
run {
allocate channel ch1 type Disk maxpiecesize = 5000M;
sql “alter system archive log current”;
backup archivelog all filesperset 5
format ‘/backup/oracle/arch_%U_%d_%s_%t.rman’
tag ‘LUIZ_BKP’
delete all input;
release channel ch1;
resync catalog;
}
Mas oque terá em cada arquivo(backup piece) é tranparente pra vc.
Basta pedir o restore que se estiver tudo ok ele saberá aonde buscar.
No rman existe diversos comandos informativos e de relátorio
depois tente alguns como.
report schema;
list backup;
list backup sumary;