Solved

rman backup database and archives

Posted on 2011-09-21
5
386 Views
Last Modified: 2012-08-14
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
Comment
Question by:it-rex
  • 3
  • 2
5 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 36576546
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
 
LVL 11

Author Comment

by:it-rex
ID: 36579848
I agree that is what I had on mind too,as it was scheduled twice a day,I just wanted to make sure.
0
 
LVL 11

Author Closing Comment

by:it-rex
ID: 36579854
thanks
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36581823
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
 
LVL 11

Author Comment

by:it-rex
ID: 36581889
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question