RMAN备份

run{
allocate channel c1 type disk;
allocate channel c2 type disk;
sql 'alter system archive log current';
backup database format '/oracle/db1/rman/full_db_%U_%T';
sql 'alter system archive log current';
backup archivelog all delete all input format '/oracle/db1/rman/ARC_%U_%T';
backup current controlfile format '/oracle/db1/rman/control_bak_%T';
backup spfile format '/oracle/db1/rman/spfile_bak_%T';
release channel c1;
release channel c2;
}

你可能感兴趣的:(备份,职场,rman,休闲)