Here is a sample script for online backup of a database using RMAN job command.
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