rman target /1
run{2
allocate channel c1 type disk;3
allocate channel c2 type disk;4
allocate channel c3 type disk;5
allocate channel c4 type disk;6
crosscheck archivelog all;7
delete expired archivelog all; -- 删除所有已过期的归档日志文件8
delete noprompt archivelog all completed before 'sysdate' ; -- 删除归档9
-- 备份31、32数据文件(为断档后新增文件)10
backup datafile 31,32 format '/home/oracle/rman/ForStandbyDat_%U' tag 'FORSTANDBY';11
backup INCREMENTAL from scn 10789509259 database format
'/home/oracle/rman/dat_incre_%U';
12
backup current controlfile for standby reuse format
'/home/oracle/rman/standby_controlfile.ctl';
13
release channel c1;14
release channel c2;15
release channel c3;16
release channel c4;17
}18
col opname format a351
col target_desc format a152
col perwork format a123
set lines 1314
select sid,OPNAME,TARGET_DESC,sofar,TOTALWORK,trunc(sofar/totalwork*100,2)||'%' as
perwork
5
from v$session_longops where sofar!=totalwork and totalwork!=0;6
文档被以下合辑收录
评论