Oracle hot Backup through RMAN
I taking Oracle hot backup through below Rman hot backup script including Datafiles and Archive log files those archiveshen files delete after backup...actually I want keep archives in disk for one week and then remove...so what command I have to add in my Oracle hot Backup script but those archives shouldn't be duplicate in every day hot backup as well.
I already add Rman command in script but getting error.......!!!
RMAN-00558: error encountered while parsing input commands RMAN-01009: syntax error: found "archivelog": expecting one of: "controlfile" RMAN-01007: at line 25 column 8 file: standard input RMAN> 2> RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-00558: error encountered while parsing input commands RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog, backup, backuppiece, backupset, copy, controlfilecopy, datafilecopy, expired, force, global, noprompt, obsolete, proxy, script" RMAN-01008: the bad identifier was: ARCHIVE RMAN-01007: at line 2 column 8 file: standard input