database backup and archiving log

Hi all

I have two scripts:

Full_db_backup.sh
ARCHIVELOG.sh

Full_db_backup.sh I have the below
backup incremental level 0 device type disk tag testTAG database plus archivelog; 
in Archivelog.sh
BACKUP ARCHIVELOG ALL tag  testTAGArch not backed up 2 times; 
My question;

can I have the below for the backup of the database?
backup incremental level 0 device type disk tag testTAG database plus archivelog not backed up 2 times; 
and if so the 'saved 2 times; not' it's only for the archivelog? or not 2 times for archivelog backups of database backed up?

Kind regards

NB wrote:
Thank you

I will still have the below question about backup of control file that you mentioned in the below:

Other point:
As you are making copy of your backupset using a padronized tag, I suggest you include current controlfile on your backup, because Autobackup have a default tag and we cannot change it.

So I suggest you do this:

backup incremental level 0 database INCLUDE CURRENT CONTROLFILE  tag 'my_backup' plus archivelog;

I can't do: Configure auto backup device type disc format control in two different places?
one on my site of the archive and the other at FRA?
Currently, I have below:

Configure the control auto backup disc format of type device to "%f".

You can create a custom script to run at the end of your backup:
This query above will create a command to get 2nd copy of your automatic backup;

The below script check the backup strengthened to FRA on autobackup dir on the last 5 minutes... you can change it as you wish.

SELECT 'backup backupset from tag '||TAG||' format ''/u01/app/oracle/'||TAG||'%U'';' FROM V$BACKUP_PIECE
WHERE START_TIME > sysdate - 5 /(24*60) and HANDLE like '+FRA%autobackup%'

Suggestion:
Disable the automatic backup before making a 2nd automatic backup copy;
Run the command to make automatic backup
Enable autobackup after 2 do an automatic backup copy;

Tags: Database

Similar Questions

  • Recovery of database of old backup and archive log file complete

    Hi expert Oracle!
    I encountered the problem where my oracle database restore.

    In my case:
    -My version of the database: 10.2.0.2
    -J' have a full database backup (01 - Nov)
    -J' have all the archived since (01 - Nov-> 05 - Nov) log file
    -My database down to 05 - Nov with disk error (no data file, not again...).
    -I have no backup RMAN (01 - Nov-> 05 - Nov)

    How to restore my database to 05 - Nov?

    Thank you

    After you RESTORE the DATABASE,

    Use the VALUE UNTIL to set the Point of recovery to 05 - Nov, and then RECOVER the DATABASE
    OR
    Use the SQL command "RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL" that will keep asking 'future' ArchiveLogs backup.

    Hemant K Collette

  • Deletion of backups of level 1 and archive logs

    Hello

    Everyone knows that "the retention policy would be applicable on level 0 backups or only full backups.

    So how will be reported what backups and level 1 backup of archive logs are no longer needed for recovery?

    And after that as the command "remove obsolete", y at - it a command to remove these unwanted 1 level and archiving logs backups?

    Any suggestion?

    Thank you
    Nitesh.

    So how will be reported what backups and level 1 backup of archive logs are no longer needed for recovery?

    If you have the revoery retention strategy window 1 day and you take backup of level 0 Sat and then consecutive level until Friday 1 daily backup, again on backup sat level 0 will be obsolete previous level 0 backup sat and its seven consecutive level 1 so is found in the archived log alls before this level 0 current backup will be marked.

    Obsolete report will show you alls backup piece and the archivelogs that are marked as obsolete.

    And after that as the command "remove obsolete", y at - it a command to remove these unwanted 1 level and archiving logs backups?

    What do you mean by backups, undesirable level 1, on what basis you say that backup of level 1 are undesirable?

    Khurram

  • Backups and Archives

    I have a doubt about the backups and archives.

    My database is in archivelog mode. Then I do a full backup of the database.

    RMAN > backup tag = "bk_level0_200809" effective additional 0 database;

    What happens with the generated archives the earliest before the backup of the database, I can remove them? or I just need to have the archives generated after the backup?

    After the first full backup, you must only archives.

    Kind regards

    Thiago Hyppolito

  • Backup of archive logs

    I have a cron job that backs up complete zero on Sunday.  I have an another cron job beginning level 1 backups, Monday to Saturday.  I have a 3rd cron that runs every 2 hours for each day of the week in order to safeguard the archive logs.

    I have concerns with the 3rd cron job.  Lets say the data in the database has not changed in the last 2 hours.  This cron job would always run this script, create another backup rman (taking more space on the server).  Is my understanding correct that rman is not smart enough to know what data has changed during backup of the Archives of newspapers so that the two components of backup are not store duplicate information? The reason why I think it's because the size of the pieces cackup for this archive log backups stop a lot of the time very similar (but not the same) in size.

    Lets say the data in the database has not changed in the last 2 hours

    That you have taken backup the archivelog at 07:00 and the next execution of the annex is at 09:00. Say that there are about 100 archives that have been backed up at 07:00. And from 07:00 until 09:00, there was that no transactions took place, in other words, that the data in the database has not changed in the last 2 hours.

    In this case, RMAN wouldn't be backup archives that have been backed up at 07:00. If there is no generated archives between 07:00 and 09:00, RMAN wouldn't save anything.

    If the archived log was not saved, it will be.
    If the archive log was not saved and is missing, you will get an error.
    If the archived log was backed up, RMAN will not back up again.

  • difference between online redolog files and archived log files

    What is the fundamental difference between archived log files and online redo log files? .. .plz keep things simple as m a newbie

    Online redo log:

    Redo online Oracle log files are filled with records of restoration by progression. A record of remake, also called entrance to roll forward, is composed of a group of agents of change, each of which is a description of a change to a single block in the database. Each instance of an Oracle database has an associated online redo log to protect data in case of failure of the instance.

    See here,
    http://download.Oracle.com/docs/CD/B10500_01/server.920/a96521/onlineredo.htm

    Archived redo log:

    Oracle Database allows you to save files to one or more destinations offline newspapers filled with repeat groups, known collectively as the archived redo log. An archived redo log file is a copy of one of the members of a group of redo log filled.

    See here,
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/archredo.htm

    Thank you

  • Standy of database backup and restore help to duplicate a database

    OK, here's my situation. I save my 11.1.0.6 database from the backup server (primary backup not suitable, who ruled out a double asset) using a recovery catalog. My goal is to restore this database under another name called (TEST) on another server using the duplicate database command. My questions are:

    (1) I know that I can save my sleep using RMAN database, but what should I back up the control file and the spfile of the primary database as well?

    (2) I use a recovery catalog (who I am already registered in the primary database only with), I have to save the elements of backup of the backup above with the recovery catalog (or are they already registered since I have connected to the catalog when you take the backup of the standby database?)

    (3) if I need backup upward the primary controlfile, can I manually copy the file to the new server or should I create by issuing a 'backup controlfile to trace' command on the primary database server and re-create it.

    I guess my points of friction would be how to publish the duplicate database command, once I have all the parts. If I'm missing something please let me know. This is a database of 1.5 TB and I only have one (1) time to get this right. Lucky me... Thank you all

    (1) I know that I can save my sleep using RMAN database, but what should I back up the control file and the spfile of the primary database as well?

    * ==> spfile must be static most of the time, so that you can make a copy whenever you make changes and save it to your backup location. In regards to your controlfiles, you can back up the database your intelligence and your backups.* database

    (2) I use a recovery catalog (who I am already registered in the primary database only with), I have to save the elements of backup of the backup above with the recovery catalog (or are they already registered since I have connected to the catalog when you take the backup of the standby database?)

    * ==> Oracle documents Oracle® Data Guard Concepts and Administration 11 g Release 2 (11.2) part number E17022-05 not shows you how this.*

    (3) if I need backup upward the primary controlfile, can I manually copy the file to the new server or should I create by issuing a 'backup controlfile to trace' command on the primary database server and re-create it.
    * ==>, You must also back up your controlfiles of RMAN. Read the Oracle Documentation above

    I guess that my points of friction would be how to publish the duplicate database command, once I have all the parts...

    * ==> There is another Oracle documentation on duplication. Oracle® backup and Guide 11 g Release 2 (11.2) part number E10642-04. * user recovery

  • backup and archiving of difference b/w

    I am a new user of fast food.
    Is there a difference in the protection and exploitation of archives.

    Hi akhilms:

    The short answer is that archiving is intended for storage of the previously saved data.

    Simplified data protection process is:

    Base server (with volumes arranged into protection groups)-> RapidRecovery-> backup (organized in recovery points)-> various operations of backup validation (mountability, mimicry, checksum verification, recovery points check etc.) -> Consolidation according to the retention policy planning (i.e. keep all 3 days recovery points, an hour for 2 days, then 1 a day for a week to 1 per month for 3 months then 1 per year for 5 years etc.).

    In addition, you can configure replication by using a different kernel of fast food. The cumulative process would be 'copy' the recovery points from the base of the source to the marrow of replication target. These recovery point would be consolidated as well (most of the time on a different schedule from the retention policy).

    If you feel it necessary to keep one or more strings of recovery (recovery points channels begins with a base image) altered by the cumulative process (consolidation) you can archive them. Archiving does NOT require another nucleus of RapidRecovery. Do that enough space with enough available memory (local, network, clouds) to complete the internal procedures Ops ARE / s a reasonable period of time.

  • [RMAN BEGINNER] Backup and recovery

    Hi all

    Can I ask a question?

    1. they are the same ARCHIVELOG = newspapers archived DB log?

    2. can I use the tracking order cross server

    #Server 1

    RMAN > run {}

    immediate stop

    Startup mount

    allocate channels disk1 disk format='d:\backup\ora_d%_%T.bak'

    backup current controlfile

    database backup and archiving log

    }

    # Server 2

    RMAN > run {}

    allocate channels disk1 disk format='d:\backup\ora_d%_%T.bak'

    restore database

    output channel disk1

    }

    I have to create before catalog?

    (1) logs archiving is essentially a copy of your recovery logs, once it is filled.  Archivelog and db archivelog terms can be used interchangeably, but essentially in a database there is a redo log, then a newspaper archive.

    Archives Redo Log Management

    (2) what do you mean cross server?  Tell you backup a database on a server and then restore to another?

    If so then Yes, you can back up a database on a single server and restore to another.  If your database is in archivelog mode, then you don't need to stop the database first.

    http://docs.Oracle.com/CD/B19306_01/backup.102/b14191/rcmrecov.htm#i1007814

    Before you launch your start command to restore your database in nomount mode, restore the controlfile, set up the database and then do your restore, recover and then open resetlogs:

    SQL > startup nomount

    RMAN > restore controlfile from "xyz";

    SQL > bootable media.

    RMAN:

    Run {}

    restore the database;

    recover the database;

    ALTER database open resetlogs;

    }

    (3) you do not need a catalog of recovery, RMAN will use the controlfile.  However, if you have several database in your environment, you can use a recovery catalog.

  • What was this last 9i database backup?

    Hi experts.

    I inherited a 9i database and I can't find the backup files to the local disk.

    I suspect that it is saved daily or weekly (a full backup), but how can I know for sure?

    Can I run a script or command to return some info?

    Thanks for your ideas.
    John

    Check the backup$ v. He can tell you when the database was finally out of backup mode hot - db backup if user managed backup hot. Ask your server sysadmin, he can know if the backups were put on tape - like via Veritas. Look for a crontab entry for a backup script. Is the database log mode archive - if not then...

    Or just forget and start again to make appropriate backups and archived logs recovery backups.

  • Backup the database with archiving logs lost

    How can I get a backup of the database when all archive logs have been lost?

    So, it looks that you use RMAN to back up, since all the archivelog went. You can do

    RMAN> crosscheck archivelog all;
    
    RMAN> delete archivelog all;
    

    then make a backup.

  • Recovery window retention policy removes the archive logs before backup?

    Hi all

    Oracle 11G on Windows 2008 R2

    This afternoon, I've changed my retention policy RMAN "RETENTION POLICY 3 REDUNDANCY"on RECOVERY WINDOW OF 3 DAYS RETENTION POLICY

    However, I checked tonight and after that my daily backup, all the archive before backup logs had been removed! So that means I don't think I can restore to any point in time, before my daily backup. All newspapers .arc were there after the backup. Then I tried another test and began the daily backup again. During the backup process, archive logs were deleted again! Now, I don't have any archives of newspapers...

    Is this good behavior OF RETENTION POLICY RECOVERY WINDOW? I thought that she would keep all the files needed for to restore me to any point in time for the previous 3 days. When I used a REDUNDANCY, with my daily backups, he kept 3 days of backups + archiving logs so that I could restore point-in-time at any point. How can I use WINDOW RECOVERY so that I can actually restore to any point in time for the 3 days?

    I wanted to change WINDOW of recovery, since I read that using the REDUNDANCY, it keeps only X copy a backup (so if I ran the backup 3 times a day, I would have only these 3).

    Thanks in advance.

    After a database RESTORE, Oracle tries to RECOVER a DATABASE.  He tries to 'find' the archivelogs for this phase in the location expected archivelog.  If they are NOT present in the location expected archivelog, it attempts to restore backups before applying them.

    Since your BACKUP... DELETE ENTRY deletes the archivelogs after that that they are saved, Oracle will have to use backups to recover the archivelogs.

    Hemant K Collette

  • Archive log deletion with no backup of the archive logs

    I suffer from enormous size archive of the newspaper. In my previous post, I asked for help. I almost 480 GB archive log every day in our database of 11 2 under redhat linux 5.8 GR. Now, if you please help me in another case.

    If I take backup of archive logs and run delete archivelog everything until ' sysdate-1' with each backup database of day how it affects. " In my opinion there should be no problem in that I have the last incremental backup and recovery 1 days archive log in archivelog destination. If I do not archive log backups to how it will be different. Help, please.

    >

    Hello

    Sir, I know how to remove. But in my opinion delete up to sysdate-1 and taking no backup of the Archives of newspapers will
    no effect. Is in my opinion is right or wrong, that is the question.

    What I read in your original post, is that you take a daily incremental backup - Yes? I'm assuming that you also take
    a full backup on a regular basis (Sunday?).

    I was working on the assumption that the foregoing is available? I worked on a project where installation has been similar. We
    tested regularly backups - I hope that you do the same thing?

    What we used to do was FTP (script Unix - cron job - if you Google you will find Python or Perl to do the same thing - that is)
    what I wanted to, but was cancelled - very 1980, anyway) the archived redo logs on to a specific computer that holds only these files.
    After FTP "d - they have been removed from the server, freeing up space.

    Now, you say you have TB 0.5 per day - while more than a week, you will need a machine with ~ 3 TB of disk - if you can get a kind
    the scenario as this place and running, then you will have both your incremental backup and your archived redo logs for the last
    24 hours and the full backup with recovery archived records dating back to this full backup. You can also always archive on tape if
    suits. So, you will have redundant coverage - 'belt and braces' as the Americans say.

    But, to answer your question directly, "take no backup of archive logs have no effect" - that is true - it
    will not affect the operation of the database server, but if I were you, I would hang on to enough archived redo log to return to the
    last backup. That's just my humble OPINION.

    HTH,

    Paul...

    Published by: Paulie July 21, 2012 19:28

  • RMAN-03009 and ORA-01858 everything by backing up archiving logs

    Hello!

    Since today, I get the above errors to backup the fra tape archiving logs. I tried the following: error ORA-01858 in RMAN during backup backupset format ' / test/rman/%U'
    If I manually do the backup for a client, it works!

    environment:
    Server: windows 2008 standard server
    Oracle: 10.2.0.4.0

    configuration of RMAN:
    CONFIGURE RETENTION POLICY TO THE 5 DAY RECOVERY WINDOW;
    CONFIGURE BACKUP OPTIMIZATION
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SNCFAPEX. ORA'; # by default

    Error log:
    Recovery Manager: Release 10.2.0.4.0 - Production on Thu Oct 1 04:30 2009

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    connected to target database: APEX (DBID = 1331326226)
    connected to the recovery catalog database

    RMAN > sql 'alter system archive log current;
    2 > run {}
    3 > #-> drive backup
    4 > backup archivelog all;
    5 > # FRA-> band
    6 > allocate channel ch1 type 'sbt_tape '.
    7 > PARMS = "BLKSIZE = 262144, ENV = (CvClientName = ora5neu, CvInstanceName = Instance001)"; "
    8 > save the recovery area.
    {9 >}
    10 >
    SQL statement: alter system archive log current

    From backup 1st October 09
    Current archived log
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = devtype 81 = DISK
    skip the log file archive D:\FRA\APEX\ARCHIVELOG\2009_09_10\O1_MF_1_2720_5BKO9BOL_. ARC; already saved 1 time
    ...
    skip the log file archive D:\FRA\APEX\ARCHIVELOG\2009_10_01\O1_MF_1_2981_5D7PZDXX_. ARC; already saved 1 time
    channel ORA_DISK_1: from archive newspaper backupset
    channel ORA_DISK_1: specification of archive log backup set
    archive log entry thread = 1 sequence = 2733 recid = 2733 stamp = 697286083
    archive log entry thread = 1 sequence = 2734 recid = 2734 stamp = 697293002
    archive log entry thread = 1 sequence = 2735 recid = 2735 stamp = 697293004
    archive log entry thread = 1 sequence = 2856 recid = 2856 stamp = 698142602
    archive log entry thread = 1 sequence = 2857 recid = 2857 stamp = 698142603
    archive log entry thread = 1 sequence = 2982 recid = 2982 stamp = 699078603
    archive log entry thread = 1 sequence = 2983 recid = 2983 stamp = 699078605
    channel ORA_DISK_1: starting piece 1 to October 1 09
    channel ORA_DISK_1: finished piece 1 to October 1 09
    piece handle = D:\FRA\APEX\BACKUPSET\2009_10_01\O1_MF_ANNNN_TAG20091001T043006_5D8520K4_. Tag BKP = comment TAG20091001T043006 = NONE
    channel ORA_DISK_1: complete set of backups, time: 00:00:03
    Backup finished on 1st October 09

    From control file and SPFILE Autobackup 1st October 09
    piece handle = D:\FRA\APEX\AUTOBACKUP\2009_10_01\O1_MF_S_699078626_5D8522W8_. Comment BKP = NONE
    File control finished and SPFILE Autobackup to on 1 October 09

    output channel: ORA_DISK_1
    allocated channel: ch1
    channel ch1: sid = 81 = SBT_TAPE devtype
    channel ch1: CommVault Systems for Oracle: Version 7.0.0 (BUILD76)

    From backup 1st October 09
    specification does not match any data file copy in the repository
    skip the log file archive D:\FRA\APEX\ARCHIVELOG\2009_09_10\O1_MF_1_2720_5BKO9BOL_. ARC; already saved 4 times
    ...
    jump key 5203 backupset; already saved 1 time
    channel ch1: from archive newspaper backupset
    channel ch1: specification of archive log backup set
    archive log entry thread = 1 sequence = 2982 recid = 2982 stamp = 699078603
    archive log entry thread = 1 sequence = 2983 recid = 2983 stamp = 699078605
    channel ch1: starting piece 1 to October 1 09
    channel ch1: finished piece 1 to October 1 09
    piece handle = i2kqm5vv_1_1 tag = comment TAG20091001T043031 = API 2.0, MMS Version 7.0.0.76 Version
    channel ch1: complete set of backups, time: 00:00:16
    entry count = 4670 stamp = 699064230 = creation_time backupset 1st October 09
    channel ch1: starting piece 1 to October 1 09
    RMAN-03009: failure of the backup command on channel ch1 at 2009-10-01 04:31:19
    ORA-01858: a non-digit character was found here where was waiting for a digital
    continue other job steps, not a not working will not re-run
    entry count = 4672 stamp = 699078622 = creation_time backupset 1st October 09
    channel ch1: starting piece 1 to October 1 09
    channel ch1: backup D:\FRA\APEX\BACKUPSET\2009_10_01\O1_MF_ANNNN_TAG20091001T043006_5D8520K4_ piece. BKP
    piece handle = i0kqm5uu_1_2 comment = API Version 2.0, Version MMS 7.0.0.76
    channel ch1: finished piece 1 to October 1 09
    channel ch1: complete set of backups, time: 00:00:07
    entry count = 4673 stamp = 699078626 = creation_time backupset 1st October 09
    channel ch1: starting piece 1 to October 1 09
    output channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on channel ch1 at 01/10/2009 04:31:35
    ORA-01858: a non-digit character was found here where was waiting for a digital

    Complete recovery manager.

    Thanks for your help!

    Ciao,.
    Christian

    See my note of the Support of Oracle:

    Subject: RMAN backup fails with RMAN-03009 ORA-01858 ORA-01861
    DOC - ID: 744047.1 Type: PROBLEM
    Modification date: 20 March 2009 status: MODERATE

    This could be a NLS_DATE_FORMAT / NLS_LANG questioned.

  • Archiving log backup RMAN

    Hi guys,.

    Can advise you on the syntax for the rman backup of archive logs generated in the last 2 days?

    Wouldn't be 1 or 2?

    Thank you!

    1 BACKUP ARCHIVELOG UNTIL ' SYSDATE-2';

    2 BACKUP ARCHIVELOG FROM TIME ' SYSDATE-2';

    Run the commands and see what is RMAN - it will show you what files it runs a backup of!

    OR

    Search the documentation
    http://docs.Oracle.com/CD/E11882_01/backup.112/e10643/TOC.htm

    Hemant K Collette

Maybe you are looking for