rman backup database and archives

we have just inherted a system was supported by a vendor and due to budget issues,we have to do.

looking at the back up scripts;we found these 2 scripts

runs at ===>1 am

RUN {
allocate channel d1 type disk;
allocate channel d2 type disk;
allocate channel d3 type disk;
backup check logical as compressed backupset tag='prod1_rmanbackup_compressed'
database filesperset 1 plus archivelog;
delete noprompt obsolete;
}
EXIT;


runs @===> 4 am

RUN {
allocate channel d1 type disk;
backup check logical as compressed backupset tag 'prod1_archivelogs' archivelog all delete all input;
delete noprompt obsolete;
}
EXIT;

and as I can see the 1st is for the DB an the 2nd is for the archivelogs.
the confusing thing here is that my understanding that saying

backup check logical as compressed backupset tag='prod1_rmanbackup_compressed'
database filesperset 1 plus archivelog

"plus archivelog" will include the archives;so what is the reason for the 2nd script?
Am I missing anything here?
LVL 11
it-rexAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
slightwv (䄆 Netminder)Connect With a Mentor Commented:
The first backup will backup the archived redo logs.

The only thing that comes to mind for the second one is if there some large batch transaction/process that happens between 1am and 4am and there was a need to backup the additional generated logs.

There had to be a reason they did it this way.
0
 
it-rexAuthor Commented:
I agree that is what I had on mind too,as it was scheduled twice a day,I just wanted to make sure.
0
 
it-rexAuthor Commented:
thanks
0
 
slightwv (䄆 Netminder) Commented:
I thought about this last night, are you sure both scripts run every day?

I would think the main backup would run like once a week and the archive script daily.
0
 
it-rexAuthor Commented:
The wole reason I think is to free up the destination in case of too many archives;so the the des is not jacked up and DB is stuck.
I think so
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.