Solved

rman backup database and archives

Posted on 2011-09-21
5
383 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 76

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 76

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

947 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now