Full backup with archivelogs

I tried to do an incremental level 0 backup with archivelogs, it failed with the error messages said that can not recognize file C:\ARCHIVE\ORCL\4_1_684433700.ARC, the error code was ORA-19625. So I added "crosscheck archivelog all;" to the backup script and Redo it.
This time it succeeded, but there is still something I'm confused. I set up two folders to store the archivelogs, during the process, the archivelogs in the folders were not deleted synchronously,for example arhivelog a was deleted from one folder while the same file in the other folder was remained. Below is my backup script
RUN {
ALLOCATE CHANNEL ch00 TYPE DISK;
ALLOCATE CHANNEL ch01 TYPE DISK;
BACKUP
          incremental level 0
SKIP INACCESSIBLE
TAG hot_db_bk_level0
FILESPERSET 5
# recommended format
FORMAT '\\dell090121\rman_hotbackup\bk_full_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
# backup all archive logs
ALLOCATE CHANNEL ch00 TYPE DISK;
ALLOCATE CHANNEL ch01 TYPE DISK;
BACKUP
filesperset 20
FORMAT '\\dell090121\rman_hotbackup\al_%s_%p_%t'
ARCHIVELOG ALL DELETE INPUT;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
# Note: During the process of backing up the database, RMAN also backs up the
# control file. This version of the control file does not contain the
# information about the current backup because "nocatalog" has been specified.
# To include the information about the current backup, the control file should
# be backed up as the last step of the RMAN section. This step would not be
# necessary if we were using a recovery catalog.
ALLOCATE CHANNEL ch00 TYPE DISK;
BACKUP
# recommended format
FORMAT '\\dell090121\rman_hotbackup\cntrl_%s_%p_%t'
CURRENT CONTROLFILE;
RELEASE CHANNEL ch00;
}

Even if you have two (or more) archivelog destination directories, the "DELETE INPUT" clause in "BACKUP ARCHIVELOG ..." would delete only archivelogs which it reads for the backup. Thus, because the backup could read from dest_1 (for instance), it would archivelogs from dest_1 but not from dest_2. The Backup is free to backup files at either dest location and delete only what it has backed up, by default with "DELETE INPUT".
However if you specify DELETE ALL INPUT, then Oracle deletes all copies of the ArchiveLogs.
Thus your backup command would be
BACKUP ARCHIVELOG ALL DELETE ALL INPUT;where the first "ALL" is "all archived log sequences available, but only 1 copy of each" while the second "ALL" is "all copies of each archived log backed up by the BACKUP"

Similar Messages

  • RMAN backup with archivelog (pros/cons)

    When performing a "backup database with archivelogs" where does rman store the info contained in the archive logs. If I do a backup like this do I still need to keep the archive logs out on disk? Does this increase time to do backups? I have some production databases that are close to 500gb. Wondering what the pros/cons are doing a backup this way.
    Thanks All!

    user10784896 wrote:
    When performing a "backup database with archivelogs" where does rman store the info contained in the archive logs. The info stored in the archive logs (what you asked about, but probably not what you meant) is stored in the archive logs. The backups of those logs are stored in a backup set. The information about the logs is stored in the control file.
    If I do a backup like this do I still need to keep the archive logs out on disk?
    You have backed them up, right? Archivelogs are not actively used by the running database, right? If you don't delete them after they are backed up, let me know who you buy your disk storage solutions from, as I'd like to buy stock in that company.
    Does this increase time to do backups? Anything you do "increases time to do" vs. not doing something. (The most efficient SELECT statement is the one not executed). The question is does this have a practical, measurable degradation of performance that is intolerable to my organization? The answer undoubtedly "no".
    I have some production databases that are close to 500gb. Wondering what the pros/cons are doing a backup this way.
    Pros are you can recover your database.
    Cons are, you can't recover your database.
    And it looks like we need to point out that the housekeeping of your archivelogs can and should be handled by rman, not outside of it. Look at "backup archivelog not backed up n times" and "delete archivelog backed up n times", and other variations of 'backup archivelog' and 'delete archivelog'.
    >
    Thanks All!

  • Problem with full backup with copy only in maintenance plan sql server 2008

    Hello
    I am starter DBA for sql server in general
    I have problem related to backup with maintenance plan in sql server 2008 and 2008 r2
    I created maintenance plan to take full back up  with copy only option checked, but when I check the back up in backupset table is_copy_only column it shows 0 for databases that I run job for.
    I did the same steps on sql server 2012 and I checked backupset table is_copy_only column it shows 1 for databases that I run job for .so it works as it should be
    Note: all the servers I mention here are production servers 

    Copy-only Backup  by using GUI ( SSMS) in SQL Server 2008 but it was not available in  Maintenance Plan "Back
    Up Database Task". Now in SQL Server 2012 It is included in "Back Up Database
    Task". 
    http://sqlage.blogspot.in/2013/06/dba-maintenance-plan-back-up-database.html

  • HT1766 full backup with other pc?

    how to sync(full backup ) iphone with new itunes with out losing  or (restoring) anything ?

    Maxto wrote:
    how to sync(full backup ) iphone with new itunes ... ?
    If you do not have access to the iTunes Library on your Old computer... or its Backup...
    See these 2 Links...
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141
    If you do have access...
    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751

  • Rman backup with archivelog from tape

    Hi,
    We are doing a level 0 backup on sunday and then level1 backup on all the weekdays.
    The archive logs generated are 1GB each and are more in number.
    IF we include archivelog in level1 backup , its taking around 12hrs to complete.
    So we are thinking of not including the archivelog in level 1 backup,but then we can daily move the archive logs to another location .
    So archivelogs will not be in the rman backup.
    So in case of restore, how can we apply the archive logs required? rman will not identify the archive logs...how can we manually apply the required archive logs
    Please help

    Information about ArchiveLogs is available in the controlfile as I outlined in my response post in the thread How to find out which archived logs needed to recover a hot backup?
    However, if your CONTROLFILE_RECORD_KEEP_TIME is 7 days and you are attempting a restore of a backup 14 days or 28 days or 35 days old ... you may be out of luck.
    You'd need to maintain a listing of ArchiveLogs in some manner (e.g. a log file outside the database that you periodically update with information about ArchiveLogs).
    It is much better to also backup the ArchiveLogs using RMAN. Don't forget to ensure that controlfile backups or autobackups are also taken and retained.
    Hemant K Chitale

  • How to take full backup with expdp

    two node rac
    5 node application
    windows
    version 10.2.0.4
    can you please correct me below query to take full backp with expdp
    expdp directory=datapump_dir dumpfile=full_dbexp.dmp logfile=expdp_full.log full=y

    856483 wrote:
    any suggestions plsPatience, Grasshopper
    You posted this follow-up a mere NINE minutes after your previous post.
    This forum is not a chat line, and it is not paid support.
    No one is responsible for monitoring it and giving a quick response.
    Furthermore, it is a global forum. The person with the information you seek may very well live 20 time zones away from you and was going to bed just as you posted. He will not even see your post for several more hours.
    Your original post went up in the middle of the night for half the world.
    No one with the information you seek is deliberately withholding it until you sound sufficiently desperate.

  • RMAN backup with archivelogs.

    Dear all,
    Can i delete all archivels after the RMAN backup. Why do we backup archivelogs with RMAN backup. I think it is useless.
    Please can somebody explane this.
    Regards
    upul indika

    Why do we backup archivelogs with RMAN backup. I
    think it is useless. You think backing up archivelogs is useless ? Did you ever recover a database ? Did you ever simulate a disaster recovery ? If yes, how did you do it ? If not, then you should have a look at the documentation
    Anyway, you can (or even you should) delete archivelogs after the RMAN backup.

  • Find backup with archivelog which contains scn no

    Hi All,
    DB -10g
    Is there any possibilty to find a backup piece, if we know the scn number ? Also, need to know, one more thing, if I have level 0 backup from sunday and level1 backup till thursday. Now, level backup generates 10 archives.
    Now, if i need to recover till thursday, do i needf to have those archives. I belevie, not, beacuse,we have level1 backup. Would appriciate, your thoughts on this.
    hare krishna

    Amit Beheria wrote:
    Thanks Kamran, this means, I do not need to have archivelogs as long as I have incremental backup.If you have incremental backups taken after level 0 backup, then you don't need archived redo log files generated between level 0 and level 1 backups
    Actually, I have a scenario, where,we use rman backup to refresh our uat database and for target location, we have some scripts, which we used to refresh uat database. Until I haven't any information about those script and can't provide anything for you
    those scripts also , require controlfile backup from source database. Now, I am facing an issue, where on target, rman trying to restore a file, which does not have in backupset and it was created after the backup has completed on source. Firstly you need to refresh that database and then restore the datafile. You need to have backup of that datafile inside your backup (either in incremental or in the archived redo log files) to be able to restore it.
    may be, the latest timestamp controlfile shipped to target location and from there it has the entry a newly created file, but when we actually execute them while restoring a file, it got failed, becuase it does not exist.hare krishna

  • RMAN Backups with retention policy to redundancy 1 doesn't work fine.

    Hi experts,
    I have a Oracle database with the following system backups:
    Monday:       ArchiveLog Backup
    Tuesday:      Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup
    Saturday:      ArchiveLog Backup
    Sunday:       ArchiveLog Backup
    ArchiveLog Backup = backup tag  'ARCHIVELOG_BACKUP' device type disk archivelog all not backed up delete all input;
    Full Backup = backup tag 'FULL_BACKUP'  device type disk database skip readonly  plus archivelog tag 'FULL_BACKUP_ARCHIVELOGS';
                         crosscheck backup;
                         crosscheck copy;
                         delete noprompt obsolete;    
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 8;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    What this system has done until last two weeks? For example:
    Tuesday :     Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup - > After that, Full backup from Tuesday and ArchiveLog backups from Wed, and Thurs, are deleted. (Thanks to Retention policy) .
    What this system do now?
    Tuesday :     Full Backup
    Wednesday:  ArchiveLog Backup
    Thursday:     ArchiveLog Backup
    Friday :         Full Backup - > After that, Full backup from Tuesday are deleted but not ArchiveLog backups from Wed, and Thurs.
    When I execute a crosscheck on RMAN return that all are AVAILABLE.
    My question is: What is right? The system backups before or after?
    Thanks for your help!

    You are confused about the purpose of crosscheck.
    There are two concepts for which you must grasp the distinction.
    - Expired
    - Obsolete
    Expired
    When an archive log is written, or rman makes a backup, a record of that archivelog or backupset is written to the repository in the control file.
    Crosscheck simply checks the existence of the archivelogs or backupsets that are recorded in the repository.  If something went missing (say, if you used an OS command to delete archivelogs), the record of the missing file is marked as 'expired'.  If you follow the crosscheck command with a 'delete expired' command, the repository records that have been marked 'expired' are deleted from the repository, so rman has no more memory of those files.  Note that 'expired' has nothing to do with retention policy.  Also note that if you do not actually issue the 'delete expired' command, the expired records will remain in the repository. 
    Obsolete
    The retention policy deals with when a backupset is obsolete, meaning it is no longer needed to protect the retention period.  Backupset are not marked as obsolete.  They are evaluated for obsolescence at the time of a command that needs it -- "report obsolete" or "delete obsolete", or when FRA maintenance requires an implied 'delete obsolete'.

  • Keeping ARCH and Deleting FULL backups on RMAN

    Dear all,
    RMAN deletes all my full backup and archivelogs in 2 days with;
    DELETE NOPROMPT OBSOLETE RECOVERY WINDOW OF 2 DAYS;
    But I want to keep archivelogs at least 9 DAYS and delete just the FULL backups after 2 DAYS. How can i set this?
    Any recommendations?
    Regards

    You reported the Sybrand's post as an "abuse to consider" to the mod. Not to take a part or the other, but Sybrand made several points you should yourself to consider up front :
    1. you claimed your problem as an emergency case, it is considered as rude in a public forum based on volunteers.
    2. also you did not provided any information which can make difference, as the minimum of Oracle version (and OS...), for one who want to be considered as an emergency, that's rather strange, no one here is sitting next to you
    3. Sybrand gave you a command to run that you should see the suggestion resulted
    4. He also made a point about the documentation, whether it can appears rude to you, it's always, ALWAYS, good to show exactly to your peers what you have done so far to solve your problem, based on what docs...
    5. We could also point you a link such as How to ask question
    Please, keep it in mind, and come down.
    Nicolas (moderator).
    PS: without saying that 2 mods spent their time to proceed with your faulty reported abuse case
    Message was edited by: Nicolas.Gasparotto

  • Hot Backup with RMAN question.

    Hi all.
    We want to make a full backup with RMAN every night with the db up. Version 9i in archive log mode.
    My question is if with the command:
    backup database plus archivelog delete input format 'MY_FORMAT_STRING';
    will store all the files needed for the recovery in one file or I need to backup some other file or do more actions. The backup will be consistent?
    Regards.

    By using this command you are only taking the backup
    all the database files plus all the archived logs
    needed for point on recovery.
    But still you will have to take the backup of Control
    file and parameter files. Which you do by configuringi think its not
    RMAN> configure controlfile autobackup off
    2> ;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP OFF;
    new RMAN configuration parameters are successfully stored
    RMAN> backup database
    2> ;
    Starting backup at 28-NOV-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\UNDOTBS01.DB
    F
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\USERS01.DBF
    input datafile fno=00005 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL\ORCL\DATA.DBF
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NNNDF_TAG20071128T151313_3NTHSTK9_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 28-NOV-07
    channel ORA_DISK_1: finished piece 1 at 28-NOV-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ORCL\BACKUPSET\2007_11_28\O1_MF_
    NCSNF_TAG20071128T151313_3NTHV8S5_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 28-NOV-07
    RMAN>backup database backup controlfile as well spfile but its better backup control file separately after backing up the database plus archivelog cause a backup set info within control file which will not be in control file which is just backed up by backup database .
    Khurram
    null

  • Create Incremental Full Backup

    Hey, I thought I created an incremental full backup with attached rman script.
    But at the point of restoring the database it comes up, that I just have an incremental backup of the source database.
    Whats wrong in my configuration ? I like to have a daily full backup of the database where just the changes to the full backup are backed up. But the backupfile should always be a full backup.
    I am using 10gR2 Standard Edition
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/app/control_%F';
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/backup/app/LEVEL0_%u_%T';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/oracle/product/10gR2/db_1/dbs/snapcf_db01.f'; # default
    # Database RAC Logswitch
    sql 'alter system archive log current';
    # Fullbackup Database - Perform incremental level 0 backup
    run {
    BACKUP incremental level 0 format '/backup/app/%d_Level0_%T_%U' database PLUS ARCHIVELOG format '/backup/app/%d_A
    rchivelog_%T_%U';
    }

    An Incremental Backup is a fresh backup of all the changes that have occurred in the database since the last backup.
    Thus, a Level 1 Incremental Backup is a smaller backup than the preceding Level 0 Backup.
    However, when you say :
    I like to have a daily full backup of the database where just the changes to the full backup are backed up. But the backupfile should always be a full backup.You seem to want an Incrementally Updated Backup. That is a backup strategy where your Backup itself is updated.
    I am not sure if this is available in the Standard Edition.
    Here's documentation on Incrementally Updated Backups : at 4.4.3 Incrementally Updated Backups: Rolling Forward Image Copy Backups
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm#sthref408
    While this is the "normal" Incremental Backups : at 4.4 RMAN Incremental Backups
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm#sthref383
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Need instructions for restoring a Photoshop Elements 3 backup with incrementals

    This seems like it should be in the documentation, but I can't find it.  The help docs only seem to explain restoring a full backup.
    I've done a full backup with PSE 3, and have also done a couple of incremental backups since.  I'm putting these all on an external USB hard drive, with each backup (full and incremental) in its own folder.
    If I had to restore the entire catalog in the future, should I start by restoring the full catalog, and then go back and restore each incremental backup on top of what I've already done?
    Or should I start at the last incremental and restore it first.  And if I did that, would PSE automatically restore all previous incremental backups from that point and the original full backup, or do I need to go back and restore all of those manually?
    Thanks for your help.
    Terry

    This seems like it should be in the documentation, but I can't find it.  The help docs only seem to explain restoring a full backup.
    I've done a full backup with PSE 3, and have also done a couple of incremental backups since.  I'm putting these all on an external USB hard drive, with each backup (full and incremental) in its own folder.
    If I had to restore the entire catalog in the future, should I start by restoring the full catalog, and then go back and restore each incremental backup on top of what I've already done?
    Or should I start at the last incremental and restore it first.  And if I did that, would PSE automatically restore all previous incremental backups from that point and the original full backup, or do I need to go back and restore all of those manually?
    Thanks for your help.
    Terry

  • Speeding up full backup of Replicate database ASE 15.5

    Greetings all
    I need to speed up replicate database backup.
    ASE version 15.5
    Adaptive Server Enterprise/15.5/EBF 20633 SMP ESD#5.2/P/RS6000/AIX 5.3/asear155/2602/64-bit/FBO/Sun Dec  9 11:59:29 2012
    Backup Server/15.5/EBF 20633 ESD#5.2/P/RS6000/AIX 5.3/asear155/3350/32-bit/OPT/Sun Dec  9 08:34:37 2012
    RS version
    Replication Server/15.7.1/EBF 21656 SP110 rs1571sp110/RS6000/AIX 5.3/1/OPT64/Wed Sep 11 12:46:38 2013
    Primary database is 1.9 TB about 85% occupied
    Replicate database is same size but used about 32%  (mostly dbo tables are replicated)
    As noted above backup sever is 32 bit on AIX.
    SIMILARITIES
    Both servers use SAN with locally mounted folder for backup files/stripes.
    Databases are on  'raw' devices for data and log
    Both backup servers have the similar RUN files with following
    -N25 \
    -C20 \
    -M/sybase/15/ASE-15_0/bin/sybmultbuf \
    -m2000 \
    Number of stripes are 20 for both primary and replicate databases.
    DIFFERENCES
    Replicate has less memory and less number of engines.
    Devices on primary are mostly 32 GB and those on replicate are mostly 128 GB
    OBSERVATIONS
    Full Back up times on primary consistently about 1 hour.
    Full Back up times on replicate are consistently double that (120 to 130 minutes).
    Full Backup with suspended  replication or with minimal activity does not reduce the run times much.
    What do I need to capture to pinpoint cause of the slow backup on replicate side ?
    Thanks in advance
    Avinash

    Mark
    Thanks for the inputs.
    We use compression level 2 on both primary and replicate.
    This was tried out before upgrade to 15.5 and seems good enough.
    BTW on a different server I also tried new compression levels 100 and 101.
    for database of same size and did not get substantial reduction in run times.
    Stripe sizes increased from 23 GB to 30-33 GB.
    As far as I have noted Replicate side is not starved for CPU.
    sp_sysmon outputs during the backup period do not show high CPU usage.
    Wll it be accurate to to say that like a huge report query,  backup activity also churns the caches ?
    (i.e. each allocated/used page if not found in the cache is brought in cache by a physical read )
    Avinash

  • Scheduled backups with Enterprise Manager

    Hi all,
    I have shceduled a full backup with Entreprise Manager 10g. Previusly I went to Backup settings and I have specified the path. The test executed sucssesfully.
    Then, once the backup was executed, it fails, but I can see any log from the Enterprise Manager on Backup Reports. Does somene know where I can find the backup logs?
    Thanks in advance!
    Víctor.

    When u r using oracle EM to schedule the backup it is actually using RMAN at the backend so you should provide the location of the backup log file aswell, only then it will generate the log file.
    The following are the command line RMAN parameters in which log is one of them,
    target
    catalog
    nocatalog
    cmdfile
    LOG
    trace
    append
    debug
    msgno
    send
    pipe
    timeout
    checksyntax

Maybe you are looking for