rman 相同备份到不同目录下面

做两个相同的归档备份到不同的目录下面
 
run
{
allocate channel dev1 type disk;
allocate channel dev2 type disk;
sql 'alter system archive log current';
SET BACKUP COPIES 2;
backup format '/u01/log_t%t_s%s_p%p','/home/oracle/log_t%t_s%s_p%p'
archivelog all delete all input;
release channel dev1;
release channel dev2;
}
 
做相同的两个数据库备份到两个不同的目录下面
run{
allocate channel dev1 type disk;
allocate channel dev2 type disk;
SET BACKUP COPIES 2;
backup database format '/u01/log_t%t_s%s_p%p','/home/oracle/log_t%t_s%s_p%p';
release channel dev1;
release channel dev2;
}

你可能感兴趣的:(rman)