备份全库
包含CDB和所有PDB
run { allocate channel c1 type disk ; allocate channel c2 type disk ; backup database format '/u01/rmanbk/cap_%U' plus archivelog format '/u01/rmanbk/arch_%U'; release channel c1 ; release channel c2 ; }
备份CDB
run { allocate channel c1 type disk ; allocate channel c2 type disk ; backup database root format '/u01/rmanbk/c_%U' plus archivelog format '/u01/rmanbk/cdb_%U'; release channel c1 ; release channel c2 ; }
备份PDB
run { allocate channel c1 type disk ; allocate channel c2 type disk ; backup pluggable database bcscm format '/u01/rmanbk/p_%U' plus archivelog format '/u01/rmanbk/bcscm_%U'; release channel c1 ; release channel c2 ; }