Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

rman backup database and archives

Posted on 2011-09-21
5
Medium Priority
?
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

722 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