RAC RMAN backup

Hello

DB is 10.2.0.4 OS = BSG (CARS with 2 nodes BD01, db02). Here are the types of automated RMAN backups taken on db01.

-OCR
-Voting record
-Talespaces Snapshot
-Archivelog (hourly)
-Backup incremental level 0 (SUNDAY)
-backup incremental level 1 (Mon - Sat)
-Automatic backup of the control file and SPFILE (CONTROLFILE AUTOBACKUP ON)

Two big questions please. First of all, are these types of backups/backup are enough to RESTORE FULL speaking of RMAN backup on a RAC environment with 2 nodes? Otherwise please suggest what I need to backup?

Second, home backup location is /rman that I can see on db01 ONLY. This directory of /rman that I don't see on db02. My question is what db02 failure can I restore from directory /rman? or do I need to automate the backup also schedules on db02 separately?
[root@db01~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.9G  2.9G  814M  79% /
/dev/sda3             190M   34M  147M  19% /boot
tmpfs                  16G     0   16G   0% /dev/shm
/dev/mapper/VolGroup00-LogVol05
                      3.9G  137M  3.6G   4% /home
/dev/mapper/VolGroup00-LogVol03
                      3.9G  225M  3.5G   6% /tmp
/dev/mapper/VolGroup00-LogVol02
                      7.8G  3.7G  3.8G  50% /usr
/dev/mapper/VolGroup00-LogVol04
                      3.9G  379M  3.4G  11% /var
/dev/mapper/VolGroup00-ORACLE_BASE
                       12G  8.7G  2.6G  78% /oracle
10.10.28.140:/vol/px4cinconso
                       40G  1.4G   39G   4% /inconso_px
/dev/mapper/36001ec9000d5ea810000061349015d98
                      1.3T  551G  665G  46% /rman
[root@db02~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.9G  887M  2.9G  24% /
/dev/sda3             190M   34M  147M  19% /boot
tmpfs                  16G     0   16G   0% /dev/shm
/dev/mapper/VolGroup00-LogVol05
                      3.9G  137M  3.6G   4% /home
/dev/mapper/VolGroup00-LogVol03
                      3.9G  261M  3.5G   7% /tmp
/dev/mapper/VolGroup00-LogVol02
                      7.8G  3.7G  3.8G  50% /usr
/dev/mapper/VolGroup00-LogVol04
                      3.9G  355M  3.4G  10% /var
/dev/mapper/VolGroup00-ORACLE_BASE
                       12G  6.5G  4.8G  58% /oracle
10.10.28.140:/vol/px4cinconso
                       40G  1.4G   39G   4% /inconso_px
[oracle@db01~]$ rman target /

Recovery Manager: Release 10.2.0.5.0 - Production on Fri Feb 24 11:49:59 2012

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

connected to target database: F1 (DBID=1245145263)

RMAN> show all;

using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 28 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/f1/fullbackup/%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 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 '/oracle/product/10.2.0/db/dbs/snapcf_f11.f'; # default
# Script for backup

level0 ()
run {
  allocate channel c1 type disk  maxpiecesize 2000M format '/rman/$ORACLE_SID/fullbackup/$ORACLE_SID-data-%U-%t';
  allocate channel c2 type disk  maxpiecesize 2000M format '/rman/$ORACLE_SID/archive/$ORACLE_SID-arch-%U-%t';
  backup incremental level 0 tag = weeklyfull database channel c1 
  plus archivelog tag = ARCH_$TODAY delete all input channel c2;
  release channel c1;
  release channel c2;
}

run {
  allocate channel c1 type disk;
  delete noprompt obsolete;
  release channel c1;
}
Bundle of thanks.

Kind regards

Published by: 910385 on February 24, 2012 03:00

Hi 910385,
The error on the node db02

ORA-19504: cannot create the file ' / rman/fp1/backup/c-1245145263-20120210-11.

is caused by your installation.
You have a /rman of mount point visible only on the node db01.
The controlfile autobackup setting triggers the creation of a backup of the controlfile:
-during the rman backup (this seems to work only on db01)
-in the case of a structural change in the database (eg. Adding a data file).
Sessions to make a structural change can be connected to one of your two instances, but the instance on db02 cannot create controlfile autobackup in /rman.
You must change the configuration and put the backup on a shared disk that is seen by the two systems.
Strangely, you have a shared file system:

10.10.28.140:/vol/px4cinconso 40G 1.4 G 39G 4% /inconso_px

Better would be to make a second for rman...
Kind regards
Tycho

Tags: Database

Similar Questions

  • RMAN backup and restore into Production KEEPS RAC and DATA

    Hi gurus of the Oracle

    We need the expert advice for tune and cross check the RMAN Script for Production environment below below

    Please suggest any corrections or comments on below mention scripts which will be executed on RAC and Production DATA GUARD environment

    LINUX RHEL 5.5 64-bit
    ORACLE GRID Infrastructure R2 Version 11.2.0.3.0 (we use ASM Cluster File system)
    ORACLE11g R2 Version 11.2.0.3.0

    We planned for basically rman backup drive using control file target instead of recovery catalog database

    We will have Data Guard Setup between 2 remote sites of database and two remote sites have running the local 2-node RAC database

    =========================RMAN_Full_Backup.sh=========================================================================
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_backup_lvl0_orcldb_ %m %y hour %M %S %d ".log
    # Start rman backup
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
    run
    {
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
    include current controlfile
    tag 'datafile_full ';
    }

    run
    {
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    overlap archivelog all;
    SQL 'alter system archive log current';
    backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
    tag 'archivelog_full ';
    }
    cross-checking of backup;
    delete noprompt obsolete;
    Save the list of database;
    EXIT;
    EXPRESSIONS OF FOLKLORE
    ==================================================================================================
    =========================================RMAN_Inc_Backup.sh ===========================================
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_backup_lvl1_orcldb_ %m %y hour %M %S %d ".log
    # Start rman backup
    # use only the following line if this script is run via the root CRON
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF

    Run {}
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
    include current controlfile
    tag 'datafile_Incr ';
    }
    Run {}
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    overlap archivelog all;
    SQL 'alter system archive log current';
    backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
    tag 'archivelog_full ';
    }
    cross-checking of backup;
    delete noprompt obsolete;
    backup from the list;
    EXIT;
    EXPRESSIONS OF FOLKLORE
    -bash - $3.2
    ====================================================================================================
    ===================================RMAN_DB_Restore.sh====================================================
    -bash-3, $ 2 cat /home/orarac/RMAN_Scripts/RMAN_DB_Restore.sh
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_restore_orcldb_ %m %y hour %M %S %d ".log
    # use only the following line if this script is run via the root CRON
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
    Run {}
    BOOTABLE MEDIA FORCE;
    RESTORE THE DATABASE;
    RECOVER THE DATABASE;
    ALTER DATABASE OPEN;
    }
    EXIT;
    EXPRESSIONS OF FOLKLORE
    ====================================================================================================

    Concerning
    Hitgon

    Thank you mseberg

    This command is the full backup or a backup of level 0?

    full backup as compressed backupset
    data include current controlfile more archivelog deletion entry;

    We use command below for the full backup of database.
    database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
    include current controlfile
    tag 'datafile_full ';

    We use the command below to the increment backup
    database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
    include current controlfile
    tag 'datafile_Incr ';

    What is the different when we use
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

    or

    full backup as backupset compressed database include controlfile current more archivelog delete all input;

    Concerning
    Hitgon

  • Copy the RAC ASM RMAN backups

    Hi, I have a database (RHEL 5.8) RAC 2 nodes with shared ASM storage. RMAN makes daily backups on this ASM storage too. How could copy backups of the ASM to another place? I use version 10 gr 2 db, and there is no 'cp' command in asmcmd.

    How could copy backups of the ASM to another place? I use version 10 gr 2 db, and there is no 'cp' command in asmcmd.

    You can use RMAN to do it.

    Use the command

    RMAN>  backup backupset from ... format '' ;
    

    Example here:
    Re: Move ASM backups to disks

    Using the tag:
    Re: RMAN to the ASM and network file system

    Published by: Levi Pereira on April 4, 2013 11:39

  • RMAN backup on a RAC env

    We have a 2 camera database Oracle Enterprise Linux version 11204 node.

    Please can you advice as to why my RMAN backup, ongoing assessment of the default value, so as ive defined the location of backup as below?

    RMAN > show channel;

    RMAN settings for database with db_unique_name GEOHUBPR are:

    CONFIGURE CHANNEL DEVICE TYPE DISK CONNECT 1 ' *';

    CONFIGURE THE CHANNEL 2 DEVICE TYPE DISK CONNECT ' *';

    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' / mnt/san/odanfs/rman_backup/%D_%U.bak';

    run

    {

    SAVE as COMPRESSED BACKUPSET TAG 'geohubpr_L0_db' SIZE EXTRA 0 DATABASE;

    BACKUP to COMPRESSED BACKUPSET TAG 'geohubpr_L0_arc' ARCHIVELOG ALL NOT SAVED;

    }

    Kind regards

    There is a syntax error, you must add the word "database":

    RMAN > backup incremental level 1 CUMULATIVE as Tablet backupset TAG 'geohubpr_L1_db' format ' / mnt/san/odanfs/rman_backup/%D_%U.bak' DATABASE;

    Also include the archives in your backup

    Concerning

  • Consistent test 'copy' of RMAN backup outside the ASM (RAC)

    Hello!
    We create consistent backup RMAN in our CARS (ASM with FRA) environment.
    Safeguard measures looks like:
    alter system set cluster_database=false scope=spfile sid='HAC4';
    srvctl stop database -d HAC
    Then we begin the RMAN backup script as (database is closed to the ground before):
    run {
    startup mount;
    allocate channel t1 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
    allocate channel t2 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
    SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/rman_backup/HAC/cold_backup/HAC_%F_ctl';
    backup as copy database include current controlfile;
    }
    After backup, we realize:
    alter system set cluster_database=true scope=spfile sid='HAC4';
    shutdown immediate;
    and later
    srvctl start database -d HAC
    This backup backup files are placed on the area of local disk accessed by noeud4, where HAC4 SID is on.
    We transfer the backup files to tape on an hourly basis...

    Now, we want to test this backup.
    Scenario:
    Because we have consistent backup, we think we can restore her (from files on this disc) and him ALONE!
    Our problem is that while restoration is the use of the DSO files, so we're not sure is our backup.

    So, how to prevent the RMAN restore/recovery process of using any ASM file - just to use our consistent backup data?

    Please a few example script for this...

    Our config:
    Oracle 10gR2.0.4 PS3 (NCPS, ASM database),
    Linux Rhel IA64 5.3 on 'raw devices' (no raw disks)

    THX
    Damir

    Hello

    What I realized is that you want to test the image copy backup you took earlier and test this to restore the database, as it is.

    Now, if I see your script, it shows that you have restored control file and then you tried to recover the database.

    But when you make the copy of the image of the database, and you want to restore, then you have to try to restore the database first. I don't see any "restore order" in your script.

    RMAN > restore database from tag = "";

    Firstly, this will restore the data files.

    Then, use

    RMAN > restore database;

    Then, open the database.

    Kind regards
    Vermorel

  • RMAN backup disrupted because of failure

    DB version: 11.2.0.2
    Platform: Sun solaris 5.10

    During the race
    backup database plus archivelog;
    our server got DB decommissioned due to a power failure.

    In the log file, I see that after all the data files are listed as «enter a file datafile = xxx "...»
    We got the message 'done' as
    channel ch00: starting piece 1 at 13-MAR-12
    channel ch00: finished piece 1 at 13-MAR-12
    So, this means that a level 0 DB Backup is available. Right?
    It looks like all newspaper Archives are saved, then RMAN successfully has the backup of all data files, while he was trying to backup logs arch created after the full backup, then the power went off. Am I wrong?

    These are the shortcuts out of the log RMAN backup
    Starting backup at 13-MAR-12
    current log archived
    channel ch00: starting archived log backup set
    channel ch00: specifying archived log(s) in backup set
    input archived log thread=1 sequence=5104 RECID=2944 STAMP=777804213
    input archived log thread=1 sequence=5105 RECID=2947 STAMP=777806830
    input archived log thread=1 sequence=5106 RECID=2950 STAMP=777809240
    .
    .
    .
    .
    .
    
    channel ch00: starting piece 1 at 13-MAR-12
    channel ch00: finished piece 1 at 13-MAR-12
    piece handle=rman_ORCL_LEVEL0_FULL_5an5pu3m_1_1_777844854.rmbk tag=ORCL1_LEVEL0_FULL comment=API Version 2.0,MMS Version 5.0.0.0
    channel ch00: backup set complete, elapsed time: 00:15:45
    channel ch00: deleting archived log(s)
    archived log file name=+DG_ARCH/orcl_arch/orcl_5104_1_769896013.arc RECID=2944 STAMP=777804213
    archived log file name=+DG_ARCH/orcl_arch/orcl_5105_1_769896013.arc RECID=2947 STAMP=777806830
    archived log file name=+DG_ARCH/orcl_arch/orcl_5106_1_769896013.arc RECID=2950 STAMP=777809240
    .
    .
    .
    .
    
    Finished backup at 13-MAR-12
    
    Starting backup at 13-MAR-12
    channel ch00: starting incremental level 0 datafile backup set
    channel ch00: specifying datafile(s) in backup set
    input datafile file number=00006 name=+DG1/gridxxx/datafile/data_01_01.dbf
    input datafile file number=00010 name=+DG1/gridxxx/datafile/data_01_04.dbf
    input datafile file number=00013 name=+DG1/gridxxx/datafile/data_01_07.dbf
    input datafile file number=00025 name=+DG3/gridxxx/datafile/data_03_05.dbf
    input datafile file number=00028 name=+DG4/gridxxx/datafile/data_04_01.dbf
    .
    .
    .
    .
    .
    input datafile file number=00031 name=+DG4/gridxxx/datafile/data_04_04.dbf
    channel ch00: starting piece 1 at 13-MAR-12
    channel ch00: finished piece 1 at 13-MAR-12
    piece handle=rman_ORCL_LEVEL0_FULL_5bn5pv1l_1_1_777845813.rmbk tag=ORCL1_LEVEL0_FULL comment=API Version 2.0,MMS Version 5.0.0.0
    channel ch00: backup set complete, elapsed time: 04:29:35
    Finished backup at 13-MAR-12
    
    Starting backup at 13-MAR-12
    current log archived
    channel ch00: starting archived log backup set
    channel ch00: specifying archived log(s) in backup set
    input archived log thread=1 sequence=5132 RECID=3008 STAMP=777845828
    input archived log thread=1 sequence=5133 RECID=3011 STAMP=777846764
    input archived log thread=1 sequence=5134 RECID=3014 STAMP=777847595
    input archived log thread=2 sequence=2595 RECID=3007 STAMP=777845618
    input archived log thread=2 sequence=2596 RECID=3009 STAMP=777845834
    input archived log thread=2 sequence=2597 RECID=3010 STAMP=777846245
    input archived log thread=2 sequence=2598 RECID=3012 STAMP=777847027
    input archived log thread=2 sequence=2599 RECID=3013 STAMP=777847590
    channel ch00: starting piece 1 at 13-MAR-12
    
    ---- Power outage at this point

    Hello

    So, this means that a level 0 DB Backup is available. Right?

    Yes you are right that this db of level 0 backup is available.

    It looks like all newspaper Archives are saved, then RMAN successfully has the backup of all data files, while he was trying to backup logs arch created after the full backup, then the power went off. Am I wrong?

    It seems that all archive logs are backed up, all the data files are saved. Archive logs generated during the full backup had begun, but it is not finished.

    Query the status column in V$ RMAN_BACKUP_JOB_DETAILS views to see accurate results.

    Talip Hakan Öztürk
    http://taliphakanozturken.WordPress.com/

  • Car cloning + asm_cold RMAN backup

    Hello

    I have a db v11.2 RAC, that uses asm and saved using rman (backup, back up to asm diskgroup d cold).

    is there any document on how to clone this db on the same cluster or remote cluster?
    If I clone on the same cluster so I guess I should give it a new name too...


    pouvez cloning change db characterset as well?

    Edited by: user9198889 January 6, 2011 08:49

    Hopes of the documents below will help,

    Need to Document/steps of cloning RAC 11 g.
    http://download.Oracle.com/docs/CD/E14072_01/RAC.112/e10718/clonerac.htm
    http://blogs.Oracle.com/AlejandroVargas/gems/RMANDUPDBPRACTICE.PDF

    Thank you

  • RMAN backup control file

    HII I am working on oracle 10g 10.2.0.4.0 on solaris 10 have an asm and rac configuration (2 node rac).

    I only have a single control file--+DATA_DG1/ftssdb/controlfile/current.270.664476369

    I'm back up these files to control with rman

    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / backup/rman_node1/%F';



    c 31850833-20100909-00 is one supported by piece of control file.

    now, suddenly, a system of administration deleted this file control... How can I recover my database using rman backup?

    RMAN > SET 3386862614 DBID
    RMAN > RUN {
    RESTORE AUTOMATIC BACKUP CONTROLFILE;
    }
    or
    RMAN > SET 3386862614 DBID
    RMAN > RUN {
    CONTROLFILE AUTOBACKUP FORMAT SET
    FOR DEVICE TYPE DISK TO ' / backup/rman_node1/%F';
    RESTORE AUTOMATIC BACKUP CONTROLFILE;
    }

    check out the link:
    http://arjudba.blogspot.com/2008/05/How-to-restore-controlfile-from-backup.html

    Published by: rajeysh on Sep 9, 2010 16:37

  • Import of schemas and tables of RMAN backup

    Hi all

    I have here are 3 requirements:

    (1) is it possible that I can import a single table using RMAN backup, because I have no more than one day of EXPDP dump file and the requirement is to store the data of three days.

    (2) is it possible that I can import a single SCHEMA using RMAN backup, because I have no more than one day of EXPDP dump file and the requirement is to store the data of three days.

    (3) can I import a package from the RMAN backup?

    I have incremental backup of level 1 and level 0.

    My database is 11.2.0.3

    Thank you and best regards,

    Mukesh

    Hi Mukesh,

    All of your needs can be met with output up to 11g using RMAN database, but beyond of 12 c, you can restore a single table RMAN backup (RMAN BACK TABLE new feature to the 12 c (Doc ID 1521524.1) Oracle database). For your condition impdp/expdp is the best Utilities option until oracle provided up to version 11 g.

    I hope this helps.

    Kind regards

  • The user managed based backup Rman backup cold cold vs

    Hi all

    I just want to know the advantages and disadvantages for backup managed user cold and cold backup Rman.

    What is the best cold backup?

    Some some can help me?

    Thank you

    Cedric Joshi

    Hello

    Both are good only... If you took the clod backup (managed by the user), you can also do with RMAN catalog.

    I feel clod RMAN backup is good.

    Reason:

    ======

    ++ with RMAN you can avoid used used block, you can only backup used blocks

    ++ RMAN has its own compression algorithm

    ++ We also have the ability to assign multiple channels to parallelize the backup

  • RMAN backup location must change and remove obsolete

    Dear Experts,

    I'm working on the following environment,

    Operating system: Windows server 2012 R2

    Oracle version: 11.2.0.1.0 release

    Type of RMAN backup: Cumulative (preferred by the direction and I can't change it in differential backup)

    My current situation,

    I set up RMAN and H: drive for purposes of backup and G: for Archivelog.

    Recently, my city was covered by the flood waters and the server works not for a week so that we delete obsolete level 0 does not work.

    Currently there is not enough space to run a level 1 and level 0, while I should change the backup location.

    My Question is,

    (1) I need to change this location of drive H: to G: drive backup backup correctly without error not enough space.

    (2) after having taken a level 1 and level 0, depending on my 1 redundancy, RMAN mechanism should delete obsolete backup disk without failure G: and H:.

    Kindly help me how to get to my need. This will help me, thanks in advance

    You can

    1. replace the DB_RECOVERY_FILE_DEST G:

    2 run backups

    3. wait for the DELETE OBSOLETE delete obsolete backups of H:

    and then

    4. change the DB_RECOVERY_FILE_DEST return h as it was more early

    In this way, you don't have to use the FORMAT or CHANNEL of CONFIGURE commands (I was referring to CONFIGURE CHANNEL, not ALLOCATE CHANNEL) to change the destination of the backup

    Hemant K Collette

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

    ---------- ---------- ---------- ----------

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

    ---------- ---------- ---------- ----------

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

    ---------- ------- ------- ------------------------------ --- ----------

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • RMAN backup gets already

    Hi all;

    RMAN > set the channel 1 device type disc format ' / u01/rmanbkp ";

    new RMAN configuration settings:

    CONFIGURE the CHANNEL 1 DEVICE TYPE DISK FORMAT ' / u01/rmanbkp ";

    new RMAN configuration settings are stored successfully

    output channel: ORA_DISK_1

    RMAN > list backup;

    specification does not match the backups in the repository

    RMAN > backup database tag = "NORMAL_BKP_15_jul_15";

    From 25 July 15 backup

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 20 type of device = DISK

    channel ORA_DISK_1: from complete compressed datafile backup set

    channel ORA_DISK_1: specifying datafile (s) in the backup set

    Enter a number of file datafile = 00005 name=/u03/app/oracle/oradata/crms/tbs02.dbf

    Enter a number of file datafile = 00001 name=/u02/app/oracle/oradata/crms/system01.dbf

    Enter a number of file datafile = name=/u01/crmsx4.dbf 00024

    channel ORA_DISK_1: starting piece 1 to July 25, 15

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03009: failure of the backup command on the channel ORA_DISK_1 at 25/07/2015 10:30:26

    ORA-19504: cannot create the file ' / u01/rmanbkp.

    ORA-27038: created file already exists

    Additional information: 1

    There is no file physically in/u01/rmanbkp

    DB version: 11.2.0.1 on (Redaht)

    RMAN > set the channel 1 device type disc format ' / u01/rmanbkp ";


    Specify format with extension, something like below

    RMAN > set up the channel 1 device type disk format ' / u01/rmanbkp/backup%U';

    http://docs.Oracle.com/CD/B28359_01/backup.111/b28273/rcmsubcl010.htm

  • content managed rman backup crushing and selection procedure of the tape media

    Hello Experts.

    I have a question about the backupset rman tape media manage tape of the osb.

    [ENV]

    Exadata rman backup assistance OSB(version: 10.4.0.3.0) SL500 LTO5 4 Tape Drive with rman scripts and full backup is working well.

    1 Appendix backup on OS crontab

    -Each backup full day at 00:00 AM

    2 rman view all:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    using the control file of the target instead of recovery catalog database

    RMAN settings for database with db_unique_name TESTDW are:

    CONFIGURE RETENTION POLICY TO 3 DAY RECOVERY WINDOW;

    CONFIGURE BACKUP OPTIMIZATION # by default

    CONFIGURE THE TYPE OF DEFAULT DEVICE TO 'SBT_TAPE ';

    SET UP THE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 TYPE OF BACKUP BACKUPSET.

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    3 rman backup scirpts

    Run {}

    allocate channels c01 type 'sbt_tape' connect 'sys/manager@testdw1';

    allocate channel c02 type 'sbt_tape' connect 'sys/manager@testdw2';

    allocate channel c03 type 'sbt_tape' connect 'sys/manager@testdw1';

    allocate channels c04 type 'sbt_tape' connect 'sys/manager@testdw2';

    Backup section size 900g database;

    output channel c01;

    output channel c02;

    output channel c03;

    output channel c04;

    }

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    1st quarter > after several weeks and I run the command as "#obtool u admin Pei welcome1 lsvol-L lib1.

    and are used in many media of rman backup band (about 50EA media, perhaps 46EA are full and 4EA are appendble)

    So, I issue the command 'lsvol - a - c' and could not display expired on all media content.

    Why OSB no has not select and replace the tape media despite the rman rman default retention policy (3days) all show the setting.

    Why OSB does not have the expired status of rman content on tape media?

    -> I need the rman (delete expired, delete obsolete etc...) command to share the summary status of OSB and rman rman?

    Q2 > selection procedure for the tape media all backup rman

    Suppose the total number of tape media is 5EA. (1,2,3,4,5) with an available tape LTO5 drive.

    Status: 1 (full-rman content already expired), 2 (content integral-rman not expired), 3 (editable, remaining space), 4 (new media), 5 (currnet wring media)

    If OSB burn now 5 and reach at the end of the Strip and possibly another media, media to be selected by the OSB?

    Advanced thanks.

    If I place the order obsolete in the rman script as 'delete type 'SBT_TAPE' noprompt obsolete device;' the results will be the same as your

    the syntax because rman default setting (CONFIGURE RETENTION POLICY to RECOVERY WINDOW OF 3 DAYS ;) has already been fixed on the command "Show all", right? @)

    Yes.

    I use the catalog of recovery on a different database and backup script has catalog db connection string.

    And if I only use controlfile instead of recovery catalog to save the backup information and put in place "control_file_record_keep_time" a default of 7 days to 365 days, "remove obsolete" command to remove several weeks backupset works well, is it not?

    Possible problem are existing backups for several weeks if you left default control_file_record_keep_time. Change now will not help unless you catalog later manually all the old pieces not catalogued on tape backup.

    After you clean up the situation and particularly to remove obsolete in your script, rman, you will never make problems with control_file_record_keep_time from this moment. By default will do just fine because it is larger than your window of recovery.

    Kind regards

    Mitja

  • EBS 11i RMAN backup

    Hi all

    EBS 11i

    OEL 5

    I have rman backup of our database of EBS.

    I also have a single backup at oracle.

    Assuming that no patches have been applied, is the one-time backup of oracle home + backup rman, good enough to restore the database to a server disaster recovery?

    Can I still place adpreclone every day, for the rman backup to synchronize?

    Adpreclone is used to capture changes to the patches applied, or adding database files? or both?

    Please throw lights...

    Thank you very much

    JC

    It is not possible to have several databases with the ORACLE_SID even on the same host.

    The solution is that you have to put on separate hosts.

Maybe you are looking for

  • No picture found on icloud

    Hi all I hope someone could advise me.  My partner has put all my photos on my iphone 5 c on my icloud on my laptop on Friday. I had a peek yesterday and there is nothing there. Don't know what to do and if I lost all my photos. Can someone help plea

  • % CPU usage, reduce or control?

    Skype and some other applications use a lot of CPU %. On my Air, the fan turns on and the machine is running hot. Generally > 100 degrees for Skype. Is there a way to reduce this consumption. Y at - it an app that will limit the % of resources that c

  • Satellite A100 - multimedia keys do not work correctly with Win XP

    Hello I use a Satellite A100 with Xp sp3.Recently, the media keys did not work properly. When I open the Windows media player 11, I can go to the previous song, but I can't stop, pause, or skip to the next track by pressing the keys.Is this a hardwar

  • temporary files take up too much memory

    a temporary file in local contexts / profile system / config / system 32 take too much memory

  • Windows 7 Pro 64 disabled after the system crash

    Hello. My active 64-bit Windows 7 system crashed this morning with the Blue Screen of Death. Restart is not possible - message "Bootmgr is missing" came. I used the repair disk, I did when I got to the computer to fix the boot sector and was able to