Scn in Control file

Hi,
Can we able to read the SCN stored in control file???? Can we monitor the SCN values that is stored in control file????
Regards,
007

Try this : ( You don't want to touch the control file )
select current_scn from v$database;Or
select dbms_flashback.get_system_change_number from dual;Best Regards
mseberg

Similar Messages

  • In case of Control File Failure, Create Control File cmd how get scn?

    The following lines i picked from the
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5033895918209
    ======================================================
    1. We can use the 'alter database rename ' at mount stage to rename any datafile. Or is it not possible to rename the system datafile like this? Why?
    2. What happens to the SCN information in the controlfile when a controlfile is recreated? How will the database sync the SCN with that of the datafiles?
    If I issue a 'backup controlfile to <file>' at 8 am and then restore that controlfile binary backup at 10 am and try to open the database, it will give me a control file old error. I understand that it is because the SCN is not in sync. But if I issue a 'backup controlfile to trace' at 8 am and use that script to recreate a new controlfile at 10 am, why doesn't I get the error? Where does it get the SCN information then?
    So what is the use of taking a binary copy of the controlfile. Looks like having a 'backup controlfile to trace' script is better than a binary backup. Do you agree? Why/whynot?
    Followup August 16, 2002 - 2pm US/Eastern:
    1) you could but I just always did it with the create controlfile statement.
    When moving system -- I do it that way
    When moving ANY OTHER tablespace -- i just offline it, move the files, rename the files online it.
    2) it just happens.
    The control file you create will read the files to figure out what is up.
    I agree, I've never used a binary controlfile backup myself.
    =========================================================
    My Question- In the Point2 above "Where does it get the SCN information and how control file do SCN Sync with data files?
    "

    1. The CREATE CONTROLFILE reads SCNs from the DataFiles. If the
    database was last shutdown, all the datafiles are "non-fuzzy" and have the same
    SCN (as of the shutdown checkpoint), If the database or some of the files are from
    are hot backup, you cannot open the database because the SCN of some files is
    older (lower) than others -- that is why a RECOVER (DATABASE or DATAFILE) is
    required.
    See http://web.singnet.com.sg/~hkchital/Incomplete_Recovery_with_BackupControlfile.doc
    2. I'm not sure I agree with Tom Kyte's response
    "I agree, I've never used a binary controlfile backup myself. "
    to the question
    "So what is the use of taking a binary copy of the controlfile. Looks like having a 'backup controlfile to trace' script is better than a binary backup. Do you agree? Why/whynot?"
    If you have lost your database (storage/filesystem failure) and all your datafiles are lost,
    you cannot simply do a CREATE CONTROLFILE from a Trace -- because the
    CREATE CONTROLFILE has to read and verify all the datafiles specified in the
    CREATE statement. If you have an RMAN Repository, you can use that to restore
    your database files but otherwise, the RMAN information about backups and backupsets
    are in the binary controlfile.
    That is why it is important to take binary controlfile backups either manually or
    using RMAN or using CONFIGURE CONTROLFILE AUTOBACKUP ON.

  • In 10g can we dump control file and get SCN info.

    Hi,
    I have a question can any one help me on this.
    In 9.2.0.5 we could dump the control file and get the SCN using the command :
    alter session set events 'immediate trace name CONTROLF level 10';
    In 10.1.0.4.0 the output of the dump has changed and we do not get the SCN. or any of the following information :
    DATABASE ENTRY
    CHECKPOINT PROGRESS RECORDS
    EXTENDED DATABASE ENTRY
    REDO THREAD RECORDS
    LOG FILE RECORDS
    DATA FILE RECORDS
    RMAN CONFIGURATION RECORDS
    LOG FILE HISTORY RECORDS
    OFFLINE RANGE RECORDS
    ARCHIVED LOG RECORDS
    BACKUP SET RECORDS
    BACKUP PIECE RECORDS
    BACKUP DATAFILE RECORDS
    Can I get similar output in 10g as 9i ?
    with regards,
    Dilip.

    Hi.
    What are you trying to achieve here? If you just want the current SCN, you can get it using one of these:
    SQL> select current_scn from v$database;
    CURRENT_SCN
    8058824527
    1 row selected.
    SQL>or
    SQL> select dbms_flashback.get_system_change_number from dual;
    GET_SYSTEM_CHANGE_NUMBER
                  8079317404
    1 row selected.
    SQL>Cheers
    Tim...

  • 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

  • Urgent: DBrefresh error 354 while creating control file, oracle9i, SAP R3

    Hi experts,
    I have created trace file in Source system and moved the same to target system and edited and then while executing the trace file to create control file the following eeror is coming
    my trace file is like this. . .
    STARTUP NOMOUNT
    CREATE CONTROLFILE SET DATABASE "P47" RESETLOGS ARCHIVELOG
    --  SET STANDBY TO MAXIMIZE PERFORMANCE
        MAXLOGFILES 255
        MAXLOGMEMBERS 3
        MAXDATAFILES 336
        MAXINSTANCES 50
        MAXLOGHISTORY 8168
      '/oracle/P47/sapdata9/btabd_63/btabd.data63',
      '/oracle/P47/sapdata9/stabi_27/stabi.data27',
      '/oracle/P47/sapdata9/btabi_122/btabi.data122',
      '/oracle/P47/sapdata9/stabd_28/stabd.data28',
      '/oracle/P47/sapdata9/btabi_123/btabi.data123',
      '/oracle/P47/sapdata9/btabd_64/btabd.data64',
      '/oracle/P47/sapdata9/btabi_124/btabi.data124'
    CHARACTER SET WE8DEC
    i run command like this:
    SQL> @/oracle/P47/saptrace/usertrace/control.sql
    ORACLE instance started.
    Total System Global Area          1249618992 bytes
    Fixed Size                                     732208 bytes
    Variable Size                             788529152 bytes 
    Database Buffers                       459022446 bytes
    Redo Buffers                                1335296 bytes
    <b>354</b>
    when I press 'enter' again SQL prompt is comming
    Please help
    rgds

    Hi markus,
    thanks for reply . .
    control files are not created. . . .
    alertSID logs shows as follows
    orap47> tail -f alert_P47.log
    ARCH shutting down
    Thu Dec 13 13:01:51 2007
    ARC0: Archival stopped
    Thu Dec 13 13:01:51 2007
    ARC1: Archival stopped
    Thu Dec 13 13:01:54 2007
    ARCH: Archiving is disabled
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    <b>When @/oracle/saptrace/usertrace/control.sql command given in sepearate SQL window</b>
    Thu Dec 13 13:03:37 2007
    Starting ORACLE instance (normal)
    Disable cache advisory with old cache parameters
    Thu Dec 13 13:03:37 2007
    WARNING: EINVAL creating segment of size 0x000000004b800000
    fix shm parameters in /etc/system or equivalent
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    SCN scheme 3
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up ORACLE RDBMS Version: 9.2.0.4.0.
    System parameters with non-default values:
      processes                = 80
      sessions                 = 96
      timed_statistics         = TRUE
      shared_pool_size         = 704643072
      enqueue_resources        = 8000
      control_files            = /oracle/P47/sapdata1/cntrl/cntrlP47.dbf, /oracle/P47/sapdata2/cntrl/cntrlP47.dbf, /oracle/P47/sapdata3/cntrl/cntrlP47.dbf
      db_block_buffers         = 56033
      db_block_checksum        = FALSE
      db_block_size            = 8192
      compatible               = 9.2.0
      log_archive_start        = TRUE
      log_archive_dest         = /oracle/P47/saparch/P47arch
      log_buffer               = 1048576
      log_checkpoint_interval  = 0
      db_files                 = 354
      db_file_multiblock_read_count= 8
      log_checkpoints_to_alert = TRUE
      control_file_record_keep_time= 30
      dml_locks                = 2500
      row_locking              = always
      replication_dependency_tracking= FALSE
      transactions_per_rollback_segment= 20
      rollback_segments        = PRS_0, PRS_1, PRS_10, PRS_11, PRS_12, PRS_13, PRS_14, PRS_2, PRS_3, PRS_4, PRS_5, PRS_6, PRS_7, PRS_8, PRS_9
      transaction_auditing     = FALSE
      remote_os_authent        = TRUE
      db_domain                = world
      parallel_max_servers     = 20
      hash_join_enabled        = FALSE
      background_dump_dest     = /oracle/P47/saptrace/background
      user_dump_dest           = /oracle/P47/saptrace/usertrace
      core_dump_dest           = /oracle/P47/saptrace/background
      optimizer_features_enable= 9.2.0
      sort_area_size           = 2097152
      sort_area_retained_size  = 0
      db_name                  = P47
      open_cursors             = 800
      optimizer_mode           = choose
      btree_bitmap_plans     = FALSE
      pushjoin_predicate     = FALSE
      optimizer_index_cost_adj = 10
      newinitial_join_orders = FALSE
      optimpeek_user_binds   = FALSE
    PMON started with pid=2
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    Thu Dec 13 13:03:39 2007
    ARCH: STARTING ARCH PROCESSES
    ARC0 started with pid=8
    ARC0: Archival started
    ARC1 started with pid=9
    Thu Dec 13 13:03:39 2007
    ARCH: STARTING ARCH PROCESSES COMPLETE
    Thu Dec 13 13:03:39 2007
    ARC0: Thread not mounted
    Thu Dec 13 13:03:39 2007
    ARC1: Archival started
    ARC1: Thread not mounted
    rgds

  • Control file failed error while duplicating database using RMAN

    I am using oracle database 10g R2 and trying to make a clone of the source database orcl on the same machine but with different directory structure with the name of test.
    When i run the duplicate command to create test database, then following error is generted:
    D:\>rman target sys@orcl nocatalog auxiliary /
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Nov 11 12:13:26 2011
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    target database Password:
    connected to target database: ORCL (DBID=1264668332)
    using target database control file instead of recovery catalog
    connected to auxiliary database: TEST (not mounted)
    RMAN> @script.txt
    RMAN> Run {
    2> Allocate channel C1 type disk;
    3> allocate auxiliary channel 'adisk_0' type DISK;
    4> duplicate target database to "test";
    5> #BACKUP INCREMENTAL LEVEL 1 DATABASE;
    6> #BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;
    7> #BACKUP INCREMENTAL LEVEL 0 DATABASE;
    8> #delete obsolete;
    9> }
    allocated channel: C1
    channel C1: sid=140 devtype=DISK
    allocated channel: adisk_0
    channel adisk_0: sid=157 devtype=DISK
    Starting Duplicate Db at 11-NOV-11
    contents of Memory Script:
       set until scn  12926250;
       set newname for datafile  1 to
    "D:\TEST\ORADATA\SYSTEM01.DBF";
       set newname for datafile  2 to
    "D:\TEST\ORADATA\UNDOTBS01.DBF";
       set newname for datafile  3 to
    "D:\TEST\ORADATA\SYSAUX01.DBF";
       set newname for datafile  4 to
    "D:\TEST\ORADATA\USERS01.DBF";
       set newname for datafile  5 to
    "D:\TEST\ORADATA\EXAMPLE01.DBF";
       set newname for datafile  6 to
    "D:\TEST\ORADATA\GL.DBF";
       restore
       check readonly
       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 11-NOV-11
    channel adisk_0: starting datafile backupset restore
    channel adisk_0: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to D:\TEST\ORADATA\SYSTEM01.DBF
    restoring datafile 00002 to D:\TEST\ORADATA\UNDOTBS01.DBF
    restoring datafile 00003 to D:\TEST\ORADATA\SYSAUX01.DBF
    restoring datafile 00004 to D:\TEST\ORADATA\USERS01.DBF
    restoring datafile 00005 to D:\TEST\ORADATA\EXAMPLE01.DBF
    restoring datafile 00006 to D:\TEST\ORADATA\GL.DBF
    channel adisk_0: reading from backup piece D:\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_11_07\O1_MF_NNND0_TAG20111107T220822_7CJ
    P
    channel adisk_0: restored backup piece 1
    piece handle=D:\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_11_07\O1_MF_NNND0_TAG20111107T220822_7CJ44MH4_.BKP tag=TAG20111107T220
    channel adisk_0: restore complete, elapsed time: 00:01:46
    Finished restore at 11-NOV-11
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "TEST" RESETLOGS ARCHIVELOG
      MAXLOGFILES     16
      MAXLOGMEMBERS      3
      MAXDATAFILES      100
      MAXINSTANCES     8
      MAXLOGHISTORY      292
    LOGFILE
      GROUP  1 ( 'D:\TEST\ORADATA\REDO01.LOG' ) SIZE 50 M  REUSE,
      GROUP  2 ( 'D:\TEST\ORADATA\REDO02.LOG' ) SIZE 50 M  REUSE,
      GROUP  3 ( 'D:\TEST\ORADATA\REDO03.LOG' ) SIZE 50 M  REUSE
    DATAFILE
      'D:\TEST\ORADATA\SYSTEM01.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=766930525 filename=D:\TEST\ORADATA\UNDOTBS01.DBF
    datafile 3 switched to datafile copy
    input datafile copy recid=2 stamp=766930525 filename=D:\TEST\ORADATA\SYSAUX01.DBF
    datafile 4 switched to datafile copy
    input datafile copy recid=3 stamp=766930526 filename=D:\TEST\ORADATA\USERS01.DBF
    datafile 5 switched to datafile copy
    input datafile copy recid=4 stamp=766930526 filename=D:\TEST\ORADATA\EXAMPLE01.DBF
    datafile 6 switched to datafile copy
    input datafile copy recid=5 stamp=766930526 filename=D:\TEST\ORADATA\GL.DBF
    contents of Memory Script:
       set until scn  12926250;
       recover
       clone database
        delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 11-NOV-11
    channel adisk_0: starting incremental datafile backupset restore
    channel adisk_0: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00001: D:\TEST\ORADATA\SYSTEM01.DBF
    destination for restore of datafile 00002: D:\TEST\ORADATA\UNDOTBS01.DBF
    destination for restore of datafile 00003: D:\TEST\ORADATA\SYSAUX01.DBF
    destination for restore of datafile 00004: D:\TEST\ORADATA\USERS01.DBF
    destination for restore of datafile 00005: D:\TEST\ORADATA\EXAMPLE01.DBF
    destination for restore of datafile 00006: D:\TEST\ORADATA\GL.DBF
    channel adisk_0: reading from backup piece D:\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_11_09\O1_MF_NNND1_TAG20111109T223628_7CO
    P
    channel adisk_0: restored backup piece 1
    piece handle=D:\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_11_09\O1_MF_NNND1_TAG20111109T223628_7COGJZVT_.BKP tag=TAG20111109T223
    channel adisk_0: restore complete, elapsed time: 00:00:07
    channel adisk_0: starting incremental datafile backupset restore
    channel adisk_0: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00001: D:\TEST\ORADATA\SYSTEM01.DBF
    destination for restore of datafile 00002: D:\TEST\ORADATA\UNDOTBS01.DBF
    destination for restore of datafile 00003: D:\TEST\ORADATA\SYSAUX01.DBF
    destination for restore of datafile 00004: D:\TEST\ORADATA\USERS01.DBF
    destination for restore of datafile 00005: D:\TEST\ORADATA\EXAMPLE01.DBF
    destination for restore of datafile 00006: D:\TEST\ORADATA\GL.DBF
    channel adisk_0: reading from backup piece D:\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_11_10\O1_MF_NNND1_TAG20111110T221428_7CR
    P
    channel adisk_0: restored backup piece 1
    piece handle=D:\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2011_11_10\O1_MF_NNND1_TAG20111110T221428_7CR1MQFO_.BKP tag=TAG20111110T221
    channel adisk_0: restore complete, elapsed time: 00:00:16
    starting media recovery
    archive log thread 1 sequence 524 is already on disk as file D:\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2011_11_11\O1_MF_1_524_7CS
    C
    archive log filename=D:\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2011_11_11\O1_MF_1_524_7CSG2HVT_.ARC thread=1 sequence=524
    media recovery complete, elapsed time: 00:00:14
    Finished recover at 11-NOV-11
    contents of Memory Script:
       shutdown clone;
       startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area     230686720 bytes
    Fixed Size                     1248236 bytes
    Variable Size                 67109908 bytes
    Database Buffers             155189248 bytes
    Redo Buffers                   7139328 bytes
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "TEST" RESETLOGS ARCHIVELOG
      MAXLOGFILES     16
      MAXLOGMEMBERS      3
      MAXDATAFILES      100
      MAXINSTANCES     8
      MAXLOGHISTORY      292
    LOGFILE
      GROUP  1 ( 'D:\TEST\ORADATA\REDO01.LOG' ) SIZE 50 M  REUSE,
      GROUP  2 ( 'D:\TEST\ORADATA\REDO02.LOG' ) SIZE 50 M  REUSE,
      GROUP  3 ( 'D:\TEST\ORADATA\REDO03.LOG' ) SIZE 50 M  REUSE
    DATAFILE
      'D:\TEST\ORADATA\SYSTEM01.DBF'
    CHARACTER SET WE8MSWIN1252
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 11/11/2011 12:16:21
    RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
    ORA-01504: database name 'TEST' does not match parameter db_name 'orcl'
    RMAN> **end-of-file**
    Script.txt
    Run {
    Allocate channel C1 type disk;
    allocate auxiliary channel 'adisk_0' type DISK;
    duplicate target database to "test";
    }Kindly help?

    Moazzam wrote:
    RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
    ORA-01504: database name 'TEST' does not match parameter db_name 'orcl'
    Kindly help?>Please check what is the value of parameter db_name in the standby database? It should be match with TEST name
    Cheers

  • Control File error while duplicating Database through Rman

    Hi,
    Oracle Ver: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    Os:Win Xp
    I am trying to create a Standby through Rman....
    I am using this Run Block to take backup of Primary Database.......
    run {
    allocate channel d1 type disk;
    allocate channel d2 type disk;
    setlimit channel d1 kbytes 2097150;
    setlimit channel d2 kbytes 2097150;
    backup incremental level 0 format 'e:\Oracle\standby\rman\df_%U' database
    include current controlfile for standby;
    sql "alter system archive log current";
    backup
    archivelog all format 'e:\Oracle\standby\rman\al_%U' delete input;
    }After taking the Backup when I am trying to create the standby with Duplicate command it s giving me Error...
    The Run Block I am using is ......
    RMAN> run {
    2> allocate auxiliary channel dup1 type disk;
    3> allocate auxiliary channel dup2 type disk;
    4> set newname for datafile 1 to 'E:\Oracle\standby\system01.dbf';
    5> set newname for datafile 2 to 'E:\Oracle\standby\UNDOTBS01.DBF';
    6> set newname for datafile 3 to 'E:\Oracle\standby\SYSAUX01.DBF';
    7> set newname for datafile 4 to 'E:\Oracle\standby\USERS01.DBF';
    8> duplicate target database for standby
    9> dorecover;
    10> }
    allocated channel: dup1
    channel dup1: sid=37 devtype=DISK
    allocated channel: dup2
    channel dup2: sid=36 devtype=DISK
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting Duplicate Db at 02-OCT-08
    contents of Memory Script:
       set until scn  1105194;
       restore clone standby controlfile;
       sql clone 'alter database mount standby database';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 02-OCT-08
    channel dup1: starting datafile backupset restore
    channel dup1: restoring control file
    channel dup1: reading from backup piece E:\ORACLE\STANDBY\RMAN\DF_0VJS4RS7_1_1
    channel dup1: restored backup piece 1
    piece handle=E:\ORACLE\STANDBY\RMAN\DF_0VJS4RS7_1_1 tag=TAG20081002T124502
    channel dup1: restore complete, elapsed time: 00:00:01
    output filename=D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\CTL1STANDBY.ORA
    Finished restore at 02-OCT-08
    sql statement: alter database mount standby database
    released channel: dup1
    released channel: dup2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/02/2008 13:01:43
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of sql command on clone_default channel at 10/02/2008 13:01:43
    RMAN-11003: failure during parse/execution of SQL statement: alter database mount standby database
    *ORA-00201: control file version 10.2.0.1.0 incompatible with ORACLE version 10.2.0.0.0*
    ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\CTL1STANDBY.ORA'Why i am getting this Incomaptable Control File error inspite of Backing up the control File.....
    Regards,
    Prosenjit Mukherjee

    Check the value for the parameter "COMPATIBLE" in the source and standby database instance parameter files.
    "COMPATIBLE" should be the same.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i70517
    "... ensure the COMPATIBLE initialization parameter is set to the same value on both the primary and standby databases"
    Edited by: Hemant K Chitale on Oct 2, 2008 4:09 PM
    Added link and quote from 10g doc

  • Restore from OSB. RMAN-06024: no backup or copy of the control file found

    I backed up controlfile for standby on production server to OSB media:
    -bash-3.00$ rman target / catalog rman/rman@emgc
    Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:15:33 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: EMGC (DBID=1838014073)
    connected to recovery catalog database
    RMAN>
    RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    BACKUP CURRENT CONTROLFILE FOR STANDBY tag 'stb_ctl';
    RELEASE CHANNEL ch1;
    CONFIGURE DEVICE TYPE 'SBT_TAPE' CLEAR;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN> 2> 3> 4> 5> 6>
    allocated channel: ch1
    channel ch1: sid=1085 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    Starting backup at 25-JAN-11
    channel ch1: starting compressed full datafile backupset
    channel ch1: specifying datafile(s) in backupset
    including standby control file in backupset
    channel ch1: starting piece 1 at 25-JAN-11
    channel ch1: finished piece 1 at 25-JAN-11
    piece handle=1em30ngu_1_1 tag=STB_CTL comment=API Version 2.0,MMS Version 10.3.0.2
    channel ch1: backup set complete, elapsed time: 00:00:27
    Finished backup at 25-JAN-11
    released channel: ch1
    RMAN> list backup of controlfile;
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
    RMAN configuration parameters are successfully reset to default value
    starting full resync of recovery catalog
    full resync complete
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
    BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
    Handle: 1em30ngu_1_1 Media: mf_rman-000003
    Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
    RMAN>
    On standby server I try to restore this control file but there is some trouble with restore... By the way I can delete that backup piece...
    -bash-3.00$ rman target / catalog rman/rman@emgc
    Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jan 25 15:34:32 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: emgc (not mounted)
    connected to recovery catalog database
    RMAN> set DBID=1838014073;
    executing command: SET DBID
    database name is "EMGC" and DBID is 1838014073
    RMAN> RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    crosscheck backup of controlfile;
    2> 3> 4> 5>
    allocated channel: ch1
    channel ch1: sid=1093 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
    Crosschecked 1 objects
    released channel: ch1
    RMAN> list backup of controlfile;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    1479 Full 512.00K SBT_TAPE 00:00:18 25-JAN-11
    BP Key: 1480 Status: AVAILABLE Compressed: YES Tag: STB_CTL
    Handle: 1em30ngu_1_1 Media: mf_rman-000003
    Standby Control File Included: Ckp SCN: 33567224 Ckp time: 25-JAN-11
    RMAN> RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    RESTORE CONTROLFILE FROM TAG 'STB_CTL';
    2> 3> 4> 5>
    allocated channel: ch1
    channel ch1: sid=1093 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    Starting restore at 25-JAN-11
    released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 01/25/2011 15:35:20
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restore
    RMAN> RUN
    ALLOCATE CHANNEL ch1 DEVICE TYPE 'SBT_TAPE';
    delete noprompt backup of controlfile;
    2> 3> 4> 5>
    allocated channel: ch1
    channel ch1: sid=1093 devtype=SBT_TAPE
    channel ch1: Oracle Secure Backup
    List of Backup Pieces
    BP Key BS Key Pc# Cp# Status Device Type Piece Name
    1480 1479 1 1 AVAILABLE SBT_TAPE 1em30ngu_1_1
    deleted backup piece
    backup piece handle=1em30ngu_1_1 recid=40 stamp=741367328
    Deleted 1 objects
    released channel: ch1
    RMAN>

    You cannot specify a tag for a standby control file.
    read here
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmstand.htm#1002594
    Edited by: Adigozalov Gurban on Jan 25, 2011 2:14 PM

  • 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')

  • CONTROL FILE RECOVERY

    HI
    CAN anyone tell me
    how can i perform recovery if all my control files get lost,and i have cold backup datafiles and control files of last week. so pls suggest me how recovery will
    be performed i.e datfile header is showing me scn 102346
    and control file contains older scns .
    and my database is in archive log mode.

    If you do not have a backup of current control file, you cannot restore your database to the time when the failure occurred.
    In simple words, the old control file would not know anything about the new archive logs.Satish,
    Think about what you said. If you backup at 1am every night and archivelogs every 4 hours and you lose the storage volumes holding the database and controlfiles and redo logs at 6pm ... how would you recover the database ? The controlfile backup of 1am "does not know anything about the new archive logs" from 1am to 6pm, and yet you have ArchiveLog backups upto 4pm.
    Would you tell your manager that you can't recover the database as of upto 4pm ?
    (whether you use RMAN or do not use RMAN , whether you use a Catalog or do not use a Catalog with RMAN, those questiosn are irrelevant).

  • 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

  • Functioning of control file when re-created

    Hi friends,
    we can recover database without data loss when there is a situation to re-create control file(for suppose control file is lost and no multiplexed copies are available) using NORESETLOGS option in controlfile script.
    when we re-create controlfile, no SCN and checkpoint information will be there in controlfile. Then how controlfile will get the latest SCN and how it allows DB to be up and running.
    please explain. thanks in advance

    Hi,
    As per my knowledge I am explaning what will happen at Background.
    As you said that control File is lost and no mutiplexed, In that scenario you are going to recreate the Controlfile. As we know that control file will be in Sync with All DataFiles (System etc.,) , which will hold the SCN numbers, When the Instance is UP with the newly Created ControlFile (Since scn is not available), it will get the Highest SCN Number from Current DataFiles and Check for in Sync with other Datafiles, whether SCN is in Sync with the Other data files or not.
    And further proceed with Recovery Process Based on the Redo Logs.
    As you said if the required SCN is not available in the Redo Logs it will Check for the Archive Redo Logs Based on the SCN i.e., (If Req SCN is < SCN in Redo Logs) It will Check for Archive Logs files.
    Let me know in case If I am not clear or some where wrong in concept so that I can learn some thing inturn from others.!!
    Thanks & Regards,
    Pavan Kumar N

  • Problem in identifying control file when creating physical standby

    hi there,
    (database version: 10.2.0.4
    plateform linux)
    I'm using the command as below to create physical standby database from backup:
    rman target / auxiliary sys/tiger@paceview
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: PACEVIEW (DBID=2092349485)
    connected to auxiliary database: PACEVIEW (not mounted)
    run {
    allocate auxiliary channel c1 device type DISK;
    set until sequence 38;
    duplicate target database for standby dorecover nofilenamecheck;
    released channel: ORA_DISK_1
    allocated channel: c1
    channel c1: sid=35 devtype=DISK
    allocated channel: c2
    channel c2: sid=36 devtype=DISK
    executing command: SET until clause
    Starting Duplicate Db at 04-SEP-12
    contents of Memory Script:
       set until scn  138180211934;
       restore clone standby controlfile;
       sql clone 'alter database mount standby database';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 04-SEP-12
    channel c1: restoring control file
    ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is control file  (/backup/rman/paceview/DEL1_standby.ctl)
    ORA-19601: output file is control file  (/PGHProdDB/oradata/paceview/control1.ctl)
    failover to previous backup
    released channel: c1
    released channel: c2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44
    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 restorei have already tried crosscheck but still giving same error
    thanks

    Hello;
    So this is what I would do :
    Backup Primary ( change to your directory as need )
    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    }Move the backup and duplicate like this :
    rman target sys/password@PRIMARY auxiliary /
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }For complete details of this method see :
    http://www.visi.com/~mseberg/duprman2.html
    Best Regards
    mseberg

  • RECREATE DATABASE Using CONTROL File After SUSPEND Database

    Hello All,
    Does someone can tell me if he does achieve recreating a database using "Backup Control File" after putting database in "suspend" mode?
    The procedure looks like this :
    1 - Alter DATABASE Suspend
    2 - A Snapshot of the filesystem where the oracle datafile are located
    3 - Copy of those files to another file systeme
    4 - Startup setting a new database name
    Does someone as do it successfully ?
    Thanks for your answer

    Carlos,
    I tried to do it without putting the tablespaces in backup mode and it didn't work for me. At that time adding the backup mode wasn't a big deal for me, so I didn't investigate the problem thoroughly.
    Logically thinking you sould be able to do:
    1. suspend database
    the SCNs recored in datafiles headers could be incosistent at this point
    2. make a snapshot
    3. mount the backup database
    4. run recover until cancel using backup controlfile - I don't think you can avoid this step in case if you have inconsistent SCNs in the datafiles headers - you'll need to synchronize them
    5. open resetlogs.
    the suspend database should eliminate the possibility of inconsistent data within a block during the backup.
    Just out of curiosity - why don't you want to put the tablespace in the backup mode?
    Mike

  • ORA-01190: control file or data file 1 is from before the last RESETLOGS

    hi, experts.
    i have oradb 11g and using it for OIM11
    after some actions in oim i try to get my db to previous state (many times it was done successfully)
    but now i have problem ORA-01190: control file or data file 1 is from before the last RESETLOGS
    im runing in noarchivelog mode
    i have autobackup of controlfile and i have 2 backups of my db
    please help me
    maybe some one know how to restore my backup to new db and then change configuration of wls and oim...

    Hi, Thanks for reply
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1       1       OIMDB    2372279074       PARENT  1          02-APR-10
    2       2       OIMDB    2372279074       PARENT  940976     11-JUL-11
    3       3       OIMDB    2372279074       PARENT  5590849    09-AUG-11
    4       4       OIMDB    2372279074       PARENT  5590850    10-AUG-11
    5       5       OIMDB    2372279074       PARENT  5596482    11-AUG-11
    7       7       OIMDB    2372279074       PARENT  5596483    11-AUG-11
    8       8       OIMDB    2372279074       PARENT  5596484    12-AUG-11
    6       6       OIMDB    2372279074       ORPHAN  5622931    11-AUG-11
    9       9       OIMDB    2372279074       PARENT  5627526    18-AUG-11
    10      10      OIMDB    2372279074       PARENT  5627527    18-AUG-11
    11      11      OIMDB    2372279074       ORPHAN  5627528    18-AUG-11
    12      12      OIMDB    2372279074       CURRENT 5627528    18-AUG-11
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    9       Full    1.50G      DISK        00:00:31     12-AUG-11
            BP Key: 9   Status: AVAILABLE  Compressed: NO  Tag: TAG20110812T114515
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_12\O1_MF_NNNDF_TAG20110812T114515_749PJDCW_.BKP
      List of Datafiles in backup set 9
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSTEM01.DBF
      2       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSAUX01.DBF
      3       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\UNDOTBS01.DBF
      4       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\USERS01.DBF
      5       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIMLOB.DBF
      6       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_IASSDPM.DBF
      7       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_MDS.DBF
      8       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_SOAINFRA.DBF
      9       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIM.DBF
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    10      Full    9.36M      DISK        00:00:01     12-AUG-11
            BP Key: 10   Status: AVAILABLE  Compressed: NO  Tag: TAG20110812T114515
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_12\O1_MF_NCSNF_TAG20110812T114515_749PKJJS_.BKP
      SPFILE Included: Modification time: 12-AUG-11
      SPFILE db_unique_name: OIMDB
      Control File Included: Ckp SCN: 5627525      Ckp time: 12-AUG-11
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    11      Full    1.33G      DISK        00:00:26     16-AUG-11
            BP Key: 11   Status: AVAILABLE  Compressed: NO  Tag: TAG20110816T094954
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_16\O1_MF_NNNDF_TAG20110816T094954_74N183D7_.BKP
      List of Datafiles in backup set 11
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSTEM01.DBF
      2       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSAUX01.DBF
      3       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\UNDOTBS01.DBF
      4       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\USERS01.DBF
      5       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIMLOB.DBF
      6       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_IASSDPM.DBF
      7       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_MDS.DBF
      8       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_SOAINFRA.DBF
      9       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIM.DBF
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    12      Full    9.36M      DISK        00:00:01     16-AUG-11
            BP Key: 12   Status: AVAILABLE  Compressed: NO  Tag: TAG20110816T094954
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_16\O1_MF_NCSNF_TAG20110816T094954_74N197JO_.BKP
      SPFILE Included: Modification time: 16-AUG-11
      SPFILE db_unique_name: OIMDB
      Control File Included: Ckp SCN: 6118204      Ckp time: 16-AUG-11How to reset database to right incarnation.?

Maybe you are looking for