Here is a sample script for online backup of a database using RMAN job command.
1 2 3 4 5 6 7 8 9 10 11 12 | RMAN > run { configure controlfile autobackup format for device type disk to 'd:/rmanbackup/%F' ; configure controlfile autobackup on ; allocate channel d1 type disk; backup tag FULL_DB format 'd:/rmanbackup/db_%t_%s.bk' ( database ); sql 'alter system switch logfile' ; sql 'alter system archive log current' ; backup archivelog all ; release channel d1; } |
meda Edited answer 05/03/2022