Control file backup using RMAN

Hi,
I need to take the backup of control file using RMAN and I am using ASM non RAC.
DB : 10.2.0.4.0
oS : SunOS rmohsitut01 5.10 Generic_144488-17 sun4u sparc SUNW,SPARC-Enterprise
I have tried bellow commands
======
RMAN> backup format '/tmp/backup/control.back' current controlfile;
Starting backup at 21-JUL-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=19983 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=9983 devtype=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: sid=19982 devtype=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: sid=9982 devtype=DISK
allocated channel: ORA_DISK_5
channel ORA_DISK_5: sid=19981 devtype=DISK
allocated channel: ORA_DISK_6
channel ORA_DISK_6: sid=19980 devtype=DISK
allocated channel: ORA_DISK_7
channel ORA_DISK_7: sid=9981 devtype=DISK
allocated channel: ORA_DISK_8
channel ORA_DISK_8: sid=19979 devtype=DISK
allocated channel: ORA_DISK_9
channel ORA_DISK_9: sid=19978 devtype=DISK
allocated channel: ORA_DISK_10
channel ORA_DISK_10: sid=9980 devtype=DISK
allocated channel: ORA_DISK_11
channel ORA_DISK_11: sid=19985 devtype=DISK
allocated channel: ORA_DISK_12
channel ORA_DISK_12: sid=9979 devtype=DISK
allocated channel: ORA_DISK_13
channel ORA_DISK_13: sid=19977 devtype=DISK
allocated channel: ORA_DISK_14
channel ORA_DISK_14: sid=19976 devtype=DISK
allocated channel: ORA_DISK_15
channel ORA_DISK_15: sid=9978 devtype=DISK
allocated channel: ORA_DISK_16
channel ORA_DISK_16: sid=19975 devtype=DISK
allocated channel: ORA_DISK_17
channel ORA_DISK_17: sid=19974 devtype=DISK
allocated channel: ORA_DISK_18
channel ORA_DISK_18: sid=9986 devtype=DISK
BACKUP CURRENT CONTROLFILE TO ':/tmp/control.bak'; RMAN allocating channels but backup is not happening.
Any idea ?
--Thanks in Advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi,.
I have given the bellow command
RMAN> BACKUP AS COPY CURRENT CONTROLFILE FORMAT '/tmp/control_stdby_backup.ctl';
Starting backup at 21-JUL-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=19985 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=9981 devtype=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: sid=19977 devtype=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: sid=9980 devtype=DISK
allocated channel: ORA_DISK_5
channel ORA_DISK_5: sid=9979 devtype=DISK
allocated channel: ORA_DISK_6
channel ORA_DISK_6: sid=9978 devtype=DISK
allocated channel: ORA_DISK_7
channel ORA_DISK_7: sid=19976 devtype=DISK
allocated channel: ORA_DISK_8
channel ORA_DISK_8: sid=9986 devtype=DISK
allocated channel: ORA_DISK_9
channel ORA_DISK_9: sid=19975 devtype=DISK
allocated channel: ORA_DISK_10
channel ORA_DISK_10: sid=9977 devtype=DISKBut it keeps on allocating channels and never ending
Please help ..
Edited by: Vijay.Cherukuri on Jul 21, 2012 7:19 PM

Similar Messages

  • Control File Backups

    Hello-
    I was looking over some configurations that was setup by another DBA.
    There are 3 control files created but they all are on the same disk/directory.
    Control file auto backup is on to tape.
    If there was a hardware failure and all three control were corrupted/lost then a backup would be used but
    full recovery and RESETLOGS would be needed which would lead to redo data loss.
    If I configured 1 control file on a seperate disk. I would be able to copy this one and create 3 files again and the database
    would be started again without needing recovery if all else was fine.
    If the control keeps track of redo logs SCN, Archive logs history and RMAN backups when these change then wouldn't another control file backup/ trace need to be done ?
    Control File Trace only alllows to rebuild the database not to copy. How often is the need to taken ? Every change in the database ?
    Backup to the Flash Recovery is another backup not an updated copy to copy from but to restore/recovery with.
    Do have have these theories correct and my best setup would to send at least one to another disk.
    Thanks-

    If there was a hardware failure and all three control were corrupted/lost then a backup would be used but
    full recovery and RESETLOGS would be needed which would lead to redo data loss. No. If you lose all three controlfiles, you either
    a. RESTORE a backup of the controlfile
    OR
    b. CREATE CONTROLFILE (from a script)
    In either case, you do NOT need to do an INCOMPLETE Recovery. You will be doing a COMPLETE Recovery (if you have the Online Redo Logs). However, an OPEN RESETLOGS is still required. The %r in the log_archive_format since 10g allows ArchiveLogs to be retained through ResetLogs.
    If the control keeps track of redo logs SCN, Archive logs history and RMAN backups when these change then wouldn't another control file backup/ trace need to be done ? If you RESTORE the controlfile you lose no information. However, you still have to OPEN RESETLOGS.
    If you do a CREATE CONTROLFILE, yes, you lose information about ArchiveLogs history and RMAN Backups.
    You can issue a CATALOG command to re-catalog available Backups.
    Control File Trace only alllows to rebuild the database not to copy.A Control File Trace is to recreate the Controlfile. Not rebuild the database.
    Backup to the Flash Recovery is another backup not an updated copy to copy from but to restore/recovery with. I don't understand what your statement or question might be here.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Mar 2, 2011 2:44 PM
    Edited by: Hemant K Chitale on Mar 2, 2011 2:45 PM

  • Backup using RMAN

    Hi,
    I want to perform the first backup with RMAN and I used this command and I got error:
    RMAN> BACKUP AS COPY DATABASE;
    can not backup or copy active file in noarchivelog mode.
    But in order to turn on the log_mode to ARCHIVELOG, first I need to do shutdown the db and perform the backup. Right?
    So how can I get my first backup using RMAN if the log mode is in NOARCHIVELOG mode?
    I also performed controlfile autobackup on but I'm not sure the controlfiles are being backed up. How can I verify this and where I can find the controlfile backup file?
    Thanks,

    Hi
    Yes, you must shutdown the database and set it to start in ARCHIVELOG mode.
    After that you can connect to the rman catalog and the target database and execute a backup.
    eg. RMAN> backup database;
    You can search other example posted by me:
    eg.
    - Re: Backup with RMAN
    - Re: How do i set up this backup strategy?
    To be sure that you backed up your control file you can issue the rman-command:
    RMAN> list backup of controlfile summary;
    Bye, Aron

  • Control file backup is hung.

    Hi,
    When I initiate control file backup it is struck.  Pls. see my Rman configuration.
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/oracle/rmanbkup/cf%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/oracle/rmanbkup/%U';
    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/S01/102_64/dbs/snapcf_S01.f'; # default
    RMAN> backup current controlfile;
    Starting backup at 28-JUN-09
    using channel ORA_DISK_1
    It is in this situation since 4 Hrs. 
    I had set all the permissions as mentioned in the SAP Note : 113747.  Backup was happening as normal till 25th June thru DB13.
    My observation is, I had alter the  oracle parameter as per the  quiry results.  ( i.e added the events ..  I  had executed the script attached  in the S.Note : 1171650.  ST04 --> Performance --> Additional Function --> SQL Command Editor )
    O/S :  AIX 5.3,
    DB : Oracle  10.2.0.2.0
    ECC 6.0
    Backup in all other servers are happening without any problem..
    I appreciate  your  expert suggestions.
    Thanks!
    Sundaresh Suryanarayan

    Hi Surendara Jain,
    Still this problem persisting.. I have tried all.. I checked all the relevent S-Notes.  I updated the brtools version also..
    Even if I execute BRBACKUP it starts.. It creates the folder. But, the folder will be empty.. Pls. see the *.and file below..
    MBES01:oras01 10> more beayrvav.and
    BR0051I BRBACKUP 7.00 (41)
    BR0055I Start of database backup: beayrvav.and 2009-07-07 08.12.17
    BR0484I BRBACKUP log file: /oracle/S01/sapbackup/beayrvav.and
    BR0477I Oracle pfile /oracle/S01/102_64/dbs/initS01.ora created from spfile /oracle/S01/102_64/dbs/spfileS01.ora
    BR0101I Parameters
    Name                           Value
    oracle_sid                     S01
    oracle_home                    /oracle/S01/102_64
    oracle_profile                 /oracle/S01/102_64/dbs/initS01.ora
    sapdata_home                   /oracle/S01
    sap_profile                    /oracle/S01/102_64/dbs/initS01.sap
    backup_mode                    ALL
    backup_type                    online
    backup_dev_type                disk
    backup_root_dir                /oracle/S01/sapbackup
    compress                       no
    disk_copy_cmd                  rman
    cpio_disk_flags                -pdcu
    exec_parallel                  0
    rman_compress                  no
    system_info                    oras01/oras01 MBES01 AIX 3 5 00CD16724C00
    oracle_info                    S01 10.2.0.2.0 8192 2959 21202296 MBES01 UTF8 UTF8
    sap_info                       700 SAPSR3 0002LK0003S010011E21297128880015Maintenance_ORA
    make_info                      rs6000_64 OCI_102 Apr  8 2009
    command_line                   /usr/sap/S01/SYS/exe/run/brbackup -p initS01.sap -d disk -t online -m all -k no -e 0 -o dist,time -l E -U
    BR0116I ARCHIVE LOG LIST before backup for database instance S01
    Parameter                      Value
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            /oracle/S01/oraarch/S01arch
    Archive format                 %t_%s_%r.dbf
    Oldest online log sequence     2956
    Next log sequence to archive   2959
    Current log sequence           2959             SCN: 21202296
    Database block size            8192             Thread: 1
    Current system change number   21209894         ResetId: 674792151
    BR0118I Tablespaces and data files
    Tablespace     TS-Status  F-Status  File                                                       Size   Id.     Device  Link    Type     
    MaxSize     IncrSize  BlkSize
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_1/sr3.data1                 2579505152    4     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_10/sr3.data10               1069555712   13     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_2/sr3.data2                 2558533632    5     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_3/sr3.data3                 3334479872    6     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_4/sr3.data4                 3984596992    7     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_5/sr3.data5                 3166707712    8     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_6/sr3.data6                 2998935552    9     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_7/sr3.data7                 2977964032   10     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_8/sr3.data8                 2852134912   11     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3        ONLINE*    ONLINE+   /oracle/S01/sapdata2/sr3_9/sr3.data9                 2810191872   12     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3700     ONLINE*    ONLINE+   /oracle/S01/sapdata3/sr3700_1/sr3700.data1           3523223552   14     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3700     ONLINE*    ONLINE+   /oracle/S01/sapdata3/sr3700_2/sr3700.data2           4299169792   15     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3700     ONLINE*    ONLINE+   /oracle/S01/sapdata3/sr3700_3/sr3700.data3           3607109632   16     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3700     ONLINE*    ONLINE+   /oracle/S01/sapdata3/sr3700_4/sr3700.data4           3428851712   17     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3DB      ONLINE*    ONLINE+   /oracle/S01/sapdata4/sr3db_1/sr3db.data1             2097160192   19     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3DB      ONLINE*    ONLINE+   /oracle/S01/sapdata4/sr3db_2/sr3db.data2             2097160192   20     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3DB      ONLINE*    ONLINE+   /oracle/S01/sapdata4/sr3db_3/sr3db.data3             1048584192   21     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPSR3USR     ONLINE*    ONLINE+   /oracle/S01/sapdata4/sr3usr_1/sr3usr.data1             20979712   18     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPTEMP       ONLINE#    ONLINE+   /oracle/S01/sapdata1/temp_1/temp.data1               1017126912   -1     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    PSAPUNDO       ONLINE-    ONLINE+   /oracle/S01/sapdata1/undo_1/undo.data1               2705334272    2     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    SYSAUX         ONLINE*    ONLINE+   /oracle/S01/sapdata1/sysaux_1/sysaux.data1            230694912    3     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    SYSTEM         ONLINE*    SYSTEM+   /oracle/S01/sapdata1/system_1/system.data1            513810432    1     3276802  NOLINK  FILE   104
    85760000     20971520     8192
    BR0119I Redo log files
    File                                                Size  Group     Device  Status    Link    Type
    /oracle/S01/origlogA/log_g11m1.dbf              52429312    1      3276802  INUSE     NOLINK  FILE
    /oracle/S01/mirrlogA/log_g11m2.dbf              52429312    1      3276802  INUSE     NOLINK  FILE
    /oracle/S01/origlogB/log_g12m1.dbf              52429312    2      3276802  INUSE     NOLINK  FILE
    /oracle/S01/mirrlogB/log_g12m2.dbf              52429312    2      3276802  INUSE     NOLINK  FILE
    /oracle/S01/origlogA/log_g13m1.dbf              52429312    3      3276802  INUSE     NOLINK  FILE
    /oracle/S01/mirrlogA/log_g13m2.dbf              52429312    3      3276802  INUSE     NOLINK  FILE
    /oracle/S01/origlogB/log_g14m1.dbf              52429312    4      3276802  INUSE     NOLINK  FILE
    /oracle/S01/mirrlogB/log_g14m2.dbf              52429312    4      3276802  INUSE     NOLINK  FILE
    BR0120I Control files
    File                                                Size   Id.      Device  Link    Type
    /oracle/S01/origlogA/cntrl/cntrlS01.dbf         14368768    0      3276802  NOLINK  FILE
    /oracle/S01/origlogB/cntrl/cntrlS01.dbf         14368768    0      3276802  NOLINK  FILE
    /oracle/S01/sapdata1/cntrl/cntrlS01.dbf         14368768    0      3276802  NOLINK  FILE
    BR0616I Tablespaces in table TSORA for SAP owner SAPSR3:
    PSAPSR3, PSAPSR3700, PSAPSR3USR
    BR0379I Distribution of files on volume #1:
    Position        Size         Rate      Compressed    Duration     Speed   Name
                                                           [m:s]      [MB/h]
        1     2579505152*                                   2:19      63712   /oracle/S01/sapdata2/sr3_1/sr3.data1
        2     1069555712*                                   0:59      62238   /oracle/S01/sapdata2/sr3_10/sr3.data10
        3     2558533632*                                   2:19      63194   /oracle/S01/sapdata2/sr3_2/sr3.data2
        4     3334479872*                                   2:48      68143   /oracle/S01/sapdata2/sr3_3/sr3.data3
        5     3984596992*                                   3:19      68744   /oracle/S01/sapdata2/sr3_4/sr3.data4
        6     3166707712*                                   2:49      64332   /oracle/S01/sapdata2/sr3_5/sr3.data5
        7     2998935552*                                   2:38      65165   /oracle/S01/sapdata2/sr3_6/sr3.data6
        8     2977964032*                                   2:39      64302   /oracle/S01/sapdata2/sr3_7/sr3.data7
        9     2852134912*                                   2:28      66162   /oracle/S01/sapdata2/sr3_8/sr3.data8
       10     2810191872*                                   2:29      64752   /oracle/S01/sapdata2/sr3_9/sr3.data9
       11     3523223552*                                   2:49      71574   /oracle/S01/sapdata3/sr3700_1/sr3700.data1
       12     4299169792*                                   3:38      67707   /oracle/S01/sapdata3/sr3700_2/sr3700.data2
       13     3607109632*                                   3:09      65524   /oracle/S01/sapdata3/sr3700_3/sr3700.data3
       14     3428851712*                                   2:48      70072   /oracle/S01/sapdata3/sr3700_4/sr3700.data4
       15     2097160192*                                   1:59      60504   /oracle/S01/sapdata4/sr3db_1/sr3db.data1
       16     2097160192*                                   1:58      61017   /oracle/S01/sapdata4/sr3db_2/sr3db.data2
       17     1048584192*                                   0:59      61017   /oracle/S01/sapdata4/sr3db_3/sr3db.data3
       18       20979712*                                   0:06      12005   /oracle/S01/sapdata4/sr3usr_1/sr3usr.data1
       19     2705334272*                                   2:19      66820   /oracle/S01/sapdata1/undo_1/undo.data1
       20      230694912*                                   0:19      41686   /oracle/S01/sapdata1/sysaux_1/sysaux.data1
       21      513810432*                                   0:38      46422   /oracle/S01/sapdata1/system_1/system.data1
       22       14368768                                    0:00          0*  /oracle/S01/sapbackup/cntrlS01.dbf
    Total:   51919052800*                                  45:29      65317
    BR0284I BRBACKUP time stamp: 2009-07-07 08.12.19, elapsed time: 0:00
    BR0057I Backup of database: S01
    BR0058I BRBACKUP action ID: beayrvav
    BR0059I BRBACKUP function ID: and
    BR0110I Backup mode: ALL
    BR0077I Database file for backup: /oracle/S01/sapbackup/cntrlS01.dbf
    BR0061I 22 files found for backup, total size 49513.867 MB
    BR0143I Backup type: online
    BR0112I Files will not be compressed
    BR0130I Backup device type: disk
    BR0106I Files will be saved on disk in directory: /oracle/S01/sapbackup/beayrvav
    BR0284I BRBACKUP time stamp: 2009-07-07 08.12.19, elapsed time: 0:00
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRBACKUP:
    BR0284I BRBACKUP time stamp: 2009-07-07 08.12.54, elapsed time: 0:35
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0370I Directory /oracle/S01/sapbackup/beayrvav created
    end **************************************************
    it won't move furthe after this.. I checked and compared SPFILE & init<SID>.sap with other servers (DEV,QA & PRD) all are same.. But, backup is happening on those server without any problem. 
    Can anybody help me on this..
    Thanks!
    Sundaresh Suryanarayan

  • Restoring a Hot backup using RMAN on a different server.

    Hi
    we are using oracle 10.2.0.4.0 on solaris 10 and using a separate catalog for RMAN backups.
    we have taken a production db Hot backup as follows
    level 0 backup on 28 th dec.
    level 1 on 29,
    level 1 on 30 and
    level 1 on 31 st.
    now today in the month of feb .
    we would like to create a dev. DB on a diffent server which has diffent directory structure, i have to create a db using the above backups to setup the db like on 31 st Jan.
    could you please provide the steps and advice how do i proceed.
    Thansk fot the help.

    Make level 0 and level 1 backups + control files backups + archived redo logs backup available on new host and use RMAN DUPLICATE.
    See examples in http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1008564
    Edited by: P. Forstmann on 2 févr. 2010 22:39
    Edited by: P. Forstmann on 3 févr. 2010 07:57

  • ORA-00245: control file backup failed; target is likely on a local file sys

    Hello,
    our RAC (Linux, 11.2.0.3.0) is rather new and we are still on gaining experiences with that system...
    When starting the backup with RMAN we are getting the following error:
    Starting Control File and SPFILE Autobackup at 04-JUL-12
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of Control File and SPFILE Autobackup command on ORA_DISK_1 channel at 07/04/2012 16:41:48
    ORA-00245: control file backup failed; target is likely on a local file system
    The reason for the error is clear ORA-00245 - in a RAC environment the location of the Snapshot Controlfile must be on a shared location.
    When executing the RMAN command "show all" on each node, we are getting
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0.3/db/dbs/snapcf_PROD021.f'; # default
    for node #1
    and
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0.3/db/dbs/snapcf_PROD022.f'; # default
    for node #2
    When using a shared location for the Snapshot Controlfile do we still need to setup 2 different names for that file?
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/<shared location>/snapcf_PROD021.f'; # default
    for node #1 and
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/<shared location>/snapcf_PROD022.f'; # default
    for node #2
    Or should we configure just one Snapshot Controlfile?
    The RMAN setup for "CONFIGURE SNAPSHOT CONTROLFILE NAME TO..." must be changed on both nodes - correct?
    Hopefully my question is clear enough - any help will be appreciated.
    Rgds
    JH
    Edited by: VivaLaVida on 05.07.2012 11:41

    No, it must be configured on a shared storage:Not really required, i've RAC setup and snapshot is configured on local storage.
    Configuring the RMAN Snapshot Control File Location
    The snapshot control file is a copy of a database control file created in an operating system-specific location by Recovery Manager. RMAN creates the snapshot control file so that it has a consistent version of a control file to use when either resynchronizing the recovery catalog or backing up the control file. In Oracle RAC, the snapshot control file is only needed on the nodes on which RMAN performs backups; the snapshot control file does not need to be globally available to all instances in an Oracle RAC environment.
    See below from doc.
    http://docs.oracle.com/cd/B28359_01/rac.111/b28254/rman.htm#i455026

  • Control file backup

    I have executed the following commands as I was not sure about the control file backup  :-
    1) ALTER DATABASE BACKUP CONTROLFILE TO  '/DBJPC/control.bkp';
    2)ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
    could anybody tell me whether these two statements override  my database's previous configuration of control file backup or not (I think yes...) ??? If yes, is there any chances of database non-availability??? Finally, is there any drawbacks to run  these two commands ...

    Hi
    >>I'm new in Oracle and using Oracle 10G  Enterprise Edition (10.2.0.1.0)  on Red Hat Linux 32bits OS. I worked as a J2EE developer and there is no DBA in my office right now. So, I'm working as a stop gap person.
    In that case you should not think about the recovery scenario.. However you can play with  your test database on your personal m/c. but before doing this please read first.
    >>I cann't find whether RMAN is used for control file back up or not and that's the reason to execute those queries. Are these files (backup of control files) automatically backed up or not (I think not).
    Connect with RMAN and the type the command
    RMAN> SHOW ALL;
    >>Lastly, in case of damage/lost control files, this command will work or not- cp    '/DBJPC/control.bkp'   <location of control file>;
    No, It wont work.. these are the trace file format(readable) while your database control file are binary
    Start from here :Backup and Recovery
    HTH

  • Error in Database backup using RMAN.

    Hi
    While taking full online backup using RMAN i got the following error.
    ORA-19566: exceeded limit of 0 corrupt blocks for file /oracle/DEV/sapdata2/dev640_6/dev640.data6
    Please help me how to resolve this issue.

    Hi,
    Please perform DBverify Job and Also analyze the alert<SID>.log file for your Database to get more information about such logical or physical corruption.  You may require Block level recovery for the complained DB Files. Please refer this useful document " [Early Detection and Correction of Data Block Corruptions Using RMAN |http://www.ioug.org/client_files/members/select_pdf/04q4/RMAN.pdf]" and share the same with your Oracle DBA.
    You can execute the following commands to get information about corrupted block(s), if its there.
    select * from v$backup_corruption;
    select * from v$database_block_corruption;
    Regads,
    Bhavik G. Shroff

  • PERFORMING A TEST BACKUP (VALIDATE BACKUP) USING RMAN

    제품 : RMAN
    작성날짜 : 2002-05-30
    PERFORMING A TEST BACKUP (VALIDATE BACKUP) USING RMAN
    =====================================================
    PURPOSE
    RMAN을 이용하여 Test Backup을 수행하기 위한 정보를 제공한다.
    EXPLANATION
    8.1.7 부터 RMAN에서 BACKUP command에 VALIDATE keyword를 사용할 수 있게 되었다
    이 명령의 수행은 다음과 같은 작업을 수행한다.
    - Datafile의 physical and logical corruption을 check한다.
    - 모든 database file들이 존재하는지, 그리고 올바른 위치에 있는지를 검증한다.
    RMAN은 실제적으로 backupset을 생성하지 않는다 그러나 그것들이 backup될 수
    있는지 없는지를 결정하기 위해서 기술된 file들을 scan한다.
    BACKUP VALIDATE 는 backup job을 수행시 수행되는 것을 제외하고는
    RESTORE VALIDATE와 거의 비슷하다.
    EXAMPLE
    아래와 같은 command들을 수행하여 backup하고자 하는 database file과 archived redo
    log들이 실제로 backup될 수 있는지를 검증할 수 있다.
    RUN {
    ALLOCATE CHANNEL ch1 TYPE 'sbt_tape';
    BACKUP VALIDATE
    DATABASE
    ARCHIVELOG ALL;
    Note: MAXCORRUPT or PROXY parameter는 VALIDATE option과 함께 사용할 수 없다.
    REFERENCE DOCUMENTS
    NOTE:121109.1

    Clint,
    I ran the command lines you wrote me after i placed the database in Startup MOUNT state, RMAN gave error messages that the database needs to be open:
    RMAN> SQL 'ALTER TABLESPACE USERTB2 OFFLINE IMMEDIATE';
    sql statement: ALTER TABLESPACE USERTB2 OFFLINE IMMEDIATE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 11/04/2005 15:31:33
    RMAN-11003: failure during parse/execution of SQL statement: ALTER TABLESPACE US
    ERTB2 OFFLINE IMMEDIATE
    ORA-01109: database not open
    Then I ran the same command lines after I opened the database, RMAN gave error messages that "offline immediate disallowed unless media recovery enabled":
    RMAN> SQL 'ALTER TABLESPACE USERTBS2 OFFLINE IMMEDIATE';
    sql statement: ALTER TABLESPACE USERTBS2 OFFLINE IMMEDIATE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 11/04/2005 15:48:17
    RMAN-11003: failure during parse/execution of SQL statement: ALTER TABLESPACE US
    ERTBS2 OFFLINE IMMEDIATE
    ORA-01145: offline immediate disallowed unless media recovery enabled
    I am stuck again and need your help!
    Thank you,
    Mitra

  • Cold backup using RMAN

    Dear All,
    db_version :10.2.0.4
    os_version:Window 2003 server
    Environment:Test
    I wish to perform cold backup using RMAN for the same i want to know following :
    1. What is the script / command ?
    2. How to restore cold backup completely ( ex:- if i lost all my data,redo and archives )
    3. Is it mandatory to open the database in RESETLOG mode after recovery ( since i have a cold backup ) ?
    Thanks in advance

    A "Cold" Backup is called a "Consistent" Backup.
    See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup003.htm#sthref297
    Backup :
    From the RMAN command line :
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    BACKUP DATABASE
    BACKUP CURRENT CONTROLFILE  -- to get the controlfile in a separate backupsetRestore :
    STARTUP MOUNT
    RESTORE DATABASE
    ALTER DATABASE OPENIf you use an SPFILE, you can have an SPFILE backup included automatically with the controlfile backupset with CONFIGURE CONTROLFILE AUTOBACKUP ON and CONFIGURE CONTROLFILE AUTOBACKUP FORMAT ...
    Read the documentation.
    Hemant K Chitale

  • Can u we take online redo log backups using RMAN......can any one guide me

    can u we take online redo log backups using RMAN.....in 1og

    'Backup' solution for online redo logs is multiplexing (members of a group on different independent drives).
    Werner

  • Can I Scheduled Backups Using RMAN ?

    Hi,
    Can I schedule Backups using RMAN without depending on Any O/S utilities....
    If ,Yes......Let Me Know How it sis possible.....
    Thanks In Advance.....
    Prasannakumar.

    Yes, easiest way is Enterprise Manager. Otherwise you have to define your own DBMS_SCHEDULER tasks.
    Werner

  • NEED TO RECOVER A DATABASE USING RMAN with CONTROL FILE AND NO RMAN CATALOG, DISK FAILURE..

    Hello All,
    The disk failure caused our production data on the disk to be resotred with the backup data available and recovered through RMAN with cotrolfile , and no catalog DB is configured.
    I had the restored the spfile and control file then recovered the database,
    startup nomount;
    RESTORE SPFILE FROM ' path '  ;
    Shutdown immediate;
    startup nomount
    Restore controfile from autobackup;
    restore database;
    [AT POINT , A MESSAGE PROMPTED LIKE " failur of restored command - some targets not found"  (thinking may be few archives are not found, i proceeded to incomeplete recovery of DB) ]
    recover database;
    Finished reocvery .
    Now in the Grid control i see that 60 blocks of a particular datafile are corrupted and needs recovery. Do i need to get the data file resotred again and recover it or any simple way to recover this data file
    When i perform the block recovery , it says recovery failed and when i run the data file recovery it succeeds. Please provide you inputs to recover the database as it is production BI database and pretty critical to our client.
    Thanks for your valuable time in advance.
    Regards,
    Ran G.

    These is a common problem if the object are created due to NOLOGGIN option. If you check most of the object which are facing block corruption is indexes .
    Use the below query to check the objects :
    It will map each block from v$database_block_corruption to either a segment or if the block is free.
    $ sqlplus / as sysdba
    set pagesize 2000
    set linesize 250
    SELECT e.owner, e.segment_type, e.segment_name, e.partition_name, c.file#
    , greatest(e.block_id, c.block#) corr_start_block#
    , least(e.block_id+e.blocks-1, c.block#+c.blocks-1) corr_end_block#
    , least(e.block_id+e.blocks-1, c.block#+c.blocks-1)
    - greatest(e.block_id, c.block#) + 1 blocks_corrupted
    , null description
    FROM dba_extents e, v$database_block_corruption c
    WHERE e.file_id = c.file#
    AND e.block_id <= c.block# + c.blocks - 1
    AND e.block_id + e.blocks - 1 >= c.block#
    UNION
    SELECT s.owner, s.segment_type, s.segment_name, s.partition_name, c.file#
    , header_block corr_start_block#
    , header_block corr_end_block#
    , 1 blocks_corrupted
    , 'Segment Header' description
    FROM dba_segments s, v$database_block_corruption c
    WHERE s.header_file = c.file#
    AND s.header_block between c.block# and c.block# + c.blocks - 1
    UNION
    SELECT null owner, null segment_type, null segment_name, null partition_name, c.file#
    , greatest(f.block_id, c.block#) corr_start_block#
    , least(f.block_id+f.blocks-1, c.block#+c.blocks-1) corr_end_block#
    , least(f.block_id+f.blocks-1, c.block#+c.blocks-1)
    - greatest(f.block_id, c.block#) + 1 blocks_corrupted
    , 'Free Block' description
    FROM dba_free_space f, v$database_block_corruption c
    WHERE f.file_id = c.file#
    AND f.block_id <= c.block# + c.blocks - 1
    AND f.block_id + f.blocks - 1 >= c.block#
    order by file#, corr_start_block#;
    Below oracle support note will help you :
    ORA-1578 / ORA-26040 Corrupt blocks by NOLOGGING - Error explanation and solution (Doc ID 794505.1)
    The Gains and Pains of Nologging Operations (Doc ID 290161.1)
    SQL> select d.NAME as DBF_NAME, t.NAME as TS_NAME, d.UNRECOVERABLE_CHANGE# as NOLOG_CHNG#, to_char(d.UNRECOVERABLE_TIME, 'Dy DD-Mon-YYYY HH24:MI:SS') as NOLOG_TIME from V$DATAFILE d join V$TABLESPACE t on d.TS# = t.TS# order by t.NAME;
    Thanks,
    gssdba.wordpress.com

  • Rman controle file backup

    hi,
    RMAN>backup database
    on executing the above command does rman backsup the control file also????
    Edited by: 793097 on Dec 7, 2010 12:49 AM

    Hi 793097,
    Yes it does backup the controlfile implicitly by the command.
    There are two flavors.
    - If you have configured controlfile autobackup to on (use show all to check) rman will create a separate backup in a file with format c-dbid-date-xx.
    - without configuration the backup piece containing datafile 1 (system01.dbf) will also contain the controlfile backup.
    Regards,
    Tycho

  • RMAN Auto Control File Backup

    Can there be two control file auto file backups one to disk and one to tape ?
    Thanks,

    Hi
    In our RMAN setup SHOW ALL; there is both disk and tape configured. but it does not backup to disk anymore
    and I am getting the errors below in my alert.log.
    There are about ten old copies on the disk. How do these get purged ?
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'D:\DONT_TOUCH\CONTROL_FILE_BACKUP\%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default Starting control autobackup
    Wed Feb 03 00:20:31 2010
    Errors in file d:\oracle\product\10.2.0\admin\udump\_ora_3600.trc:
    Wed Feb 03 00:20:31 2010
    Errors in file d:\oracle\product\10.2.0\admin\udump\_ora_3600.trc:
    Wed Feb 03 00:20:31 2010
    Errors in file d:\oracle\product\10.2.0\admin\udump\_ora_3600.trc:
    Wed Feb 03 00:20:31 2010
    Control autobackup written to SBT_TAPE device
         comment 'API Version 2.0,MMS Version 5.0.0.0',
         media '/database/_1265174399_C1_F1'
         handle 'c-1624991920-20100203-01'
    Wed Feb 03 08:59:14 2010

Maybe you are looking for