Problem : Oracle RMAN backup of archivelogs

Problem : Oracle RMAN backup of archivelogs

Hi,

I tend to do an RMAN coldback of my DB using a “backup database” command in RMAN and it works fine.

I am trying to use RMAN to backup the archivelogs but it keeps spitting out the following errors:

ORA-19715: invalid format c for generated name
ORA-27302: failure occurred at: slgpn

I got it to run if I used the format option and specified the output without any format parameters but it then failed once it got to the backing up the control and spfile’s.

Can someone please tell me what I am doing wrong and how to correct?

I would also be interested to see examples of anyones RMAN scripts if they are willing to share, if not.. no worries 🙂

Code Snippet:

RMAN> show all;

RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 35;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/backup/rman/%F_control_file_%d_%t_%U’;
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 1;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT ‘/backup/rman/%f_backup_%d_%t_%U’;
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM ‘AES128’; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘/backup/rman/%F_snapcf_arcsight_%d_%t_%U’;

RMAN>

RMAN> backup archivelog all format ‘/backup/rman/archive_logs/archive_logs’;

Starting backup at 05-JUN-08
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting compressed archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=80 recid=80 stamp=655421475
channel ORA_DISK_1: starting piece 1 at 05-JUN-08
channel ORA_DISK_1: finished piece 1 at 05-JUN-08
piece handle=/backup/rman/archive_logs/archive_logs tag=TAG20080605T084814 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 02:30:10
Finished backup at 05-JUN-08

Starting Control File and SPFILE Autobackup at 05-JUN-08
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of Control File and SPFILE Autobackup command on ORA_DISK_1 channel at 06/05/2008 11:18:25
ORA-19715: invalid format c for generated name
ORA-27302: failure occurred at: slgpn


Solution : Oracle RMAN backup of archivelogs

Try to follow the following format which I use successfully on many environments. Note the difference between my CHANNEL DEVICE and yours.

Additionally, when I backup my archivelog I simply use

RMAN> backup archivelog all delete input; (this deletes the archvielogs once it is successfully backed up.

No need to specify location since it’s already configured.

RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘/reco/rman/mdr/other/%F’;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ‘/reco/rman/mdr/data/%U’ MAXPIECESIZE 2 G;