Spfile versus control file

Dear All,
I have a question about spfile and control file. Now I backed up database daily with spfile. And since I have set the rman configuration about "CONFIGURE CONTROLFILE AUTOBACKUP OFF;". It seems I don't have control file backup. Suppose one day, i need to recover my database from the backup and the control file is gone. Could I restore the control file from either backup(which should be the case) or spfile? Thanks in advance.
Regards,
Ke Lin

Hi lik!
Controlfile and SPFile are two different things. Let's say the controlfile is the heart of your database. It holds the complete databasestructure. That is the path+filename of all datafiles and redologs. To loose the controlfile is a very bad thing. Becaus in that case you can't recover to the lates point in time and you have to hope that you even have an old controlfile. That means: Without controlfile no recovery!!!! The SPFile holds the instanceparameters for your instance. The loose of that is not as critical as the loose of the controfile. There are many ways to regain a SPFile. e. g. all instanceparameters used for an instancestart are listed in the alert log file. It's not very easy but you may use them to rebuild your spfile. As a conclusion I recommend you to enable CONTROFILE AUTOBACK to get a backup of control- and SPFile every time you make a databasebackup.
Hope that's what you wanna know.
yours sincerely

Similar Messages

  • 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

  • Control File and SPFILE Autobackup command struck

    O.S Version:
    Linux Version "Red Hat Enterprise Linux Server release 6.2 (Santiago)
    Linux version 2.6.32-220.13.1.el6.x86_64 ([email protected]) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Thu Mar 29 11:46:40 EDT 2012
    2.6.18-308.16.1.el5  x86_64
    Tape Archiver : HP Data Protector
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Problem :
    In one of our environment,  OEM grid 11g scheduled Level 0 backup struck at the Control File and SPFILE Autobackup.
    RMAN Script:
    run {
    2> backup format '<%d_%s:%t:%p:%f>.df' incremental level 0 cumulative database;
    3> sql 'alter system archive log current';
    4> backup format '<%d_%s:%t:%p>.al' archivelog all not backed up;
    5> }
    RMAN Configuration
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name TestDB are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 45 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO 'TestDB_%F';
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'TestDB_%F';
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE 'SBT_TAPE' TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=TestDB,OB2BARLIST=Siv_ORA_TESTSrvr1_TestDB_DB,OB2BARHOSTNAME=TESTSrvr1)';
    CONFIGURE MAXSETSIZE TO UNLIMITED;
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128';
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+DG_TestDB_UAT_DATA_01/TestDB/TEMPFILE/snapcf_TestDB.f';
    RMAN Log:
    1.    Backup started at 07-SEP-2013 07:09:46
         Finished backup at 07-SEP-2013 07:16:38
    Wherein the Control file backup started at 07-SEP-2013 07:16:38 failed at 09/07/2013 12:44:38.  It kept struck for  5 Hours.
    Starting backup at 07-SEP-2013 07:09:46
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=250 instance=TestDB device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: Data Protector A.06.20/370
    allocated channel: ORA_SBT_TAPE_2
    Finished backup at 07-SEP-2013 07:16:38
    Starting Control File and SPFILE Autobackup at 07-SEP-2013 07:16:38
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of Control File and SPFILE Autobackup command on ORA_SBT_TAPE_1 channel at 09/07/2013 12:44:38
    ORA-19506: failed to create sequential file, name="TestDB_c-2078060264-20130907-ff", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:
       Vendor specific error: Cannot find requested element ERR(-2)
    ORACLE error from recovery catalog database: ORA-03113: end-of-file on communication channel
    Process ID: 2045
    Session ID: 89 Serial number: 36509
    RMAN> delete noprompt archivelog all backed up 1 times to sbt;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 09/07/2013 13:00:07
    RMAN-06004: ORACLE error from recovery catalog database: ORA-03114: not connected to ORACLE
    RMAN> **end-of-file**
    Why does the RMAN Backup struck at Controlfile , SPFile autobackup?

    Hello;
    I believe the issue is caused by your media management software. You should contact your media management vendor.
    Try the same operation to disk and I bet it works.
    Best Regards
    mseberg

  • 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 and spfile auto backup backup is failing

    Hello All,
    I am using Oracle RAC 11gR2 with ASM. My database is 2 nodes RAC1 and RAC2.
    I am taking RMAN database backups to ASM diskgroup (FRA) and to a Network File System mounted on both RAC1 and RAC2. I have this requirement to take backup also outside ASM.
    I have set: CONFIGURE CONTROL FILE AUTOBACKUP ON;
    I am runing the RMAN backup job from node 2 (RAC2)
    I am facing the below error when taking a backup to the Network File system;
    Starting Control File and SPFILE Autobackup at 08-SEP-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 09/08/2012 18:20:06
    ORA-00245: control file backup failed; target is likely on a local file systemHow could I solve that ?
    Regards,

    NB wrote:
    Is that general configuration ? or i can only do it for the sessions that RMAN to NFS?at rman
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'location_of_shared_storage%F';

  • New control file using spfile

    Hi all,
    I want to multiplex my control file to another volume. I have an spfile (no init.ora file). Do I just use an alter system with scope = SPFILE?
    i.e. ALTER SYSTEM SET CONTROL_FILES=... scope=SPFILE"
    Thanks for any feedback.

    geeter wrote:
    Hi all,
    I want to multiplex my control file to another volume. I have an spfile (no init.ora file). Do I just use an alter system with scope = SPFILE?
    i.e. ALTER SYSTEM SET CONTROL_FILES=... scope=SPFILE"
    Thanks for any feedback.Change spfile while database running
    Close the db
    Start it and it will use new settings for CONTROL_FILES
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • How to restore SPFILE & Control File ???

    Dear Experts,
    Please bear with me for this simple question.
    I am regularly taking backup's to tape using Tivoli MML. My backup's are all successful. We do not have recovery catalog database configured. Below is my full database backup script:
    OS: Windows 2008 R2 64-bit
    DB: Oracle 11g R2 (11.2.0.2)
    run
    allocate channel c1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=C:\Program Files\Tivoli\TSM\AgentOBA64\tdpo.opt)';
    allocate channel c2 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=C:\Program Files\Tivoli\TSM\AgentOBA64\tdpo.opt)';
    backup as compressed backupset format '%d_%u.bkp' database ;
    sql "alter system switch logfile";
    backup as compressed backupset format '%d_%u.alg' archivelog all delete input;
    release channel c1 ;
    release channel c2 ;     
    }and below is the log of the full database bakcup:
    allocated channel: c1
    channel c1: sid=58 devtype=SBT_TAPE
    channel c1: Data Protection for Oracle: version 5.5.2.0
    allocated channel: c2
    channel c2: sid=57 devtype=SBT_TAPE
    channel c2: Data Protection for Oracle: version 5.5.2.0
    sql statement: alter system switch logfile
    Starting backup at 26-OCT-11
    channel c1: starting compressed full datafile backupset
    channel c1: specifying datafile(s) in backupset
    input datafile fno=00001 name=D:\ORACLE\ORADATA\ABCDB\SYSTEM01.DBF
    input datafile fno=00004 name=D:\ORACLE\ORADATA\ABCDB\USERS01.DBF
    input datafile fno=00008 name=D:\ORACLE\ORADATA\ABCDB\HR_DATA
    input datafile fno=00009 name=D:\ORACLE\ORADATA\ABCDB\PROC_DATA
    channel c1: starting piece 1 at 26-OCT-11
    channel c2: starting compressed full datafile backupset
    channel c2: specifying datafile(s) in backupset
    input datafile fno=00003 name=D:\ORACLE\ORADATA\ABCDB\SYSAUX01.DBF
    input datafile fno=00005 name=D:\ORACLE\ORADATA\ABCDB\SYS_DATA
    input datafile fno=00002 name=D:\ORACLE\ORADATA\ABCDB\UNDOTBS01.DBF
    input datafile fno=00007 name=D:\ORACLE\ORADATA\ABCDB\GL_DATA
    input datafile fno=00006 name=D:\ORACLE\ORADATA\ABCDB\AUD_DATA
    channel c2: starting piece 1 at 26-OCT-11
    channel c2: finished piece 1 at 26-OCT-11
    piece handle=ABCDB_4mmq31ib.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
    channel c2: backup set complete, elapsed time: 00:00:15
    channel c2: starting compressed full datafile backupset
    channel c2: specifying datafile(s) in backupset
    including current control file in backupset
    channel c2: starting piece 1 at 26-OCT-11
    channel c1: finished piece 1 at 26-OCT-11
    piece handle=ABCDB_4lmq31ib.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
    channel c1: backup set complete, elapsed time: 00:00:19
    channel c2: finished piece 1 at 26-OCT-11
    piece handle=ABCDB_4nmq31ir.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
    channel c2: backup set complete, elapsed time: 00:00:10
    Finished backup at 26-OCT-11
    Starting Control File and SPFILE Autobackup at 26-OCT-11
    piece handle=c-2814270906-20111026-00 comment=API Version 2.0,MMS Version 5.5.2.0
    Finished Control File and SPFILE Autobackup at 26-OCT-11
    sql statement: alter system switch logfile
    Starting backup at 26-OCT-11
    current log archived
    channel c1: starting compressed archive log backupset
    channel c1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=267 recid=160 stamp=765559302
    channel c1: starting piece 1 at 26-OCT-11
    channel c2: starting compressed archive log backupset
    channel c2: specifying archive log(s) in backup set
    input archive log thread=1 sequence=268 recid=161 stamp=765559508
    input archive log thread=1 sequence=269 recid=162 stamp=765559508
    input archive log thread=1 sequence=270 recid=163 stamp=765560395
    channel c2: starting piece 1 at 26-OCT-11
    channel c1: finished piece 1 at 26-OCT-11
    piece handle=ABCDB_4pmq31jj.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
    channel c1: backup set complete, elapsed time: 00:00:08
    channel c2: finished piece 1 at 26-OCT-11
    piece handle=ABCDB_4qmq31jj.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
    channel c2: backup set complete, elapsed time: 00:00:08
    channel c1: starting compressed archive log backupset
    channel c1: specifying archive log(s) in backup set
    input archive log thread=1 sequence=271 recid=164 stamp=765560433
    input archive log thread=1 sequence=272 recid=165 stamp=765560434
    channel c1: starting piece 1 at 26-OCT-11
    channel c1: finished piece 1 at 26-OCT-11
    piece handle=ABCDB_4rmq31jr.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
    channel c1: backup set complete, elapsed time: 00:00:04
    Finished backup at 26-OCT-11
    Starting Control File and SPFILE Autobackup at 26-OCT-11
    piece handle=c-2814270906-20111026-01 comment=API Version 2.0,MMS Version 5.5.2.0
    Finished Control File and SPFILE Autobackup at 26-OCT-11
    released channel: c1
    released channel: c2
    RMAN>I want to restore SPFILE and controlfile on a new host. I did the following to restore:
    1) started database instance in nomount mode from RMAN (it started db with dummy parameter file)
    2) Set the dbid
    3) restore SPFILE/controlfile
    But the command says, I have to restore from autobackup. There is no autobackup controlfile available on this server. How do i tell the restore command to restore SPFILE & Controlfile from the tape library?
    Appreciate your help in this regard.
    Thanks
    Prem

    Dear ,
    Do the following for restore process from backup;
    RMAN> restore spfile from autobackup;
    note : if given error like this:
    RMAN 06172 ,
    So you should specify the path where the bkppice availabe
    RMAN> restore spfile from 'write the location here';
    or
    RMAN> restore spfile from autobackup db_flash_recovery_dest=' the location of flash recovery';
    Then
    SQL > Startup nomount ............... it should read the spfile
    and then restore the Controlfile
    RMAN> restore controlfile from autobackup;
    Hopes it help you
    Regards

  • Control File issue

    Hi All,
    11.2.0.1 on AIX 7.1 and Level 0 happens on every SATURDAY and L1 backup run every day.
    We are using following script for level0 RMAN backup:
    RUN {
    SHOW ALL;
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    ALLOCATE CHANNEL ch1 TYPE DISK;
    ALLOCATE CHANNEL ch2 TYPE DISK;
    ALLOCATE CHANNEL ch3 TYPE DISK;
    ALLOCATE CHANNEL ch4 TYPE DISK;
    BACKUP FORMAT '/oraclebackup/HFM11PROD/DF_L0_%d_%D%M%Y_%u_%s_%p' INCREMENTAL LEVEL 0 AS COMPRESSED BACKUPSET DATABASE TAG='LEVEL0';
    BACKUP FORMAT '/oraclebackup/HFM11PROD/ARC_L0_%d_%D%M%Y_%u_%s_%p'   ARCHIVELOG ALL NOT BACKED UP 2 TIMES TAG='LEVEL0';
    BACKUP FORMAT '/oraclebackup/HFM11PROD/CF_L0_%d_%D%M%Y_%u_%s_%p' CURRENT CONTROLFILE TAG='LEVEL0';
    BACKUP FORMAT '/oraclebackup/HFM11PROD/SP_L0_%d_%D%M%Y_%u_%s_%p' SPFILE TAG='LEVEL0';
    CROSSCHECK ARCHIVELOG ALL;
    DELETE NOPROMPT OBSOLETE;
    RELEASE CHANNEL ch1;
    RELEASE CHANNEL ch2;
    RELEASE CHANNEL ch3;
    RELEASE CHANNEL ch4;
    }Now backup logs shows that we have backup of control file in two backup pieces : One implicitly in a backup piece DF_L0_HFM11PRD_10112012_l8npv5b6_13992_1
    and other one is explicitly in CF_L0_HFM11PRD_10112012_lhnpv62e_14001_1 .
    RMAN> RUN {
    2> SHOW ALL;
    3> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    4> CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    5> ALLOCATE CHANNEL ch1 TYPE DISK;
    6> ALLOCATE CHANNEL ch2 TYPE DISK;
    7> ALLOCATE CHANNEL ch3 TYPE DISK;
    8> ALLOCATE CHANNEL ch4 TYPE DISK;
    9> BACKUP FORMAT '/oraclebackup/HFM11PROD/DF_L0_%d_%D%M%Y_%u_%s_%p' INCREMENTAL LEVEL 0 AS COMPRESSED BACKUPSET DATABASE TAG='LEVEL0';
    10> BACKUP FORMAT '/oraclebackup/HFM11PROD/ARC_L0_%d_%D%M%Y_%u_%s_%p'   ARCHIVELOG ALL NOT BACKED UP 2 TIMES TAG='LEVEL0';
    11> BACKUP FORMAT '/oraclebackup/HFM11PROD/CF_L0_%d_%D%M%Y_%u_%s_%p' CURRENT CONTROLFILE TAG='LEVEL0';
    12> BACKUP FORMAT '/oraclebackup/HFM11PROD/SP_L0_%d_%D%M%Y_%u_%s_%p' SPFILE TAG='LEVEL0';
    13> CROSSCHECK ARCHIVELOG ALL;
    14> DELETE NOPROMPT OBSOLETE;
    15> RELEASE CHANNEL ch1;
    16> RELEASE CHANNEL ch2;
    17> RELEASE CHANNEL ch3;
    18> RELEASE CHANNEL ch4;
    19> }
    RMAN configuration parameters for database with db_unique_name HFM11PRD are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    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 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/orahyp_p/product/11.2/dbs/snapcf_HFM11PRD.f'; # default
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    old RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    new RMAN configuration parameters:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    allocated channel: ch1
    channel ch1: SID=1210 device type=DISK
    allocated channel: ch2
    channel ch2: SID=1477 device type=DISK
    allocated channel: ch3
    channel ch3: SID=66 device type=DISK
    allocated channel: ch4
    channel ch4: SID=1156 device type=DISK
    Starting backup at 10-NOV-12
    channel ch1: starting compressed incremental level 0 datafile backup set
    channel ch1: specifying datafile(s) in backup set
    input datafile file number=00001 name=/u04/oradata/HFM11PRD/system01.dbf
    input datafile file number=00008 name=/u04/oradata/HFM11PRD/EPM_HFM4.DBF
    input datafile file number=00012 name=/u04/oradata/HFM11PRD/EPM_HFM8.DBF
    input datafile file number=00017 name=/u04/oradata/HFM11PRD/EPM_HFM12.DBF
    input datafile file number=00004 name=/u04/oradata/HFM11PRD/EPM_HSS1.DBF
    input datafile file number=00020 name=/u04/oradata/HFM11PRD/EPM_HFM3.DBF
    channel ch1: starting piece 1 at 10-NOV-12
    channel ch2: starting compressed incremental level 0 datafile backup set
    channel ch2: specifying datafile(s) in backup set
    input datafile file number=00003 name=/u04/oradata/HFM11PRD/undots01.dbf
    input datafile file number=00009 name=/u04/oradata/HFM11PRD/EPM_HFM5.DBF
    input datafile file number=00013 name=/u04/oradata/HFM11PRD/EPM_HFM9.DBF
    input datafile file number=00018 name=/u04/oradata/HFM11PRD/EPM_HFM13.DBF
    input datafile file number=00005 name=/u04/oradata/HFM11PRD/EPM_BI1.DBF
    input datafile file number=00021 name=/u04/oradata/HFM11PRD/EPM_HFM15.DBF
    channel ch2: starting piece 1 at 10-NOV-12
    channel ch3: starting compressed incremental level 0 datafile backup set
    channel ch3: specifying datafile(s) in backup set
    input datafile file number=00007 name=/u04/oradata/HFM11PRD/EPM_HFM2.DBF
    input datafile file number=00011 name=/u04/oradata/HFM11PRD/EPM_HFM7.DBF
    input datafile file number=00016 name=/u04/oradata/HFM11PRD/EPM_HFM11.DBF
    input datafile file number=00002 name=/u04/oradata/HFM11PRD/sysaux01.dbf
    input datafile file number=00022 name=/u04/oradata/HFM11PRD/EPM_HSS_new1.DBF
    channel ch3: starting piece 1 at 10-NOV-12
    channel ch4: starting compressed incremental level 0 datafile backup set
    channel ch4: specifying datafile(s) in backup set
    input datafile file number=00006 name=/u04/oradata/HFM11PRD/EPM_HFM1.DBF
    input datafile file number=00010 name=/u04/oradata/HFM11PRD/EPM_HFM6.DBF
    input datafile file number=00015 name=/u04/oradata/HFM11PRD/EPM_HFM10.DBF
    input datafile file number=00019 name=/u04/oradata/HFM11PRD/EPM_HFM14.DBF
    input datafile file number=00014 name=/u04/oradata/HFM11PRD/userdata01.dbf
    channel ch4: starting piece 1 at 10-NOV-12
    channel ch2: finished piece 1 at 10-NOV-12
    _*piece handle=/oraclebackup/HFM11PROD/DF_L0_HFM11PRD_10112012_l8npv5b6_13992_1 tag=LEVEL0 comment=NONE*_
    channel ch2: backup set complete, elapsed time: 00:10:46
    channel ch2: starting compressed incremental level 0 datafile backup set
    channel ch2: specifying datafile(s) in backup set
    _*including current control file in backup set*channel ch2: starting piece 1 at 10-NOV-12_
    channel ch2: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L0_HFM11PRD_10112012_lbnpv5vc_13995_1 tag=LEVEL0 comment=NONE
    channel ch2: backup set complete, elapsed time: 00:00:01
    channel ch2: starting compressed incremental level 0 datafile backup set
    channel ch2: specifying datafile(s) in backup set
    including current SPFILE in backup set
    channel ch2: starting piece 1 at 10-NOV-12
    channel ch2: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L0_HFM11PRD_10112012_lcnpv5ve_13996_1 tag=LEVEL0 comment=NONE
    channel ch2: backup set complete, elapsed time: 00:00:01
    channel ch1: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L0_HFM11PRD_10112012_l7npv5b6_13991_1 tag=LEVEL0 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:11:03
    channel ch4: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L0_HFM11PRD_10112012_lanpv5b7_13994_1 tag=LEVEL0 comment=NONE
    channel ch4: backup set complete, elapsed time: 00:11:32
    channel ch3: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L0_HFM11PRD_10112012_l9npv5b6_13993_1 tag=LEVEL0 comment=NONE
    channel ch3: backup set complete, elapsed time: 00:11:52
    Finished backup at 10-NOV-12
    Starting backup at 10-NOV-12
    current log archived
    channel ch1: starting compressed archived log backup set
    channel ch1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40007 RECID=40001 STAMP=798971664
    input archived log thread=1 sequence=40008 RECID=40002 STAMP=798972711
    input archived log thread=1 sequence=40009 RECID=40003 STAMP=798973470
    input archived log thread=1 sequence=40010 RECID=40004 STAMP=798974835
    input archived log thread=1 sequence=40011 RECID=40005 STAMP=798975943
    channel ch1: starting piece 1 at 10-NOV-12
    channel ch2: starting compressed archived log backup set
    channel ch2: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40012 RECID=40006 STAMP=798976804
    input archived log thread=1 sequence=40013 RECID=40007 STAMP=798977866
    input archived log thread=1 sequence=40014 RECID=40008 STAMP=798978754
    input archived log thread=1 sequence=40015 RECID=40009 STAMP=798980083
    input archived log thread=1 sequence=40016 RECID=40010 STAMP=798981194
    channel ch2: starting piece 1 at 10-NOV-12
    channel ch3: starting compressed archived log backup set
    channel ch3: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40017 RECID=40011 STAMP=798982283
    input archived log thread=1 sequence=40018 RECID=40012 STAMP=798983171
    input archived log thread=1 sequence=40019 RECID=40013 STAMP=798984077
    input archived log thread=1 sequence=40020 RECID=40014 STAMP=798985146
    input archived log thread=1 sequence=40021 RECID=40015 STAMP=798985212
    channel ch3: starting piece 1 at 10-NOV-12
    channel ch4: starting compressed archived log backup set
    channel ch4: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40022 RECID=40016 STAMP=798985214
    input archived log thread=1 sequence=40023 RECID=40017 STAMP=798985992
    input archived log thread=1 sequence=40024 RECID=40018 STAMP=798987561
    input archived log thread=1 sequence=40025 RECID=40019 STAMP=798988338
    channel ch4: starting piece 1 at 10-NOV-12
    channel ch4: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L0_HFM11PRD_10112012_lgnpv61k_14000_1 tag=LEVEL0 comment=NONE
    channel ch4: backup set complete, elapsed time: 00:00:15
    channel ch1: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L0_HFM11PRD_10112012_ldnpv61j_13997_1 tag=LEVEL0 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:00:26
    channel ch2: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L0_HFM11PRD_10112012_lenpv61j_13998_1 tag=LEVEL0 comment=NONE
    channel ch2: backup set complete, elapsed time: 00:00:26
    channel ch3: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L0_HFM11PRD_10112012_lfnpv61j_13999_1 tag=LEVEL0 comment=NONE
    channel ch3: backup set complete, elapsed time: 00:00:25
    Finished backup at 10-NOV-12
    Starting backup at 10-NOV-12
    channel ch1: starting compressed full datafile backup set
    channel ch1: specifying datafile(s) in backup set
    _*including current control file in backup set*_
    channel ch1: starting piece 1 at 10-NOV-12
    channel ch1: finished piece 1 at 10-NOV-12
    _*piece handle=/oraclebackup/HFM11PROD/CF_L0_HFM11PRD_10112012_lhnpv62e_14001_1 tag=LEVEL0 comment=NONE*_channel ch1: backup set complete, elapsed time: 00:00:01
    Finished backup at 10-NOV-12
    Starting backup at 10-NOV-12
    channel ch1: starting compressed full datafile backup set
    channel ch1: specifying datafile(s) in backup set
    including current SPFILE in backup set
    channel ch1: starting piece 1 at 10-NOV-12
    channel ch1: finished piece 1 at 10-NOV-12
    piece handle=/oraclebackup/HFM11PROD/SP_L0_HFM11PRD_10112012_linpv62i_14002_1 tag=LEVEL0 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:00:01
    Finished backup at 10-NOV-12Following is the script of Leve 1 RMAN backup.
    RUN {
    SHOW ALL;
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    ALLOCATE CHANNEL ch1 TYPE DISK;
    ALLOCATE CHANNEL ch2 TYPE DISK;
    ALLOCATE CHANNEL ch3 TYPE DISK;
    ALLOCATE CHANNEL ch4 TYPE DISK;
    BACKUP FORMAT '/oraclebackup/HFM11PROD/DF_L1_%d_%D%M%Y_%u_%s_%p' INCREMENTAL LEVEL 1 AS COMPRESSED BACKUPSET DATABASE TAG='LEVEL1';
    BACKUP FORMAT '/oraclebackup/HFM11PROD/ARC_L1_%d_%D%M%Y_%u_%s_%p'   ARCHIVELOG ALL NOT BACKED UP 2 TIMES TAG='LEVEL1';
    CROSSCHECK ARCHIVELOG ALL;
    DELETE NOPROMPT OBSOLETE;
    RELEASE CHANNEL ch1;
    RELEASE CHANNEL ch2;
    RELEASE CHANNEL ch3;
    RELEASE CHANNEL ch4;
    }Following is the log from Level 1 backup which shows that it has marked the backup of control file in backup piece CF_L0_HFM11PRD_10112012_lhnpv62e_14001_1 as obsolete and deleted.
    RMAN> RUN {
    2> SHOW ALL;
    3> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    4> ALLOCATE CHANNEL ch1 TYPE DISK;
    5> ALLOCATE CHANNEL ch2 TYPE DISK;
    6> ALLOCATE CHANNEL ch3 TYPE DISK;
    7> ALLOCATE CHANNEL ch4 TYPE DISK;
    8> BACKUP FORMAT '/oraclebackup/HFM11PROD/DF_L1_%d_%D%M%Y_%u_%s_%p' INCREMENTAL LEVEL 1 AS COMPRESSED BACKUPSET DATABASE TAG='LEVEL1';
    9> BACKUP FORMAT '/oraclebackup/HFM11PROD/ARC_L1_%d_%D%M%Y_%u_%s_%p'   ARCHIVELOG ALL NOT BACKED UP 2 TIMES TAG='LEVEL1';
    10> CROSSCHECK ARCHIVELOG ALL;
    11> DELETE NOPROMPT OBSOLETE;
    12> RELEASE CHANNEL ch1;
    13> RELEASE CHANNEL ch2;
    14> RELEASE CHANNEL ch3;
    15> RELEASE CHANNEL ch4;
    16> }
    RMAN configuration parameters for database with db_unique_name HFM11PRD are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    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 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/orahyp_p/product/11.2/dbs/snapcf_HFM11PRD.f'; # default
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    allocated channel: ch1
    channel ch1: SID=1718 device type=DISK
    allocated channel: ch2
    channel ch2: SID=1499 device type=DISK
    allocated channel: ch3
    channel ch3: SID=119 device type=DISK
    allocated channel: ch4
    channel ch4: SID=1166 device type=DISK
    Starting backup at 12-NOV-12
    channel ch1: starting compressed incremental level 1 datafile backup set
    channel ch1: specifying datafile(s) in backup set
    input datafile file number=00001 name=/u04/oradata/HFM11PRD/system01.dbf
    input datafile file number=00008 name=/u04/oradata/HFM11PRD/EPM_HFM4.DBF
    input datafile file number=00012 name=/u04/oradata/HFM11PRD/EPM_HFM8.DBF
    input datafile file number=00017 name=/u04/oradata/HFM11PRD/EPM_HFM12.DBF
    input datafile file number=00004 name=/u04/oradata/HFM11PRD/EPM_HSS1.DBF
    input datafile file number=00020 name=/u04/oradata/HFM11PRD/EPM_HFM3.DBF
    channel ch1: starting piece 1 at 12-NOV-12
    channel ch2: starting compressed incremental level 1 datafile backup set
    channel ch2: specifying datafile(s) in backup set
    input datafile file number=00003 name=/u04/oradata/HFM11PRD/undots01.dbf
    input datafile file number=00009 name=/u04/oradata/HFM11PRD/EPM_HFM5.DBF
    input datafile file number=00013 name=/u04/oradata/HFM11PRD/EPM_HFM9.DBF
    input datafile file number=00018 name=/u04/oradata/HFM11PRD/EPM_HFM13.DBF
    input datafile file number=00005 name=/u04/oradata/HFM11PRD/EPM_BI1.DBF
    input datafile file number=00021 name=/u04/oradata/HFM11PRD/EPM_HFM15.DBF
    channel ch2: starting piece 1 at 12-NOV-12
    channel ch3: starting compressed incremental level 1 datafile backup set
    channel ch3: specifying datafile(s) in backup set
    input datafile file number=00007 name=/u04/oradata/HFM11PRD/EPM_HFM2.DBF
    input datafile file number=00011 name=/u04/oradata/HFM11PRD/EPM_HFM7.DBF
    input datafile file number=00016 name=/u04/oradata/HFM11PRD/EPM_HFM11.DBF
    input datafile file number=00002 name=/u04/oradata/HFM11PRD/sysaux01.dbf
    input datafile file number=00022 name=/u04/oradata/HFM11PRD/EPM_HSS_new1.DBF
    channel ch3: starting piece 1 at 12-NOV-12
    channel ch4: starting compressed incremental level 1 datafile backup set
    channel ch4: specifying datafile(s) in backup set
    input datafile file number=00006 name=/u04/oradata/HFM11PRD/EPM_HFM1.DBF
    input datafile file number=00010 name=/u04/oradata/HFM11PRD/EPM_HFM6.DBF
    input datafile file number=00015 name=/u04/oradata/HFM11PRD/EPM_HFM10.DBF
    input datafile file number=00019 name=/u04/oradata/HFM11PRD/EPM_HFM14.DBF
    input datafile file number=00014 name=/u04/oradata/HFM11PRD/userdata01.dbf
    channel ch4: starting piece 1 at 12-NOV-12
    channel ch1: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L1_HFM11PRD_12112012_lvnq4e3a_14015_1 tag=LEVEL1 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:01:36
    channel ch1: starting compressed incremental level 1 datafile backup set
    channel ch1: specifying datafile(s) in backup set
    channel ch4: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L1_HFM11PRD_12112012_m2nq4e3a_14018_1 tag=LEVEL1 comment=NONE
    channel ch4: backup set complete, elapsed time: 00:01:35
    channel ch4: starting compressed incremental level 1 datafile backup set
    channel ch4: specifying datafile(s) in backup set
    including current SPFILE in backup set
    channel ch4: starting piece 1 at 12-NOV-12
    including current control file in backup set
    channel ch1: starting piece 1 at 12-NOV-12
    channel ch1: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L1_HFM11PRD_12112012_m3nq4e6a_14019_1 tag=LEVEL1 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:00:01
    channel ch4: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L1_HFM11PRD_12112012_m4nq4e6a_14020_1 tag=LEVEL1 comment=NONE
    channel ch4: backup set complete, elapsed time: 00:00:01
    channel ch3: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L1_HFM11PRD_12112012_m1nq4e3a_14017_1 tag=LEVEL1 comment=NONE
    channel ch3: backup set complete, elapsed time: 00:01:39
    channel ch2: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/DF_L1_HFM11PRD_12112012_m0nq4e3a_14016_1 tag=LEVEL1 comment=NONE
    channel ch2: backup set complete, elapsed time: 00:02:41
    Finished backup at 12-NOV-12
    Starting backup at 12-NOV-12
    current log archived
    channel ch1: starting compressed archived log backup set
    channel ch1: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40201 RECID=40195 STAMP=799144567
    input archived log thread=1 sequence=40202 RECID=40196 STAMP=799145383
    input archived log thread=1 sequence=40203 RECID=40197 STAMP=799146296
    input archived log thread=1 sequence=40204 RECID=40198 STAMP=799147040
    input archived log thread=1 sequence=40205 RECID=40199 STAMP=799147640
    input archived log thread=1 sequence=40206 RECID=40200 STAMP=799148271
    channel ch1: starting piece 1 at 12-NOV-12
    channel ch2: starting compressed archived log backup set
    channel ch2: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40207 RECID=40201 STAMP=799149018
    input archived log thread=1 sequence=40208 RECID=40202 STAMP=799150009
    input archived log thread=1 sequence=40209 RECID=40203 STAMP=799150549
    input archived log thread=1 sequence=40210 RECID=40204 STAMP=799151041
    input archived log thread=1 sequence=40211 RECID=40205 STAMP=799151860
    input archived log thread=1 sequence=40212 RECID=40206 STAMP=799152535
    channel ch2: starting piece 1 at 12-NOV-12
    channel ch3: starting compressed archived log backup set
    channel ch3: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40213 RECID=40207 STAMP=799153553
    input archived log thread=1 sequence=40214 RECID=40208 STAMP=799153980
    input archived log thread=1 sequence=40215 RECID=40209 STAMP=799154283
    input archived log thread=1 sequence=40216 RECID=40210 STAMP=799155243
    input archived log thread=1 sequence=40217 RECID=40211 STAMP=799155964
    input archived log thread=1 sequence=40218 RECID=40212 STAMP=799156899
    channel ch3: starting piece 1 at 12-NOV-12
    channel ch4: starting compressed archived log backup set
    channel ch4: specifying archived log(s) in backup set
    input archived log thread=1 sequence=40219 RECID=40213 STAMP=799157722
    input archived log thread=1 sequence=40220 RECID=40214 STAMP=799158015
    input archived log thread=1 sequence=40221 RECID=40215 STAMP=799158018
    input archived log thread=1 sequence=40222 RECID=40216 STAMP=799158847
    input archived log thread=1 sequence=40223 RECID=40217 STAMP=799159640
    input archived log thread=1 sequence=40224 RECID=40218 STAMP=799160590
    channel ch4: starting piece 1 at 12-NOV-12
    channel ch4: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L1_HFM11PRD_12112012_m8nq4e8h_14024_1 tag=LEVEL1 comment=NONE
    channel ch4: backup set complete, elapsed time: 00:00:25
    channel ch1: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L1_HFM11PRD_12112012_m5nq4e8g_14021_1 tag=LEVEL1 comment=NONE
    channel ch1: backup set complete, elapsed time: 00:00:36
    channel ch2: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L1_HFM11PRD_12112012_m6nq4e8g_14022_1 tag=LEVEL1 comment=NONE
    channel ch2: backup set complete, elapsed time: 00:00:36
    channel ch3: finished piece 1 at 12-NOV-12
    piece handle=/oraclebackup/HFM11PROD/ARC_L1_HFM11PRD_12112012_m7nq4e8g_14023_1 tag=LEVEL1 comment=NONE
    channel ch3: backup set complete, elapsed time: 00:00:35
    Finished backup at 12-NOV-12
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402011737949656.ARC RECID=40195 STAMP=799144567
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402021737949656.ARC RECID=40196 STAMP=799145383
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402031737949656.ARC RECID=40197 STAMP=799146296
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402041737949656.ARC RECID=40198 STAMP=799147040
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402051737949656.ARC RECID=40199 STAMP=799147640
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402061737949656.ARC RECID=40200 STAMP=799148271
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402071737949656.ARC RECID=40201 STAMP=799149018
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402081737949656.ARC RECID=40202 STAMP=799150009
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402091737949656.ARC RECID=40203 STAMP=799150549
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402101737949656.ARC RECID=40204 STAMP=799151041
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402111737949656.ARC RECID=40205 STAMP=799151860
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402121737949656.ARC RECID=40206 STAMP=799152535
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402131737949656.ARC RECID=40207 STAMP=799153553
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402141737949656.ARC RECID=40208 STAMP=799153980
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402151737949656.ARC RECID=40209 STAMP=799154283
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402161737949656.ARC RECID=40210 STAMP=799155243
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402171737949656.ARC RECID=40211 STAMP=799155964
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402181737949656.ARC RECID=40212 STAMP=799156899
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402191737949656.ARC RECID=40213 STAMP=799157722
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402201737949656.ARC RECID=40214 STAMP=799158015
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402211737949656.ARC RECID=40215 STAMP=799158018
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402221737949656.ARC RECID=40216 STAMP=799158847
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402231737949656.ARC RECID=40217 STAMP=799159640
    validation succeeded for archived log
    archived log file name=/u05/oradata/HFM11PRD/HFM11PRD_402241737949656.ARC RECID=40218 STAMP=799160590
    Crosschecked 24 objects
    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    Deleting the following obsolete backups and copies:
    Type                 Key    Completion Time    Filename/Handle
    Backup Set           18521832 10-NOV-12        
      Backup Piece       18521838 10-NOV-12          /oraclebackup/HFM11PROD/CF_L0_HFM11PRD_10112012_lhnpv62e_14001_1
    Backup Set           18521846 10-NOV-12        
      Backup Piece       18521848 10-NOV-12          /oraclebackup/HFM11PROD/SP_L0_HFM11PRD_10112012_linpv62i_14002_1
    deleted backup piece
    backup piece handle=/oraclebackup/HFM11PROD/CF_L0_HFM11PRD_10112012_lhnpv62e_14001_1 RECID=14000 STAMP=798988367
    deleted backup piece
    backup piece handle=/oraclebackup/HFM11PROD/SP_L0_HFM11PRD_10112012_linpv62i_14002_1 RECID=14001 STAMP=798988370
    Deleted 2 objects
    released channel: ch1
    released channel: ch2
    released channel: ch3
    released channel: ch4
    RMAN> exit;Now, on Friday when i am trying to do a restore for this database on another server i am getting error as below. Restore script is as below.
    run
    allocate AUXILIARY channel c1 device type disk;
    allocate AUXILIARY channel c2 device type disk;
    allocate AUXILIARY channel c3 device type disk;
    allocate AUXILIARY channel c4 device type disk;
    set until scn 699575816;
    duplicate target database to HFM11TMP;
    release channel c1;
    release channel c2;
    release channel c3;
    release channel c4;
    }Error is as:
       sql clone "alter system set  db_unique_name =
    ''HFM11TMP'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
       shutdown clone immediate;
       startup clone force nomount
       restore clone primary controlfile;
       alter clone database mount;
    executing Memory Script
    executing command: SET until clause
    sql statement: alter system set  db_name =  ''HFM11PRD'' comment= ''Modified by RMAN duplicate'' scope=spfile
    sql statement: alter system set  db_unique_name =  ''HFM11TMP'' comment= ''Modified by RMAN duplicate'' scope=spfile
    Oracle instance shut down
    Oracle instance started
    Total System Global Area    4275781632 bytes
    Fixed Size                     2213632 bytes
    Variable Size               2298480896 bytes
    Database Buffers            1962934272 bytes
    Redo Buffers                  12152832 bytes
    allocated channel: c1
    channel c1: SID=112 device type=DISK
    Starting restore at 06-NOV-12
    released channel: c1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 11/06/2012 15:13:32
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restoreRMAN is searching for backup of controlfile in backup piece CF_L0_HFM11PRD_10112012_lhnpv62e_14001_1. But this has been already obsolete.
    Now, if it not possible to get above backup piece back, then how to proceed with restore with backup piece DF_L0_HFM11PRD_10112012_l8npv5b6_13992_1 as it also has control file backup and available on disk, not obsolete. I can understand the reason for marking CF* file as obsolete because of redundency 1. But how to proceed with restore with available backup ?

    Hello;
    I would change my configure for one :
    RMAN>CONFIGURE CONTROLFILE AUTOBACKUP ON;Would use this to check :
    list backup of controlfile completed before <date>And would catalog everything again just to be sure before starting the restore.
    You may have to catalog use the control file piece to avoid the error.
    RMAN> catalog backuppiece ...Another idea is to test the restore using something like this :
    RMAN> run {
            set until time "to_date('2012 NOV 17 07:00','YYYY MON DD HH24:MI')";
            restore controlfile preview;
          }Best Regards
    mseberg
    Edited by: mseberg on Nov 16, 2012 10:12 AM
    Edited by: mseberg on Nov 16, 2012 11:13 AM

  • RAC control file has correpted, unable to mount database

    hi guru's,
    Im trying to startup my rac db, but it giving following error.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 233861120 bytes
    Fixed Size 2212088 bytes
    Variable Size 176164616 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 5152768 bytes
    ORA-00221: error on write to control file
    ORA-00206: error in writing (block 1, # blocks 1) of control file
    ORA-00202: control file: '+CTRL/finance/controlfile/current.256.812371485'
    ORA-15081: failed to submit an I/O operation to a disk
    ORA-15081: failed to submit an I/O operation to a disk
    alert log:
    Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
    ORA-15080: synchronous I/O operation to a disk failed
    WARNING: failed to write mirror side 1 of virtual extent 0 logical extent 0 of file 256 in group 2 on disk 1 allocation unit 78
    Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
    ORA-15080: synchronous I/O operation to a disk failed
    WARNING: failed to write mirror side 2 of virtual extent 0 logical extent 1 of file 256 in group 2 on disk 2 allocation unit 76
    Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
    ORA-15080: synchronous I/O operation to a disk failed
    WARNING: failed to write mirror side 3 of virtual extent 0 logical extent 2 of file 256 in group 2 on disk 3 allocation unit 78
    Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
    ORA-00206: error in writing (block 1, # blocks 1) of control file
    ORA-00202: control file: '+CTRL/finance/controlfile/current.256.812371485'
    ORA-15081: failed to submit an I/O operation to a disk
    ORA-15081: failed to submit an I/O operation to a disk
    ORA-221 signalled during: ALTER DATABASE MOUNT...
    trace file:
    Trace file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    ORACLE_HOME = /rdbms1/app/oracle/product/11.2.0/db_home/
    System name: Linux
    Node name: RAC-NODE1.vod.com
    Release: 2.6.18-128.el5
    Version: #1 SMP Wed Dec 17 11:41:38 EST 2008
    Machine: x86_64
    Instance name: finance1
    Redo thread mounted by this instance: 0 <none>
    Oracle process number: 28
    Unix process pid: 11821, image: [email protected] (TNS V1-V3)
    *** 2013-04-27 00:02:39.859
    *** SESSION ID:(1.3) 2013-04-27 00:02:39.859
    *** CLIENT ID:() 2013-04-27 00:02:39.859
    *** SERVICE NAME:() 2013-04-27 00:02:39.859
    *** MODULE NAME:([email protected] (TNS V1-V3)) 2013-04-27 00:02:39.859
    *** ACTION NAME:() 2013-04-27 00:02:39.859
    ORA-27041: unable to open file
    WARNING: IO Failed. group:2 disk(number.incarnation):1.0xe96d8019 disk_path:/dev/sdd2
    AU:78 disk_offset(bytes):81805312 io_size:16384 operation:Write type:asynchronous
    result:I/O error process_id:11821
    subsys:System iop:0x2b1c84e57250 bufp:0x2b1c84d6ce00 osderr:0x0 osderr1:0x0
    ORA-27041: unable to open file
    WARNING: IO Failed. group:2 disk(number.incarnation):2.0xe96d801a disk_path:/dev/sdd3
    AU:76 disk_offset(bytes):79708160 io_size:16384 operation:Write type:asynchronous
    result:I/O error process_id:11821
    subsys:System iop:0x2b1c84e57128 bufp:0x2b1c84d6ce00 osderr:0x0 osderr1:0x0
    ORA-27041: unable to open file
    WARNING: IO Failed. group:2 disk(number.incarnation):3.0xe96d8018 disk_path:/dev/sdd4
    AU:78 disk_offset(bytes):81805312 io_size:16384 operation:Write type:asynchronous
    result:I/O error process_id:11821
    subsys:System iop:0x2b1c84e57000 bufp:0x2b1c84d6ce00 osderr:0x0 osderr1:0x0
    ORA-15080: synchronous I/O operation to a disk failed
    WARNING: failed to write mirror side 1 of virtual extent 0 logical extent 0 of file 256 in group 2 on disk 1 allocation unit 78
    ORA-15080: synchronous I/O operation to a disk failed
    WARNING: failed to write mirror side 2 of virtual extent 0 logical extent 1 of file 256 in group 2 on disk 2 allocation unit 76
    ORA-15080: synchronous I/O operation to a disk failed
    WARNING: failed to write mirror side 3 of virtual extent 0 logical extent 2 of file 256 in group 2 on disk 3 allocation unit 78
    DDE rules only execution for: ORA 202
    ----- START Event Driven Actions Dump ----
    ---- END Event Driven Actions Dump ----
    ----- START DDE Actions Dump -----
    Executing SYNC actions
    ----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
    Successfully dispatched
    ----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (SUCCESS, 0 csec) -----
    Executing ASYNC actions
    ----- END DDE Actions Dump (total 0 csec) -----
    ORA-00206: error in writing (block 1, # blocks 1) of control file
    ORA-00202: control file: '+CTRL/finance/controlfile/current.256.812371485'
    ORA-15081: failed to submit an I/O operation to a disk
    ORA-15081: failed to submit an I/O operation to a disk
    all the diskgroups are in mount state only
    SQL> select name,state from v$asm_diskgroup;
    NAME STATE
    ARCLOG MOUNTED
    CTRL MOUNTED
    DBFILE MOUNTED
    FRA MOUNTED
    REDO1 MOUNTED
    REDO2 MOUNTED
    VOTE MOUNTED
    since i did not have mirror copy or backup of current control file to replace the correpted one.
    Is there any way to create new control file and transfered to ASM diskgroup and open database. or i need to drop the existing database.
    if i need to drop the db, without open the db how to drop database.
    kindly help on this.
    Thanks in advance.

    Hi,
    Thanks for the replay. im able to open the db.
    But can you tel me how to make my rac db to open with spfile which is on asmdiskgroup.
    SQL> select name,state from v$asm_diskgroup;
    NAME STATE
    ARCLOG MOUNTED
    CTRL MOUNTED
    DBFILE MOUNTED
    FRA MOUNTED
    REDO1 MOUNTED
    REDO2 MOUNTED
    VOTE MOUNTED
    Spfile:
    ASMCMD [+DBFILE/FINANCE/PARAMETERFILE] > pwd
    +DBFILE/FINANCE/PARAMETERFILE
    ASMCMD [+DBFILE/FINANCE/PARAMETERFILE] > ls
    spfile.262.813843989
    i shutdown the db and up the same but it can't take the spfile.
    SQL> show parameter spfile
    NAME TYPE VALUE
    spfile string
    Thanks in advance.

  • My experience of location of the control file

    Just learn bad experience by putting control file on a remote server.
    My original idea with the remote drive was to spread out th risk of losing all control files on the same location. But with one on remote drive it means
    1. That remote server has to be always on. I can not shut it down for other purpose especially when the remote server is my test server.
    2. My current oracle home was setup with a link directory from one drive to another local drive (by a previous Contractor). BAD for the startup if using the pfile. I have to include the total path of the pfile, even the init. ora file is in the $ORACLE_HOME/dbs, when I use modified pfile to startup.
    ex startup pfile='/total_path/init.ora'
    however I can use below to create a new init.ora file that saves into the $ORACLE_HOME/dbs
    create pfile='init.ora' from spfile;
    So I am going to change the location of my control file to one of the local drives, just different to that of other control files.
    This is my 2 cents opinion. Welcome any comments. Thanks.

    I think I can move second copy of redo log back to the server but at different hd when the Oracle is running. right?
    by dropping the inactive one group and recreate the group while other current group is on. But very becareful
    ( I have practiced on my test machine to drop one member, but 10g does not allow)
    I configured the flash_recovery to the drive where also store one copy of the archivelog. Since there is not much space left one other two drives, so I put other copy of the archivelog on a remote server.

  • Multiplex control files in Oracle 10g...

    Hi ,
    the Oracle documentation , in one of its books points out....:
    'Once the disk drive is repaired, the damaged control file can be restored using the intact copy of the control file from the other disk and the instance can be restarted'.
    Is it achievable automatically.... or using some kind of sql commands and which , if any.....?????
    Regards,
    Simon

    there's a parameter called
    control_files
    in your spfile/pfile whichever you use.
    You can just multiply as many control files as you wish at OS level (copy) and list them in the parameter, then start your database.

  • Control file failed

    Hi
    database name CLONESQL(duplicate database) does not match parameter db_name ORCL4 (source database) where should i change this one
    RMAN> duplicate target database to CLONESQL;
    Starting Duplicate Db at 12-SEP-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=97 device type=DISK
    contents of Memory Script:
    set until scn 923880;
    set newname for datafile 1 to
    "/u01/app/oracle/oradata/CLONESQLo1_mf_system_76tvgsh1_.dbf";
    set newname for datafile 2 to
    "/u01/app/oracle/oradata/CLONESQLo1_mf_sysaux_76tvgsjg_.dbf";
    set newname for datafile 3 to
    "/u01/app/oracle/oradata/CLONESQLo1_mf_undotbs1_76tvgsqn_.dbf";
    set newname for datafile 4 to
    "/u01/app/oracle/oradata/CLONESQLo1_mf_users_76tvgsxh_.dbf";
    set newname for datafile 5 to
    "/u01/app/oracle/oradata/CLONESQLo1_mf_example_76tvstov_.dbf";
    set newname for datafile 6 to
    "/u01/app/oracle/oradata/CLONESQLrman01.dbf";
    restore
    clone database
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 12-SEP-11
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/CLONESQLo1_mf_system_76tvgsh1_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/CLONESQLo1_mf_sysaux_76tvgsjg_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/CLONESQLo1_mf_undotbs1_76tvgsqn_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/CLONESQLo1_mf_users_76tvgsxh_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/CLONESQLo1_mf_example_76tvstov_.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/CLONESQLrman01.dbf
    channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCL4/backupset/2011_09_12/o1_mf_nnndf_TAG20110912T121122_76v1mbyr_.bkp
    channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/flash_recovery_area/ORCL4/backupset/2011_09_12/o1_mf_nnndf_TAG20110912T121122_76v1mbyr_.bkp tag=TAG20110912T121122
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:02:19
    Finished restore at 12-SEP-11
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "CLONESQL" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ( '/u01/app/oracle/oradata/CLONESQL/onlielogo1_mf_1_76tvr06l_.log', '/u01/app/oracle/flash_recovery_area/CLONESQL/onlinelog/o1_mf_1_76tvr4pp_.log' ) SIZE 50 M REUSE,
    GROUP 2 ( '/u01/app/oracle/oradata/CLONESQL/onlielogo1_mf_2_76tvr940_.log', '/u01/app/oracle/flash_recovery_area/CLONESQL/onlinelog/o1_mf_2_76tvrf5y_.log' ) SIZE 50 M REUSE,
    GROUP 3 ( '/u01/app/oracle/oradata/CLONESQL/onlielogo1_mf_3_76tvrl7w_.log', '/u01/app/oracle/flash_recovery_area/CLONESQL/onlinelog/o1_mf_3_76tvrrpm_.log' ) SIZE 50 M REUSE
    DATAFILE
    '/u01/app/oracle/oradata/CLONESQLo1_mf_system_76tvgsh1_.dbf'
    CHARACTER SET WE8MSWIN1252
    contents of Memory Script:
    switch clone datafile all;
    executing Memory Script
    datafile 2 switched to datafile copy
    input datafile copy RECID=1 STAMP=761683828 file name=/u01/app/oracle/oradata/CLONESQLo1_mf_sysaux_76tvgsjg_.dbf
    datafile 3 switched to datafile copy
    input datafile copy RECID=2 STAMP=761683828 file name=/u01/app/oracle/oradata/CLONESQLo1_mf_undotbs1_76tvgsqn_.dbf
    datafile 4 switched to datafile copy
    input datafile copy RECID=3 STAMP=761683828 file name=/u01/app/oracle/oradata/CLONESQLo1_mf_users_76tvgsxh_.dbf
    datafile 5 switched to datafile copy
    input datafile copy RECID=4 STAMP=761683828 file name=/u01/app/oracle/oradata/CLONESQLo1_mf_example_76tvstov_.dbf
    datafile 6 switched to datafile copy
    input datafile copy RECID=5 STAMP=761683828 file name=/u01/app/oracle/oradata/CLONESQLrman01.dbf
    contents of Memory Script:
    set until scn 923880;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 12-SEP-11
    using channel ORA_AUX_DISK_1
    starting media recovery
    archived log for thread 1 with sequence 4 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL4/archivelog/2011_09_12/o1_mf_1_4_76v1q11f_.arc
    archived log for thread 1 with sequence 5 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL4/archivelog/2011_09_12/o1_mf_1_5_76vdyn6f_.arc
    archived log file name=/u01/app/oracle/flash_recovery_area/ORCL4/archivelog/2011_09_12/o1_mf_1_4_76v1q11f_.arc thread=1 sequence=4
    archived log file name=/u01/app/oracle/flash_recovery_area/ORCL4/archivelog/2011_09_12/o1_mf_1_5_76vdyn6f_.arc thread=1 sequence=5
    media recovery complete, elapsed time: 00:00:05
    Finished recover at 12-SEP-11
    contents of Memory Script:
    shutdown clone immediate;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/u01/app/oracle/product/11.1.0/db_1/dbs/initCLONESQL.ora'
    starting Oracle instance without parameter file for retrieval of spfile
    Oracle instance started
    Total System Global Area 158662656 bytes
    Fixed Size 2142496 bytes
    Variable Size 79695584 bytes
    Database Buffers 71303168 bytes
    Redo Buffers 5521408 bytes
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "CLONESQL" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ( '/u01/app/oracle/oradata/CLONESQL/onlielogo1_mf_1_76tvr06l_.log', '/u01/app/oracle/flash_recovery_area/CLONESQL/onlinelog/o1_mf_1_76tvr4pp_.log' ) SIZE 50 M REUSE,
    GROUP 2 ( '/u01/app/oracle/oradata/CLONESQL/onlielogo1_mf_2_76tvr940_.log', '/u01/app/oracle/flash_recovery_area/CLONESQL/onlinelog/o1_mf_2_76tvrf5y_.log' ) SIZE 50 M REUSE,
    GROUP 3 ( '/u01/app/oracle/oradata/CLONESQL/onlielogo1_mf_3_76tvrl7w_.log', '/u01/app/oracle/flash_recovery_area/CLONESQL/onlinelog/o1_mf_3_76tvrrpm_.log' ) SIZE 50 M REUSE
    DATAFILE
    '/u01/app/oracle/oradata/CLONESQLo1_mf_system_76tvgsh1_.dbf'
    CHARACTER SET WE8MSWIN1252
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/12/2011 18:51:07
    RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
    ORA-01504: database name 'CLONESQL' does not match parameter db_name 'ORCL4'
    Thank you

    You should change the DB_NAME parameter in the initial configuration (init<SID>.ora) file for the clone database before startup to CLONESQL.
    Otherwise, show us the initial parameters for both source and clone.here is my parameter file
    orcl4.ora
    orcl4.__db_cache_size=385875968
    orcl4.__java_pool_size=12582912
    orcl4.__large_pool_size=4194304
    orcl4.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
    orcl4.__pga_aggregate_target=390070272
    orcl4.__sga_target=578813952
    orcl4.__shared_io_pool_size=0
    orcl4.__shared_pool_size=167772160
    Thank you
    orcl4.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/orcl4/adump'
    *.audit_trail='db'
    *.compatible='11.1.0.0.0'
    *.control_files='/u01/app/oracle/oradata/ORCL4/controlfile/o1_mf_76tvqvnw_.ctl','/u01/app/oracle/flash_recovery_area/ORCL4/controlfile/o1_mf_76tvqwmf_.ctl'
    *.db_block_size=8192
    *.db_create_file_dest='/u01/app/oracle/oradata'
    *.db_domain=''
    *.db_name='orcl4'
    *.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orcl4XDB)'
    *.log_archive_format='%t_%s_%r.dbf'
    *.memory_target=965738496
    *.open_cursors=300
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.undo_tablespace='UNDOTBS1'
    initclonesql.ora
    db_name='CLONESQL'
    db_block_size=8192
    compatible='11.1.0.0.0'
    remote_login_passwordfile='EXCLUSIVE'
    control_files='/u01/app/oracle/oradata/CLONESQL/controlfile/o1_mf_76tvqvnw_.ctl','/u01/app/oracle/flash_recovery_area/CLONESQL/controlfile/o1_mf_76tvqwmf_.ctl'
    db_file_name_convert = ('/u01/app/oracle/oradata/ORCL4/datafile/','/u01/app/oracle/oradata/CLONESQL')
    log_file_name_convert = ('/u01/app/oracle/oradata/ORCL4/onlinelog/','/u01/app/oracle/oradata/CLONESQL/onlielog','/u01/app/oracle/flash_recovery_area/ORCL4/onlinelog','/u01/app/oracle/flash_recovery_area/CLONESQL/onlinelog')

  • How to recover datafile.when control file auto backup is off

    hi friend
    i took hot backup of my database using following command
    rman>backup database;
    in my case controlfile auto backup is off.
    and i have lost my all controlfiles as well as datafiles except spfile.
    i have recovered control file using dbms_backup_restore package.
    know i am able to mount database using following command
    rman> startup mount;
    when i wrote following command
    rman> restore database;
    i got following error
    RMAN-06023: no backup or copy of datafile name found to restore
    enven i have backup of datbase.
    can anybody tell me how to recover datafiles in this case.
    thanking you
    sohail

    hi,
    I think you might have a problem here as the error from RMAN is described in the following metalink note
    Doc ID: Note:100565.1
    You should change you backup script to be something like
    rman {
    backup database include current controlfile;
    do you have any earlier backups of your database?
    regards
    Alan

  • How to make the control file consistent when I re-mulitplexing them

    Oracle 10g R2 on the AIX 5.3L
    My current control files (three) from the default set-up are all located in the same directory (/dbbaan/oradata/<SID>/). If I want to change some of the multiplexing of the control file to different directory to avoid the media failure,
    1. I copy one or two control files to different directory.
    2. create a new init_sid.ora from spfile
    2. edit the init_sid.ora file and change the locations of the control file
    3. shutdown/restart the DB using the init_sid.ora.
    4. create the spfile from the pfile
    5 shutdown/restart the DB with new spfile ( "SQL> startup")
    My question is: since there is always time lag between copying and recreating the new init_sid.ora, while the control file(s) are constantly updating, how can Db guarrente the consistency of the DB when I restart the DB (the control file specified in the init_sid.ora may be some time old) ? or does it matter?
    I did above and my DB restart without problem.

    Another problem concerns me. What happen if one of
    multiplexed control file location, which I use a NFS
    of another server, goes down and is not available
    during the operation ( After I restart up the DB)? I
    am sure I will see the error of that control file in
    the alert log.If one of the control files not accessible during operation, Oracle will crash. So you better make sure all of your control file location are reliable and accessible.

  • How to create parameter and control file like filename + date

    Hello there
    I am trying to create parameter and control file with following command
    in SQLPLUS
    create pfile='/u03/oradata/WEBDB/backup/initWEBDB.ora' from spfile;
    In RMAN
    copy current controlfile to '/u03/oradata/WEBDB/backup/cf_longterm.cpy';
    how can I put date at the end of filename like
    initWEBDB8jan06.ora and cf_longterm8jan06.cpy
    Thanks in advance
    Lionel

    ASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
    With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
    Not mirroring the redo logs, assuming multiple members, is not as critical.

Maybe you are looking for

  • Can I use Migration Assistant to migrate from a hard drive on the same computer?

    I have a Mac Pro with spaces for four hard drives. I currently have only one hard drive, with Mac OS X 10.6 on it. I am getting a new, second hard drive (a Solid State Drive). I want it to be my primary drive, to install Mac OS X 10.6 on that and use

  • How to Convert Date Object at Universe Level with out Timestamp

    Hi, I have a Object  called "PCREGISTERDATE" at universe where the data type is date .but the dates are coming in the following format:9/26/2007 9:48:40 PM but i want to show the date as with out time stamp. how can i create a object by at universele

  • Addon Start error - The system cannot find the file specified

    All, I am getting the above error when trying to connect an add-on. It's the budget editor in the SDK Samples. Compiled in vb.net, with the installer created from B1DE. The addon installs without a problem. It is only when connecting the add-on in th

  • DESCRIBE command

    Hi I am using oracle 10g and facing this problem. I want to overcome this problem. desc empName Null? Type empno not null number The name column is too long so that I have to move a cursor long time to right side. what changes should i made to displa

  • Error: [SYS/PERM] Temporary drop /var/mail/.user1.pop not owned by user1

    Hello mac eXperts, I get error "[SYS/PERM] Temporary drop /var/mail/.user1.pop not owned by user1". I'm trying to find temporary folder and .user1.pop file to delete it but I can't find it. Any suggestion? I think to solve this error is deleting .use