run {
allocate channel ch1 device type disk maxpiecesize=10g;
sql 'alter system archive log current';
change archivelog all crosscheck;
change backup crosscheck;
backup full database tag=DB
format '/backup/rman/%d_db_%t_%s_%p' plus archivelog format '/bakcup/rman/%d_arch_%t_%s_%p' delete all input;
backup current controlfile
format '/backup/rman/%d_ctlfile_%t_%s_%p';
release channel ch1;
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/235507/viewspace-714057/
,如需转载,请注明出处,否则将追究法律责任。