NEW 9I RMAN: BACKUP OPTIMIZATION AND RETENTION POLICIES

제품 : RMAN
작성날짜 : 2004-05-20
NEW 9I RMAN: BACKUP OPTIMIZATION AND RETENTION POLICIES
=======================================================
오라클 9i RMAN 에서는 백업을 보다 효율적으로 할 수 있는 기능을 보강 했다.
지금 소개할 "Retention Policies" 기능을 통해서 보다 효율적인 RMAN 백업
전략을 세울 수 있다.
1. 백업 화일 최적화 방법 (Backup File Optimization)
백업 화일 최적화란 백업에 소요되는 공간을 최소화 하는 전략이다. RMAN
백업시에 같은 정보 (dbid, checkpoint, and resetlogs data 등등) 를 가지고 있는
화일이 이미 존재하는 백업 셋 내부에 있는지 체크하게 된다. 만일 같은 화일이
이미 백업 되어 있다면 BACK UP 명령은 해당 화일에 대해서는 백업을 하지 않게
된다.
이때 같은 화일이라고 판단하는 기준은 다음과 같다.
* Datafile: 같은 DBID, checkpoint SCN, resetlogs SCN 과 time. 데이타 화일은
반드시정상적으로 offline 되었거나, read-only 이거나, 또는 정상적 으로 close
되어야 함.
* Archived redo log: 같은 thread, sequence number, 그리고 같은 Resetlogs
SCN 과 time.
* Backup Set: 같은 Backup Set recid 와 stamp.
RMAN 이 백업을 수행하다가 위와 같은 조건의 화일이 이미 존재함을 확인하면
이것은 건너뛰게 될 화일의 대상이다. 하지만 이때 바로 Skip 을 결정하지 않고
정해진 Retention Policies 를 조사 한후에 Skip 여부를 결정 하게 된다.
만일 백업 명령에 DELETE INPUT option 이 사용되면 RMAN 은 백업이 Skip
되어도 화일을 지우게 된다.
RMAN 은 모든 화일에 대한 백업이 Skip 되어도 에러메시지나 경고를 보내지
않는다.
그러나 만일 데이터 화일에 대한 백업이 recovery policy window 보다 오래
된 것 이면 RMAN 은 새로운 백업 화일을 만들기 위해서 화일을 백업 하게 된다.
Note:
자체적인 expirations policy 를 가지고 있는 media manager 를 사용할 경우에는
이런 백업 최적화 정책을 사용하는 것에 신중을 기해야 한다.
백업 최적화 를 사용하기 위해서는 CONFIGURE 명령을 사용한다. CONFIGURE
명령은 명령 수행 이후에 이루어지는 모든 백업에 대해 적용이 된다.
예:
CONFIGURE BACKUP OPTIMIZATION ON; # default 는 OFF
2. Backup Optimization에 Retention Policies 적용 하기
Retention Policy 로 백업 최적화를 조절 할 수 있다. 그러나 retention policy를
사용하지 않기 위해서는 'CONFIGURE RETENTION POLICY TO NONE' 을
이용해서 명시적으로 retention policy를 사용하지 않는다고 해야 한다. 디폴트로
REDUNDANCY = 1 이 적용 된다.
     a. Recovery Window 를 이용한 Backup Optimization
만일 백업 최적화가 enable 되어 있고 Recovery Window 가 retention policy
적용을 위해서 셋업 되어 있으면 RMAN 은 항상 가장 최근의 백업이 Recovery
Window 보다 오래된 데이터 화일을 백업한다.
예를 들면 다음과 같은 조건에서
o Today is February 21.
o The recovery window is 7 days.
o The most recent backup of tablespace tbs2 to tape is January 3.
o Tablespace tbs2 is read-only.
2월 21일에 tbs2 테이블 스페이스를 테이프로 백업을 하라는 명령을 내리면,
RMAN 은 이 화일이 1월3일 이후에 변경 사항이 없는데도 불구 하고 백업을 하게
된다. 이로써 RMAN 은 최근 7일 동안에 최소한 한번의 백업이 있어야 된다는
조건을 지키게 된다.
이러한 작동 방식은 media manager 가 오래된 테잎을 제거 해도 되도록 한다.
그렇지 않다면, media manager 는 1월 3일의 백업을 무한정 가지고 있게 된다.
2월 21일에 tbs2 테이블 스페이스의 보다 최근의 백업을 만듦으로 써, RMAN 은
media manager 가 1월 3일에 백업 했던 테입을 지워도 되도록 한다.
     b. Redundancy 를 이용한 Backup Optimization
Retention policy 로 Redundancy 를 채택 한 경우에 RMAN 은 Redundancy
에 1을 더한 갯수를 초과하는 오프라인 또는 읽기 전용 화일의 백업을 건너뛴다.
이때 'CONFIGURE RETENTION POLICY TO REDUNDANCY n' 명령어로
Redundancy의 갯수를 정한다.
아래와 같은 백업 최적화 명령을 내린 경우를 예로 든다:
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
아카이브 테이블스페이스를 한번도 백업을 받은적이 없고 다음의 작업을 1주일
동안 한다고 하자.
Day Action Result Redundant Backup
Monday Take tablespace archive offline clean.
Tuesday Run BACKUP DATABASE. The archive tablespace is backed up.
Wednesday Run BACKUP DATABASE. The archive tablespace is backed up.
Thursday Run BACKUP DATABASE. The archive tablespace is backed up. Tuesday backup.
Friday Run BACKUP DATABASE. n/a Tuesday backup.
Saturday Run BACKUP DATABASE. n/a Tuesday backup.
Sunday Run DELETE OBSOLETE. The Tuesday backup is deleted.
Monday Run BACKUP DATABASE. The archive tablespace is backed up. Wednesday backup.
화요일, 수요일, 그리고 목요일의 백업은 아카이브 테이블 스페이스를 복사 해서
3개의 백업이 반드시 존재 해야 한다는 조건을 충촉 시킨다. (1+Redundancy)
금요일과 토요일에는 백업 최적화 조건에 의해서 아카이브 테이블 스페이스를
복사하지 않게 된다.
RMAN 은 일요일에는 유효기간이 지난 백업 화일을 지우게 된다. 따라서 화요일에
만든 백업은 삭제 된다. 월요일의 전체 백업은 3개의 백업이 존재 해야 한다는 조건
때문에 아카이브 테이블 스페이스를 또 다시 백업하게 된다. 이런 방식으로 백업
사이클이 진행 된다.
3. RETENTION POLICY NONE vs. DEFAULT
주의 사항:
'CONFIGURE RETENTION POLICY TO NONE' 과 'CONFIGURE RETENTION
POLICY TO DEFAULT' 는 그 의미가 같지 않다. 전자는 RETENTION POLICY
자체가 존재 하지 않는다는 의미 이며 백업은 expire 되지 않으며 'DELETE
OBSOLETE' 명령은 사용 할 수 없게 된다. 후자는 디폴트 RETENTION POLICY
(REDUNDANCY 1) 를 사용하게 된다는 의미 이다.
'DELETE OBSOLETE' 명령은 RETENTION POLICY 기준으로 expire 된 백업을
제거 하라는 명령이다.
보다 자세한 내용은 Oracle9i Recovery Manager User's Guide and
Reference의 Backup Optimization 부분을 참고 하시기 바랍니다.
--------------THE END----------------------------------------------

Hi,
Backup optimisation = +- do not copy empty space.
So, when you issue your BACKUP statement, it backs up the datafile. dot. nothing more.
In order to achieve what you're testing, look into TFM for BACKUP INCREMENTAL LEVEL x .
Regards,
Yoann.

Similar Messages

  • Rman backup with different retention

    Hi,
    I have to write script on RMAN backup retentions and policies.
    My requirement is as below:
    Daily backup Name and retentions : db_daily_bkp_sun,db_daily_bkp_mon...with 7 days retension
    Weekly backup Name and retentions : db_wkly_bkp_01,db_wkly_bkp_02...with 4 backup retension
    Monthly backup Name and retentions : db_mnth_bkp_jan,db_mnth_bkp_feb...with 12 backups
    Yearly backup Name and retentions : db_yearly_bkp_2010,db_yearly_bkp_2011,db_yearly_bkp_2012
    All backups will be full online. We have to store backups in local disk.
    We have created backup locations on disk as below.
    Daily : /orabackup/daily
    Weekly : /orabackup/weekly
    Monthly: /orabackup/monthly
    Yearly : /orabackup/yearly
    So is it possible to take such backups in RMAN without using any third party software ? If possible then please provide me such script.
    With Regards,
    Khokhar Murtuja S
    Database Administrator

    Hi,
    RMAN will make you have only one retention.
    You can have more kind of retention using the option "keep until" in your backup command.
    It'll certainly do what you need.
    Greets,
    Loïc

  • RMAN : BACKUP OPTIMIZATION ON

    Hi All,
    I have a doubt about BACKUP OPTIMIZATION ON parameter..
    If Any one worked, can u tell me the exact use of this parameter....
    Regards,
    Prabhu.

    Used to enable or disable backup optimization. Backup file optimization can assist in reducing the space used to backup the database. When performing an RMAN backup, a check is done on the file before backup to see if the file already exists in a backupset with the same information: (dbid, checkpoint, and resetlogs data).
    For archive logs, the same file means the same dbid, thread, sequence, and resetlogs data. If the DELETE INPUT option is used, RMAN deletes all the files that would have been backed up, even when the file is not included due to file optimization.
    The two possible values for backup optimization is ON and OFF as shown in the following example syntax:
    CONFIGURE BACKUP OPTIMIZATION OFF;
    CONFIGURE BACKUP OPTIMIZATION ON;
    Use caution when enabling backup optimization if you use a media manager that has an expiration policy. The media manager can expire tapes containing backups (using its media control software), and RMAN will not make new backups because of optimization. One way to protect from this is to run CROSSCHECK periodically to synchronize the repository with the media manager.
    Also note that you should consider how backup optimization works with regards to the RETENTION POLICY. RMAN will only work with files within the retention period. For example, consider performing a backup with optimization enabled and a retention period of 3 days. RMAN will only compare the datafile with backup sets within the 3 day period - even if the datafile it is about to backup hasn't changed within that 3 days.
    ofcourse the best reference is here

  • Rman backup optimization question

    Hi,
    I have come across a RAM related question and would like to understand the answer:
    The RMAN configuration has backup optimization set to ON. Which of the following commands will this setting affect?
    a) Backup Archivelog with ALL or LIKE options, b) Backup Backupset ALL, c) Backup Tablespace, d) Backup Database
    I believe all of the above are affected by backup optimization, however, only a, b and d seems correct, not c. I wonder why tablespace is not affected - it does not say read only, etc.?
    Any ideas? Thanks.

    Thanks for the quick response!
    Meanwhile I did a few tests below, and yes, tablespace does obviously not use backup optimization. But why? Doesn't the same like backup database apply? Isn't using the same retention policy?
    RMAN> backup database;
    skipping datafile 5; already backed up 2 time(s)
    RMAN> backup archivelog ALL;
    skipping archived log file /u02/fra/ORCL/ar...; already backed up 1 time(s)
    RMAN> backup tablespace example;
    input datafile file number=00005
    piece handle=/u02/fra/ORCL/backupset....
    RMAN> backup tablespace example;
    input datafile file number=00005
    piece handle=/u02/fra/ORCL/backupset....

  • Cannot Assign Archive and Retention Policies in Outlook 2010

    We are having problems figuring out how we enable Archiving and Retention tags in Outlook.  We have a new Exchange 2010 server with an Enterprise license key. We have run Microsoft Office professional plus 2010 on all of our clients (licensed through
    our volume license service agreement). We have configured an Archive mailbox store and assigned accounts to use that store. The archive mailbox appears in the users Outlook, but they cannot assign policies to folders or items. The ribbon does not show the
    option. I can see that it is configured to be part of the ribbon (when customizing the ribbon), but the option is not available to the user to actually select. I see user tags assigned to the user in Exchange, so I am at a loss as to where else to look for
    the problem.
    I see lots of documentation that says this is a licensing problem, but I am running the right components and think I have the right licensing. Is there a trouble shooting document or things I can check to make sure I have everything the way I need it to
    be?

    We found our own answer on this. Not sure why, but we had to use powershell to start the Managed Folder Assistant for the user name we had configured:
    Start-ManagedFolderAssistant -identity <username>
    My guess is that if we had waited long enough this would have resolved itself.

  • Understanding (default) archiving and retention policies and tags

    I am taking a look at archiving and policies and tags and am a bit confused. 
    If I look at the "Default Archive and Retention Policy", I see a lot of Tags assigned to this policy. On the Mailboxes tab, I see no mailboxes listed.
    although no mailboxes are listed in there, are all users that (will) have archive enabled still using this default Policy?
    I see a lot of Personal Tags in there assigned. 1 Month Delete, 1 Week Delete; Are all these tags active, or is the list you see there all tags that a user CAN personally use and assign to his folder?
    For example, what does the tag do: "1 Month Delete", Personal Tag, Delete and Alllow Recovery, Age limit for Retention 30, Retention Enable True?
    there is also a tag called "Default 2 year move to archive", with type All other folders in the mailbox. Does this mean that all users that have this policy assigned, that all their mail older than 2 years will be moved to their archive? Or can
    the user enable this tag?
    The longer I look at this list, the less I understand.... Maybe someone can give a short explanation?
    Thanks!
    Olaf

    Hi,
    For the question 1:
    Yes. Exchange Setup creates the retention policy Default Archive and Retention Policy. When you enable a personal archive for a mailbox, the Default Archive and Retention Policy is automatically applied to the mailbox if it doesn't already have a retention
    policy. 
    For the question 2:
    Users can apply these personal tags to folders they create or individual items.
    For the question 3:
    First, we should know what the "Delete and Allow Recovery" retention action do.
    Delete and Allow Recovery: This action emulates the behavior when the Deleted Items folder is emptied. Tags that have this action applied are known as deletion tags. When this action occurs, and deleted item retention is configured for the mailbox database
    or the user, messages move to the Recoverable Items folder. The Recoverable Items folder (previously known as the dumpster) provides the user another chance to recover deleted messages.
    So about the tag you mentioned above, it's a personal tag, when a mailbox item reaches its retention age(here is 30 days), the items will be deleted in the source folder and moved to the Recoverable Items folder.
    For the question 4:
    If you choose the type "All other folders in the mailbox", then this would be a Default Policy Tag (DPT). This DPT is applied to all other items where a RPT is not applied.
    For example, if you have created a retention policy tag and apply it to default folder Inbox, then Inbox folder won't be affected by a default policy tag whose type is "All other folders in the mailbox".
    Please note that a mailbox can't have more than one retention policy. If you later apply a retention policy to the mailbox, tags from the Default Archive and Retention Policy are no longer available to the mailbox.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Rman backup failure, and is generating a large number of files.

    I would appreciate some pointers on this if possible, as I'm a bit of an rman novice.
    Our rman backup logs indicated a failure and in the directory where it puts its files there appeared a large number of files for the 18th, which was the date of the failure. Previous days backups generated 5 files of moderate size. When it failed it generated between 30 - 40 G of files ( it looks like one for each database file ).
    The full backup is early monday morning, and the rest incremental :
    I have placed the rman log, the script and a the full directory file listing here : http://www.tinshed.plus.com/rman/
    Thanks in advance - George
    -rw-r----- 1 oracle dba 1073750016 Jan 18 00:03 database_f734055071_s244_s1
    -rw-r----- 1 oracle dba 1073750016 Jan 18 00:03 database_f734055096_s245_s1
    -rw-r----- 1 oracle dba 1073750016 Jan 18 00:03 database_f734573008_s281_s1
    -rw-r----- 1 oracle dba 1073750016 Jan 18 00:03 database_f734055045_s243_s1
    -rw-r----- 1 oracle dba 524296192 Jan 18 00:03 database_f734055121_s246_s1
    -rw-r----- 1 oracle dba 1073750016 Jan 18 00:03 database_f734055020_s242_s1
    -rw-r----- 1 oracle dba 4294975488 Jan 18 00:02 database_f734054454_s233_s1
    -rw-r----- 1 oracle dba 4294975488 Jan 18 00:02 database_f734054519_s234_s1
    -rw-r----- 1 oracle dba 4294975488 Jan 18 00:02 database_f734054595_s235_s1
    -rw-r----- 1 oracle dba 4294975488 Jan 18 00:02 database_f734054660_s236_s1
    -rw-r----- 1 oracle dba 4294975488 Jan 18 00:02 database_f734054725_s237_s1
    -rw-r----- 1 oracle dba 4294975488 Jan 18 00:02 database_f734054790_s238_s1
    -rw-r----- 1 oracle dba 209723392 Jan 18 00:02 database_f734055136_s247_s1
    -rw-r----- 1 oracle dba 73408512 Jan 18 00:02 database_f734055143_s248_s1
    -rw-r----- 1 oracle dba 67117056 Jan 18 00:02 database_f734055146_s249_s1
    -rw-r----- 1 oracle dba 4194312192 Jan 18 00:02 database_f734054855_s239_s1
    -rw-r----- 1 oracle dba 2147491840 Jan 18 00:02 database_f734054975_s241_s1
    -rw-r----- 1 oracle dba 3221233664 Jan 18 00:02 database_f734054920_s240_s1
    drwxr-xr-x 2 oracle dba 4096 Jan 18 00:00 logs
    -rw-r----- 1 oracle dba 18710528 Jan 17 00:15 controlfile_c-1911789030-20110117-00
    -rw-r----- 1 oracle dba 1343488 Jan 17 00:15 database_f740621746_s624_s1
    -rw-r----- 1 oracle dba 2958848 Jan 17 00:15 database_f740621745_s623_s1
    -rw-r----- 1 oracle dba 6415990784 Jan 17 00:15 database_f740620829_s622_s1
    -rw-r----- 1 oracle dba 172391424 Jan 17 00:00 database_f740620814_s621_s1

    george3 wrote:
    Ok, perhaps its my understanding of RMAN that is at fault. From the logs :
    Starting recover at 18-JAN-11
    channel m1: starting incremental datafile backup set restore
    channel m1: specifying datafile copies to recover
    recovering datafile copy file number=00001
    name=/exlibris1/rmanbackup/database_f734055020_s242_s1
    recovering datafile copy file number=00002
    name=/exlibris1/rmanbackup/database_f734055045_s243_s1
    it seems to make backup copies of the datafiles every night, so the creation of these large files is normal ?Above results indicate that you have full (incremental level 0) backup(all datafiles copies ) and there happen update/recover (applying incremental level 1) backup.So there was happen applying */exlibris1/rmanbackup/database_f734055045_s243_s1* inremental backup to full(level 1) backup.And size should be normal
    Why is it making copies of the datafiles even on days of incrementals ?
    Because after getting level 1 backup and need applying and every day will apply one incremental backup.

  • RMAN backup compression and tape hardware compression

    Hello,
    Should tape backup compression be ON and RMAN compression OFF? What is the correct Oracle answer?
    Common knowledge says that if both hardware and software compression were allowed to be enabled at the same time the resulting file in some cases may actually be bigger than the original file. Hardware data compression is done by specialized chips and faster than software compression and increases the tape performance.
    I was reading somewhere some time ago that tape hardware will actually not attempt to compress data if the the data being processed cannot be compressed any further. But even if this is a hoax, wouldn't rman compression, at the cost of CPU, save I/O bandwidth?
    Thanks.
    Edited by: MaC on Dec 19, 2010 4:00 PM

    MaC wrote:
    I just located Oracle document ID 1018242.1, which outlines:
    Use either hardware or software compression, but NOT both. Using both will actually increase the size of the resulting file. The rule of thumb is: compression + compression = no_compression.
    Sounds kind a logic.I was actually going to post the same sentence but you did find it on your own :) . Another thing which is worth to mention that from 11.2, the RMAN backup compression is licensed with 4 options, High, Medium and Low . These all three options requires you to have Advanced Compression License to buy. There is another 4th option, Default which is free from license and the compression ratio of that lies in between of Medium and Low.
    HTH
    Aman....

  • RMAN backup Optimization

    Hi gurus
    I would like to know that if I enable backup Optimization on then incremental full backup skip any files which was earlier backup? Because we may know that backup Optimization on ensure skip those files which are already taken backup.
    Database : oracle 10g 10.2.0.3
    Rabi

    None.
    Under OPTIMIZATION, an Incremental Full (i.e. L0) backup would skip a file only if it has not changed since the last L0 backup --- which wouldn't be the case with most database files.
    Even when you run Incremental Differential or Incremental Cumulative (i.e. L1 or higher) backups, the file would not be skipped.
    Hemant K Chitale

  • New at rman backup

    Dear experts!
    We always did our db backups with scripts (offline and online). Now we want to use RMAN. I have read a few tutorials over the web.
    RUN
    configure default device type to disk;
    configure channel device type disk format = "M:\rmanbackup\%d_%s_%T";
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to 'M:\rmanbackup\%F.ctl';
    configure maxsetsize to 1900M;
    backup database plus archivelog;
    backup archivelog all delete input;
    DELETE BACKUP COMPLETED BEFORE 'SYSDATE-14' DEVICE TYPE DISK;
    After two weeks the backup is obsolet. What do you think about my rman script? Are there any weak points or is it ok for first. I'll call the script once a week and do a full database export every day.
    Thanks
    Markus

    I would recommend running the configure commands once and then removing them from you weekly script.
    Might also help to configure a retention period instead of doing a delete based on a set time.
    configure retention policy to recovery window of 14 days;Then add:
    delete noprompt force obsolete;Depending on how many archive log locations you have, you may also want to change the archive log backup command to:
    backup database plus archivelog delete all input;and remove the "backup archivelog all delete input" command.
    May also help to get a text file backup of your spfile and control file (not mandatory, but you never know when it will come in handy).
    Therefore, you could run all the configure commands below once:
    configure default device type to disk;
    configure channel device type disk format = "M:\rmanbackup\%d_%s_%T";
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to 'M:\rmanbackup\%F.ctl';
    configure maxsetsize to 1900M;
    configure retention policy to recovery window of 14 days;Then change your RUN command to:
    RUN
    backup database plus archivelog delete all input;
    sql "alter database backup controlfile to trace as ''M:\rmanbackup\controlORCL9.txt''";
    sql "create pfile=''M:\rmanbackup\initORCL9.ora'' from spfile";
    delete noprompt force obsolete;
    }You could run this and see if this works for you.

  • Different retention policies for RMAN

    Hi@all,
    on our DB Server with RHEL 6 and Oracle 11.2.0.3.0 we're creating the following backups with RMAN:
    - every day at 11:00 pm Level 0 backup
    - every day at 05:00 am, 11:00 am and 05:00 pm Level 1 backup
    I've activated this retention policy:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    So every backup is obsolete after 7 days. We use the control file and no recovery catalog. We have to get so much backups in front of SLA's.
    Now (in front of our physical disk space) i want to switch the retention policy to the following:
    - Fullbackups (level 0)should be obsolete after 7 days
    - incremental backups (level 1) should be obsolete after 2 days
    - arch. redologs should be obsolete after 7 days (i like to use LogMiner and mostly i need the arch. redo logs from the last 7 days in our company)
    Is it possible in RMAN to define different retention policies for the different types of backups?
    Thanks for your help and regards,
    David

    David_Pasternak wrote:
    Hi@all,
    on our DB Server with RHEL 6 and Oracle 11.2.0.3.0 we're creating the following backups with RMAN:
    - every day at 11:00 pm Level 0 backup
    - every day at 05:00 am, 11:00 am and 05:00 pm Level 1 backup
    I've activated this retention policy:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    So every backup is obsolete after 7 days. We use the control file and no recovery catalog. We have to get so much backups in front of SLA's.
    Now (in front of our physical disk space) i want to switch the retention policy to the following:
    - Fullbackups (level 0)should be obsolete after 7 days
    - incremental backups (level 1) should be obsolete after 2 days
    - arch. redologs should be obsolete after 7 days (i like to use LogMiner and mostly i need the arch. redo logs from the last 7 days in our company)
    Is it possible in RMAN to define different retention policies for the different types of backups?
    Thanks for your help and regards,
    David
    You misunderstand what retention policy is and how it works.
    When you say 'retention policy 7 days' you are telling rman to keep everything -- all backups of all types -- that are necessary to recover to any point within the last 7 days.   If you say 7 days, rman makes the decision on what he needs to recover, not you.
    And note that all recovery begins with the most recent full backup prior to the requested point in time.   So if you are taking a level 0 backup every seven days, with a 7 day retention, six days into the cycle, you will still need the level 0 backup from 13 days ago, so rman will not consider it obsolete.

  • Rman backup

    Hi,
    I want to take one time RMAN backup with indefinite retention policy. what is the best way. I want to recover the database whenever I want may be after year time.
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    or
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 500 days;
    or
    CONFIGURE RETENTION POLICY TO NONE;
    Regards,
    DBA

    user573035 wrote:
    Hi ,
    Thanks for your reply. I decided to go as below.
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '${BACKUP_DIR}/${THEDBNAME}/cf_%d_%F';
    CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 6;
    CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE = 20G;
    This way I will have 2 backup and I will stop to take backup from RMAN. If it requires in future I can restore any of them.
    Regards,
    DBAI am confused about what you are trying to achieve here, and without knowing that, we really can't give any good advice.
    What do you mean by "I will stop to take backup from RMAN" ?
    It's sounding like you are planning on only taking one or two backups and never backing up again ..... ?
    Are you running in archive log mode? Are you taking regular full and/or incremental backups? What are you trying to achieve by holding one backup for such a long period of time? How do you think this is better than the usual practice of taking a full backup once every week or so and incremental backups daily, with a retention period specified in terms of recovery window (time) instead of redundancy (number of backups)?
    You may have some very good reasons, or simply haven't described your intent very well, but right now it sounds like you are about to head down the road to database recovery hell.

  • RMAN backups need info about available options

    Hi All
    In our new 10.2.0.3 RAC environment on windows 2003 os we have our database configured on ASM and oracle home placed on OCFS. As it is a prod environment, we do not have the comfort to shutdown the cold copy of the database and so we're running the daily rman full db backup .. however, in case of an event where the datafiles need a restore.. I am not sure if the rman backup i take will be sufficient.. I issue the below command to take the full database backup and I get a compressed back up set..
    RMAN> backup up device type disk format 'd:\database\%U' database;
    I do have the FRA configured on ASM DG but i see that this DG is almost free. could any please advice what are the options available for me to take the entire database backup (including files) which can help me restore the datafiles if necessary.. my database is about 70GB in size but is very critical for organisations functioning..
    thanks!
    Sarat.

    Thanks for the quick reply steve and werner...
    Because we are doing a daily Full database backup (compressed) I did not include the archive logs to be backed up. In our environment, we keep moving arc logs to another archive location regularly. and once back up is complete and successful we clean up all archives using another job as we no longer would need them in case if we need to restore from the RMAN backup.. and as we retain all archives between one rman bkp and the next one.. we are also not backing up these along with the database.. Is this dangerous? I thought we will always have one database copy (compressed) available on disk and can help us restore from it if required.. But my major concern is what if a datafile is accidentally deleted/ disk fails on ASM. In this case.. the RMAN backup will not be sufficient because if cannot create the physical structure.. in such a case, will configuring the FRA it self be sufficient? Do I need to perform any additional steps to ensure the physical structure can also be restored? Please advice..
    rman is configured to backup control file and sp file and my exact script looks like below .. and we run it every day
    crosscheck backup;
    crosscheck backup of controlfile;
    delete force noprompt obsolete;
    delete backup;
    backup device type disk format 'D:\oracle\DBBackUp\%U' database;
    exit;

  • Catalog addiional rman backup files

    Im trying to catalog addiional rman backup files, and getting this error:
    RMAN-07518: Reason: Foreign database file DBID: 2319619701 Database Name: SASP
    Previous activities: Database dictionary was recreated due to charset problems while exporting the database...
    Enterprise Manager was reconfigure with create repos due to same problems....
    Thanks in advance...
    Message was edited by:
    elvyscruz

    Previous activities: Database dictionary was
    recreated due to charset problems while exporting the
    database...
    Enterprise Manager was reconfigure with create repos
    due to same problems....I have not seen the full error messages that follows this one (post it if possible). However, if you recreated the database, then your database will now have a new DBID after it was recreated. You can see the current DBID of the database to see if it matches the one above.
    If it is a standby database and it is logical standby, then it will also have a different DBID.
    select dbid, name, database_role from v$database;

  • How to speed up rman backup?

    Hi,
    we are taking backup using rman. my database size is increasing.so rman backup time is increasing. so i want to spped up rman bakup performance. how to speed up rman bakup?
    Thnaks,

    My general request whenever you post the question in forum please start your question something like this:
    Oracle Version : <4 digit version> select * from v$version;
    OS Information with complete version and/or patch whatsoever.
    1. http://www.oracle-base.com/articles/10g/RMANEnhancements10g.php
    2. Re: RMAN Backup Script
    and read the reply of Adith
    You can also use set
    CONFIGURE BACKUP OPTIMIZATION ON
    Additionally review
    Restarting and Optimizing RMAN Backups
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmbackp007.htm#i1006318
    Best Regards
    Girish Sharma

Maybe you are looking for