Rman backup of control file

Hi,
We backup our database every using the below rman commmands.
run {
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
backup incremental level=0
format '/backupdisk/rmanbkps/thu/%d_%t_%s_%p' tag='fullprodbk'
filesperset 8
(database include current controlfile);
sql 'alter system archive log current';
sql 'alter system archive log current';
backup format '/backupdisk/rmanbkps/thu/%d_%t_%s_%p'
archivelog from time 'sysdate-1';
release channel c1;
release channel c2;
release channel c3;
release channel c4;
This mentions to include the current control file. The pieces are created successfully, but nowhere can i see a file in the format
C-IIIIIIIIIIII-YYYYMMDD-QQ
WHERE :-
C-control file
IIIIIIIIII- represents the database identifier.The dbid is printed in decimal format,so that it can be easily associated with the database
where is the control file stored then?? Pls advise.
Thanks in advance.

where is the control file stored then?? Pls advise.At rman prompt
RMAN> list backup of controlfile
2> ;
using target database controlfile instead of recovery catalog
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
1       Full    1M         DISK        00:03:34     30-OCT-07
        BP Key: 1   Status: AVAILABLE   Tag: TAG20071030T104736
        Piece Name: C:\ORACLE\ORA92\DATABASE\02IVPJU8_1_1
  Controlfile Included: Ckp SCN: 130119034    Ckp time: 30-OCT-07Khurram

Similar Messages

  • No RMAN records in control file

    Hi,
    We're running 10.2.0.4 Database on AIX with no catalog Database.
    We keep all the backup info in controlfiles only.
    When we do that backup, we're able to successfully back it up (including archivelogs). But I'm unable to find any records in the controlfiles.
    SQL> select * from  V$BACKUP_SET;
    no rows selected
    and
    SQL>  sho parameter control
    NAME                                 TYPE                             VALUE
    control_file_record_keep_time        integer                          14
    Could you advice where my backup info i going?
    Thanks
    CSM

    My backups are safe, I'm connected to the same Database as that's the only one exist in that machine...
    I'm seeing list of control files and archivelogs when i give 'list copy;' but not the datafiles.
    The only thing I'm doing is, I'm backing up the Database using a 3rd party tool which uses RMAN in turn...
    If we assume that tool is doing some mess, it's not happening on all the Databases backed up by that tool... and I'm sure that tool is not doing anything except just using RMAN code snippets.
    CSM

  • Taking RMAN backup in 3 files

    Hi all,
    I took backup of Datafiles , archivelog files and controlfile through RMAN. Now, i want 3 backup file will created as a output of RMAN operation. It would be :
    1 backupfile for all the datafiles
    1 backupfile for all the archivelog files
    1 backupfile for controlfile.
    It have to be regardlessly whatevr my DB size is. It it possible to do so. How i can can write rman script to accomplish the task.
    Regards,

    Hello,
    Can't i set maxpiecesize to 100G and ensure the backup in 1 file??No, even if you set the maxpiecesize to 100G, RMAN would not create a single 100G backuppiece which would contain the backup of datafiles, archives and controlfiles. There would be multiple backuppieces created for archives, datafiles and controlfiles.
    Example:
    RMAN script used to take backup:
    RMAN> run
    2> {
    3> allocate channel inc0 device type disk maxpiecesize 100G format '/u02/%d_inc0_%T_%U.bak;
    4> backup incremental level 0 database plus archivelog;
    5> backup archivelog all delete input;
    6> backup current controlfile spfile;
    7> }Backuppieces created at location "/u02/":
    [oracle@ora1-1 ~]$ cd /u02
    [oracle@ora1-1 u02]$ ls -lrth
    total 1.3G
    drwx------ 2 oracle oinstall  16K Oct 21 12:38 lost+found
    drwxr-xr-x 2 oracle oinstall 4.0K Oct 23 20:55 rpm
    -rw-r----- 1 oracle oinstall  40M Mar 28 13:31 SRPRIM_inc0_20130328_1ko5lkdg_1_1.bak
    -rw-r----- 1 oracle oinstall  25M Mar 28 13:31 SRPRIM_inc0_20130328_1lo5lkdn_1_1.bak
    -rw-r----- 1 oracle oinstall 1.1G Mar 28 13:33 SRPRIM_inc0_20130328_1mo5lke0_1_1.bak
    -rw-r----- 1 oracle oinstall 144K Mar 28 13:33 SRPRIM_inc0_20130328_1no5lkho_1_1.bak
    -rw-r----- 1 oracle oinstall  40M Mar 28 13:33 SRPRIM_inc0_20130328_1oo5lkhv_1_1.bak
    -rw-r----- 1 oracle oinstall  25M Mar 28 13:34 SRPRIM_inc0_20130328_1po5lki9_1_1.bak
    -rw-r----- 1 oracle oinstall  11M Mar 28 13:34 SRPRIM_inc0_20130328_1qo5lkiv_1_1.bak
    -rw-r----- 1 oracle oinstall  96K Mar 28 13:34 SRPRIM_inc0_20130328_1ro5lkj3_1_1.bakYou can see above that there are multiple backuppieces created. So, you cannot put all the backups into a single backuppiece.
    Regards,
    Shivananda

  • Rman loss of control file

    hi,
    i am beginner...
    plz i want 2 practice rman
    plz guide me for the scenario of loss of controlfile
    i.e what could be pre-configuration of rman, how to take backup/restore of controlfile?

    RMAN configuration parameters for database with db_unique_name ARCHDATA are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/archivedata/ARCHDATA/rman/bp_df%t_s%s_s%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/oracle/product/11.2.0/d_1/dbs/snapcf_archdata.f'; # default

  • How to set the Rman backup parameter.

    Hi,
    Can U guide me how to set the Rman backup path,control file auto backup & others parameter.

    Hi,
    Go through this,
    Show all configurable settings:
    RMAN>SHOW ALL;
    Write disk backups to the /rmanback directory: (%U will be replaced with unique filenames)
    RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rmanback/%U';
    Backup using a flash recovery area rather than disk
    RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT CLEAR;
    Configure RMAN to back up the control file after each backup
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    By default, RMAN automatically names control file backups and stores them in the flashrecovery area.
    To configure RMAN to write control file backups to the /backup directory:( %F will generate a unique filename)
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/controlfile%F';
    Ensure that RMAN retains all backups needed to recover the database to any point in time in the last 7 days:
    RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    Retain three backups of each datafile:
    RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    Delete backups no longer required by the retention policy:
    RMAN> DELETE OBSOLETE;
    To override the configured retention policy for individual backups - use BACKUP.. KEEP (or CHANGE.. KEEP)
    Configure backups to run in parallel by assigning two sbt channels:
    RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 2;
    Reset any CONFIGURE setting to its default by running the command with the CLEAR option
    RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt CLEAR;
    RMAN> CONFIGURE RETENTION POLICY CLEAR;
    Regards,
    oraclekt
    Edited by: oraclekt on Sep 1, 2010 9:58 PM

  • DBID for RMAN backup with format '%u'

    Hi all:
    (I've post this at c.d.o.s. too, but no answers...)
    This is Oracle 10.2.0.3 on Enterprise Linux 5.
    I've been given two backups from an Oracle Database: one 'cold' and
    one 'hot'. They both come from a lost server.
    The fact is that they have been made with the format '%u' (eight
    alphanumerics) and I must recover the database on a new server. I
    cannot get the DBID from the backup files name because of this format
    '%u'.
    The backups have been made with CONTROLFILE AUTOBACKUP ON (or so I'm told).
    How can I get the DBID to recover the DB on a new server?
    Thanks in advance.
    Cheers.
    Carlos.

    "I don't know where you read this, it's wrong. "Oracle® Database Backup and Recovery Advanced User's Guide
    10g Release 2 (10.2)
    2 RMAN Backups Concepts
    Control File and Server Parameter File Autobackups
    How RMAN Performs Control File Autobackups
    "The RMAN behavior when the BACKUP command includes datafile 1 depends on the CONFIGURE CONTROLFILE AUTOBACKUP setting. If control file autobackups are ON and the backup includes datafile 1, RMAN writes the control file and SPFILE to a separate autobackup backup set. If control file autobackups are OFF and the backup includes datafile 1, then RMAN includes the current control file and SPFILE in the same backup set as the datafiles."
    Cheers.
    Carlos.

  • 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

  • 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

  • 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

  • Control file restore without backup

    I installed oracle 10g
    Backed it up with rman ... backup database
    Now I lost the control file
    With out auto backup of control file ..how can i restore my control file and get it in sync with my database file

    Hi,
    As you stated as the below things
    I installed oracle 10g
    Backed it up with rman ... backup database Does the backup is taken is of full backup, then you can restore the controlfile. Basic thing, when ever the System.dbf is backup implicity the control file backup is done, don't forget, then is no need to set autobackup on looking into this case.
    try to restore as from backup, sa I stated above, your issue will be solved, remember if any strucutal changes are carried out after your backup, then those can not be recovered based on backup controlfile (like addition of new datafiles)
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • I can only backup the datafiles but not the control files and SPFiles

    Hello, all,
    I am using the Oracle 10g on a linux server which runs redhat 9. I want to backup the whole database to the disk, but not the flash recovery area. It is /rawdata. I will show how I configure the backup part in EM. Is there anything wrong?
    1. the ARCHIVELOG is on
    2. under Administration, in the All Initialization Parameters, I remove the string value of “log_archive_dest_1”. After that, I go to the SPFile and remove the string value of “log_archive_dest_1”
    3. configure backup settings and policies. The Disk Backup Location field is set to /rawdata. Select Image Copy for Disk Backup type. Test Disk backup is successful.
    4. go to Policy page. Select “Automatically backup the control file and server parameter file (SPFile) with every backup and database structural change.) input /rawdata into the filed: Autobackup Disk Location
    Select “Optimize the whole database backup by skipping unchanged files such as read-only and offline datafiles that have been backed up”
    Select “Retain backups that are necessary for a recovery to any time whin the specified number of days (point-in-time recovery)
    Accept the default of 31days
    5. go to Schedul Backup
    6. select customized from the backup Strategy drop-down menu. Select the Whole Database
    7. in the Options page, select “Full backup” in the Backup Type section. Select “Online Backup” in the Backup Mode section. Select “back up all archived logs on disk” in the Advanced section.
    8. in the Setting page, select “Disk”
    9. in the Schedule page, accept the default job name and description. Select Immediately to execute the job immediately.
    10. just submit the job.
    After several minutes, the job is failed while the Prebackup and Postbackup are succeeded. The log says:
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN>
    connected to target database: ORCL10G (DBID=770753237)
    using target database controlfile instead of recovery catalog
    RMAN>
    Starting backup at 11-OCT-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=268 devtype=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=+DATADG/orcl10g/system01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSTEM_FNO-1_68hvin50 tag=BACKUP_ORCL10G_000_101106111844 recid=108 stamp=603544772
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=+DATADG/orcl10g/sysaux01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSAUX_FNO-3_69hvin6d tag=BACKUP_ORCL10G_000_101106111844 recid=109 stamp=603544813
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00005 name=+DATADG/orcl10g/example01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-EXAMPLE_FNO-5_6ahvin7g tag=BACKUP_ORCL10G_000_101106111844 recid=110 stamp=603544829
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=+DATADG/orcl10g/undotbs01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-UNDOTBS1_FNO-2_6bhvin7v tag=BACKUP_ORCL10G_000_101106111844 recid=111 stamp=603544835
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:08
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=+DATADG/orcl10g/users01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-USERS_FNO-4_6chvin87 tag=BACKUP_ORCL10G_000_101106111844 recid=112 stamp=603544841
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    Finished backup at 11-OCT-06
    Starting Control File and SPFILE Autobackup at 11-OCT-06
    piece handle=/rawdata/c-770753237-20061011-05 comment=NONE
    Finished Control File and SPFILE Autobackup at 11-OCT-06
    RMAN>
    Starting backup at 11-OCT-06
    current log archived
    using channel ORA_DISK_1
    archived log /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270 not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 1062
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 10/11/2006 11:20:54
    RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
    ORA-19625: error identifying file /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_puhkv41f
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    RMAN>
    Recovery Manager complete.
    It seems the system tries to find a file “arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270” in /rawdata. I just can not understand.
    What should I do? Any advice is highly appreciated!
    Qian

    the string value in the field of 'log_archive_dest_1" under "All Initialization parameters" is "LOCATION=+DATADG/orcl10g/". The same value was in the field under SPFile.
    I reset these values and tried to backup the whole database. The same error appeared. The log says:
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle. All rights reserved.
    RMAN>
    connected to target database: ORCL10G (DBID=770753237)
    using target database controlfile instead of recovery catalog
    RMAN>
    Starting backup at 11-OCT-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=245 devtype=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=+DATADG/orcl10g/system01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSTEM_FNO-1_6ghvj9rd tag=BACKUP_ORCL10G_000_101106043753 recid=114 stamp=603563922
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=+DATADG/orcl10g/sysaux01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-SYSAUX_FNO-3_6hhvj9sq tag=BACKUP_ORCL10G_000_101106043753 recid=115 stamp=603563963
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00005 name=+DATADG/orcl10g/example01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-EXAMPLE_FNO-5_6ihvj9tu tag=BACKUP_ORCL10G_000_101106043753 recid=116 stamp=603563977
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=+DATADG/orcl10g/undotbs01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-UNDOTBS1_FNO-2_6jhvj9ud tag=BACKUP_ORCL10G_000_101106043753 recid=117 stamp=603563984
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=+DATADG/orcl10g/users01.dbf
    output filename=/rawdata/data_D-ORCL10G_I-770753237_TS-USERS_FNO-4_6khvj9uk tag=BACKUP_ORCL10G_000_101106043753 recid=118 stamp=603563990
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    Finished backup at 11-OCT-06
    Starting Control File and SPFILE Autobackup at 11-OCT-06
    piece handle=/rawdata/c-770753237-20061011-07 comment=NONE
    Finished Control File and SPFILE Autobackup at 11-OCT-06
    RMAN>
    Starting backup at 11-OCT-06
    current log archived
    using channel ORA_DISK_1
    archived log /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_cqhvf270 not found or out of sync with catalog
    trying alternate file for archivelog thread 1, sequence 1062
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 10/11/2006 16:40:05
    RMAN-06059: expected archived log not found, lost of archived log compromises recoverability
    ORA-19625: error identifying file /rawdata/arch_D-ORCL10G_id-770753237_S-1062_T-1_A-586368151_puhkv41f
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    RMAN>
    Recovery Manager complete.
    Why the system keeps trying to find files under /rawdata? It is the destination, not the source.
    Any help is appreciated!
    Qian
    Message was edited by:
    QianChen

  • 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

  • ASM RMAN backup to File System

    Hi all,
    I have a rman backup (datafile and controlfile) which was took in an ASM instance (not a RAC) ORACLE 11.2.0.2 in a Linux server, now I want restore the backup in a new database in windows/Linux OS using general File System storage (single instance rdbms) instead of ASM.
    Is this possible?
    Can I restrore an ASM rman backup in a file system storage mechanisim in a new server?
    Kindly clarify my question.
    Thanks in Advance..
    Nonuday

    Nonuday wrote:
    Hi Levi,
    Thanks for your invaluable script and blog.
    can you clarify me on this query:
    I have a RMAN backup taken from ASM and the backup is database and controlf file backup which contains datafiles and controlfiles.
    Now I need to restore this on my system and here I dont use ASM or archive log, I use single instance in no archive log mode database.
    I have restored the control file from the RMAN controfile backup.
    Before restoring the control file I have checked the orginal pfile of the backup database which had parameters like
    'db_create_file_dest',
    'db_create_online_log_dest',
    'db_recovery_file_dest_size',
    'db_recovery_dest',
    'log_archive_dest'.
    Since I am not gng to create a DB in no archive log mode, I didnt use any of the above parameters and created a database.
    Now my question is:
    If i restore the database and the datafile will get restored and after renaming all the logfiles, database will be opened.
    I want to know whether this method is correct or wrong and will the database work as it was working previously. Or do i need create the db_file_recovery and other parameters also for this database.About Parameter:
    All these parameters should reflect your current environment any reference to the old environment must be modified.
    About Filesystem used:
    Does not matter what Filesystem you are using the File (datafile/redolog/controlfile/archivelog/backuppiece) are created on Binary Format which depend on Platform only. So, The same binary file ( e.g datafile) have same format and content on raw device, ASM, ext3, ext2, and so on. So, to database it's only a location where file are stored, but the file are the same. ASM has a different architecture from Regular Filesystem and need be managed in a different manner (i.e using RMAN).
    About Database:
    Since your database files are the same even using different filesystem what you need is rename your datafiles/redofiles on controlfile during restore, the redo files will be recreated.
    So, does not matter if you database are noarchivelog or archivelog, the same way which you will do a restore on ASM is the same way to restore on Regular Filesystem. (it's only about renaming database file on controlfile during restore)
    On blog the post "How Migrate All Files on ASM to Non-ASM (Unix/Linux)" is about move the file from filesystem to another. But you can modify the script used to restore purposes;
    ## set newname tell to RMAN where file will be restored and keep this files location on memory buffer
    RMAN> set newname for datafile 1 to <location>;
    ### swich get list of files from memory buffer (rman) and rename on controlfile the files already restored.
    RMAN>switch datafile/tempfile all ;With database mounted use this script below:
    I just commented three lines that are unnecessary in your case.
    SET serveroutput ON;
    DECLARE
      vcount  NUMBER:=0;
      vfname VARCHAR2(1024);
      CURSOR df
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/datafile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$datafile;
      CURSOR tp
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/tempfile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$tempfile;
    BEGIN
    --  dbms_output.put_line('CONFIGURE CONTROLFILE AUTOBACKUP ON;'); ### commented
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
      --  dbms_output.put_line('backup as copy datafile ' || dfrec.file# ||' format  "'||dfrec.name ||vcount||'.dbf";');  ### commented
      END LOOP;
      dbms_output.put_line('run');
      dbms_output.put_line('{');
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
        dbms_output.put_line('set newname for datafile ' || dfrec.file# ||'  to  '''||dfrec.name ||vcount||'.dbf'' ;');
      END LOOP;
      FOR tprec IN tp
      LOOP
        IF tprec.name  !=  vfname THEN
          vcount      :=1;
          vfname     := tprec.name;
        ELSE
          vcount := vcount+1;
          vfname:= tprec.name;
        END IF;
        dbms_output.put_line('set newname for tempfile ' || tprec.file# ||'  to  '''||tprec.name ||vcount||'.dbf'' ;');
        END LOOP;
          dbms_output.put_line('restore database;');
        dbms_output.put_line('switch tempfile all;');
        dbms_output.put_line('switch datafile all;');
        dbms_output.put_line('recover database;');
        dbms_output.put_line('}');
    ---   dbms_output.put_line('alter database open;');  ### comented because you need rename your redologs on controlfile before open database
        dbms_output.put_line('exit');
    END;
    /After restore you must rename your redologs on controlfile from old location to new location:
    e.g
    ##  use this query to get current location of redolog
    SQL>  select group#,member from v$logfile order by 1;
    ## and change from <old_location> to <new_location>
    SQL > ALTER DATABASE
      RENAME FILE '+DG_TSM_DATA/tsm/onlinelog/group_3.263.720532229' 
               TO  '/u01/app/oracle/oradata/logs/log3a.rdo'  When you change all redolog on controlfile issue command below:
    SQL> alter database open resetlogs;PS: Always track database in real time using alert log file of database.
    HTH,
    Levi Pereira

  • A question about restoring from cold backup(control file backup not clear)

    Hi,
    I had another question about restoring the cold backup. My database is in noarchivelog mode and after taking a consistent cold backup, all I need to do is to restore the backup right? -Why I got this question is because: when I backup my control file to trace, I see statements like this:-----
    -- Commands to re-create incarnation table
    -- Below log names MUST be changed to existing filenames on
    -- disk. Any one log file from each branch can be used to
    -- re-create incarnation records.
    -- ALTER DATABASE REGISTER LOGFILE '/uo1/app1/arch1_1_647102958.dbf';
    -- Recovery is required if any of the datafiles are restored backups,
    -- or if the last shutdown was not normal or immediate.
    RECOVER DATABASE
    -- Database can now be opened normally.
    ALTER DATABASE OPEN;
    My database is in noarchivelog mode now so don't know why these statements (of register the logfile) is there in the backup of control file? so when I restore the cold backup of this database, it will still work correct? (there is no logfile I have only CRD files in cold backup -no archive log files.)
    thanks
    Nirav

    Thanks for your inputs! It is most useful to me.
    Regards
    Nirav

  • Only a cold datafile backup. No control files, redo files, archived redo

    Hi everyone,
    I made a stupid mistake and am in a bad condition with only a cold database backup without control files, redo files and archived redo files. My oracle database is oracle 9i. Is there any way to get my data back?
    Thanks,
    Yanping

    Hi,
    Have you a backup trace of a Control File ??
    You can try perform this:
    eg:
    oracle@linux:/u01> cp -a /backup/*.dbf /u01/oradata/DB01
    oracle@linux:~> sqlplus
    SQL*Plus: Release 9.2.0.4.0 - Production on Mon Sep 18 21:35:04 2006
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Enter user-name: / as sysdba
    Connected to an idle instance.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area   93394180 bytes
    Fixed Size                   451844 bytes
    Variable Size              67108864 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 667648 bytes
    SQL>CREATE CONTROLFILE REUSE DATABASE "DB01" RESETLOGS  ARCHIVELOG
        MAXLOGFILES 3
        MAXLOGMEMBERS 2
        MAXDATAFILES 10
        MAXINSTANCES 1
        MAXLOGHISTORY 226
    LOGFILE
      GROUP 1 '/u01/oradata/DB01/redo01.log'  SIZE 500K,
      GROUP 2 '/u01/oradata/DB01/redo02.log'  SIZE 500K,
      GROUP 3 '/u01/oradata/DB01/redo03.log'  SIZE 500K
    DATAFILE
      '/u01/oradata/DB01/system01.dbf',
      '/u01/oradata/DB01/undotbs01.dbf',
      '/u01/oradata/DB01/indx01.dbf',
      '/u01/oradata/DB01/tools01.dbf',
      '/u01/oradata/DB01/users01.dbf'
    CHARACTER SET WE8ISO8859P1;
    Control file created.
    SQL> alter database open resetlogs;
    Database altered.
    SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/oradata/BDRPS/temp01.dbf' SIZE 5242880 REUSE AUTOEXTEND OFF;
    Tablespace altered.
    SQL> select * from v$controlfile;
    STATUS  NAME
            /u01/oradata/DB01/control01.ctl
            /u01/oradata/DB01/control02.ctl
            /u01/oradata/DB01/control03.ctl
    SQL> select * from v$logfile;
        GROUP# STATUS  TYPE    MEMBER
             3         ONLINE  /u01/oradata/DB01/redo03.log
             2         ONLINE  /u01/oradata/DB01/redo02.log
             1         ONLINE  /u01/oradata/DB01/redo01.logCheers
    Message was edited by:
    Legatti

Maybe you are looking for

  • Strange issue during Clustware installation !!

    Hello everyone !! I have come across a very strange problem.. During CRS installation when i come to Cluster configuration it does not show me any public/private/virtual interface name , on top of it ..Add/delete/edit buttons are disabled.. What coul

  • How to load time machine on a used macbook pro

    I recently was given a used MacBook pro.  My old MacBooks logic board was going and eventually went, but before it did I used time machine to back it up.  I want to load my time machine macbook info onto the pro.  I cant seem to do this, since TimeMa

  • I need my name and business information at the bottom of all emails

    on my old Outlook email I was able to set up the letter page with my name and my business information at the end of the message. I can not find anything like this on Thunderbird. All incoming mail I get has it so why can't I find it here?

  • Cannot d/load Keynote

    Hi, I cannot install Keynote after downloaded. Error message "An eligible keynote application was not found in the location /applications/keynote.app" What is the remedy? Cheers....Max

  • Workflow issue- Dereferencing of the NULL reference

    Hello All, I have an issue with sending mails to external e-mail ids through a workflow process. I am using the FM SO_DOCUMENT_SEND_API1 for sending mails. However, because of the latest Basis version I need to call this FM in a seperate task when th