• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

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?
0
it-rex
Asked:
it-rex
  • 3
  • 2
1 Solution
 
slightwv (䄆 Netminder) 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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now