Datafile copy

Hi,
In my work environment, the various kinds of demo schemas (banking domain, healthcare domain) are running in demo database server. My business analysts are shows demo for client. During the demos, they are doing some DDL, DML operations in demo schemas. After completed demos, the demo schemas are comes to older stage (not databases). For example, the banking demo will start by 14-apr-2009 at 10.00AM. The banking demos will be completed by 14-Apr-2009 at 12:00 AM.
I want to banking demo schema comes older stage (i.e. 14-apr-2009 at 10.00AM.).
They are three options available for this scenario
          1) Exp and imp options.
2) Data file copy.
          3) Using flashback technology.          
I think, exp and imp options are best option for this scenario. Can u tell me the how to copy data file and paste the data file .please suggest me? please give me the proof which options is best one because I need to submit documents to my supervisor.
Can you tell me the any options for it?

If after running a series of demostration tasks that will perform DML on your existing data and you would like to be able to repeat the tasks then you have to put your data back the way it was at the start of the testing. Since you are likely to want to be able to do this multiple times at distant dates in the future your two real choices are:
1 - a schema level export
2 - if schema separation by tablespace is done, restore the data files via transportable tablespaces
I would go with a schema level export. Just drop the schema and then run the import to put it back.
Flashback database is across the entire database and unless the database can be dedicated to the schema specific demonstration is not a viable option.
The transportable tablespace option might be faster than using a traditional import of the schema but if you want to demo on a different platform you can run into issue depending on Oracle version and machine endianess.
With an export if you use a 9.2 export you could import into 9.2, 10g, or 11g for demo. I am not sure of the version limitations for transportable tablespaces but I like flexibility. Though as you upgrade you could always image or export on each release. How you handle updates to the schema is really another issue.
I like exports, simple and fast enough for small data quantities.
IMHO -- Mark D Powell --

Similar Messages

  • Switch datafile to datafile copy

    Hello,
    SWITCH DATAFILE '?/dbs/tbs_1.f' TO DATAFILECOPY '?/dbs/copies/cp1.f'
    it's the line from RMAN reference docs.
    But when I try to use this command RMAN tells me about error and says, it expected "to copy"...
    Any clue?
    Thanks in advance,
    Aliq

    It has to be run inside a run { }:
    RMAN> switch datafile 6 to datafilecopy '/u01/app/oracle/oradata/ORCL/datafile/o1_mf_demox_4kppwmyt_.dbf';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "datafilecopy": expecting one of: "copy"
    RMAN-01007: at line 1 column 22 file: standard input
    RMAN> run {
    2> switch datafile 6 to datafilecopy
    3> '/u01/app/oracle/oradata/ORCL/datafile/o1_mf_demox_4kppwmyt_.dbf';
    4> }
    datafile 6 switched to datafile copy
    input datafile copy RECID=5 STAMP=670614636 file name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_demox_4kppwmyt_.dbfHTH
    Enrique
    PS. If your problem was solved, consider marking the question as answered.

  • Controlfile copy reported as datafile copy?

    More 8.1.7, this time AIX.
    We've got a controlfilecopy...
    RMAN> catalog controlfilecopy '/usr/local/sebora/arch/efrt51/.ctl';
    RMAN-03022: compiling command: catalog
    RMAN-03023: executing command: catalog
    RMAN-08052: cataloged controlfile copy
    RMAN-08516: controlfile copy filename=/usr/local/sebora/arch/efrt51/.ctl recid=28 stamp=425168669
    RMAN-03023: executing command: partial resync
    RMAN-08003: starting partial resync of recovery catalog
    RMAN-08005: partial resync complete
    ...which is reported as a datafilecopy by 'report obsolete'...
    RMAN> report obsolete ;
    RMAN-03022: compiling command: report
    Report of obsolete backups and copies
    Type Key Completion Time Filename/Handle
    Datafile Copy 7343 23-MAR-01 /usr/local/sebora/arch/efrt51/.ctl
    Datafile Copy 7345 23-MAR-01 /usr/local/sebora/arch/efrt51/.ctl
    Confusing!
    Regards,
    per

    Per,
    You are right. I have filled bug 1710346 for this issue.
    Thanks.

  • XTTS - problem in copying datafile into ASM

    I'm testing the migration of database from AIX to Linux using cross platform transportable tablespaces.
    DB version: source: 10.2.0.4
    Destination: 10.2.0.5
    OS version: source: AIX6.1 - AIX-Based Systems (64-bit)
    Destination: RedHat Linux - Linux x86 64-bit
    I run the below commands before copying the datafile at destination.
    EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
    SELECT * FROM TRANSPORT_SET_VIOLATIONS;
    no rows selected
    alter system archive log current;
    alter tablespace TBLSP1 read only;
    alter tablespace TBLSP2 read only;
    expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
    CONVERT TABLESPACE TBLSP1,TBLSP2
    TO PLATFORM 'Linux x86 64-bit'
    FORMAT '/dataimport/%U';/dataimport is a shared file system mounted on Linux server and am able to see the datafile over there. But, am receiving the error below when trying to copy the datafile on the linux server. Could someone let me know if I miss something / how to resolve this error.
    $rman target /
    RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia' to '+DATA';
    Starting backup at 05-APR-11
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 04/05/2011 10:19:44
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_05m8miia

    I don't think it's related to patchset mismatch. Yes. I moved the dump file and datafile copies to local file system also and got the same error.
    Here are the steps once again. The tablespaces are still read only on source side. How can it affect datafile copy on destination side?.
    EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK('TBLSP1,TBLSP2', TRUE);
    SELECT * FROM TRANSPORT_SET_VIOLATIONS;
    no rows selected
    alter system archive log current;
    alter tablespace TBLSP1 read only;
    alter tablespace TBLSP2 read only;
    expdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_exp.log TRANSPORT_TABLESPACES=TBLSP1,TBLSP2
    CONVERT TABLESPACE TBLSP1,TBLSP2
    TO PLATFORM 'Linux x86 64-bit'
    FORMAT '/dataimport/%U';
    impdp DUMPFILE=xtts_exp.dmp DIRECTORY=DUMP_DIR logfile=xtts_imp.log TRANSPORT_DATAFILES='/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir','/az/dataimport/export/data_D-DBMGRT_I-3320277811_TS-TBLSP2_FNO-39_0dm90sa0'
    Job "SYS"."SYS_IMPORT_TRANSPORTABLE_01" successfully completed
    $rman target /
    RMAN> copy datafile '/dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir' to '+DATA';
    Starting backup at 05-APR-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=4361 instance=dbmgrt1 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of backup command at 04/05/2011 12:42:47
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    SQL> select file_name from dba_data_files where tablespace_name='TBLSP1';
    /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    $ls -l /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir
    -rw-r----- 1 oracle oinstall 32914808832 Apr  5 12:31 /dataimport/data_D-DBMGRT_I-3320277811_TS-TBLSP1_FNO-26_0bm90rir

  • Backup incremental level 1 for recover of copy datafile (BLOCKING?)

    Hi,
    I recently added a datafile copy backup to the backup strategy. This is an extra backup to supplement compressed backupsets.
    The datafile copy incremental was set to run at 5 am. I noticed that a process that was set to run at the same time as the backup stalled. It normally takes a few minutes to run but it took over an hour. Enterprise Manager did not report any blocked sessions over this hour (EM is configured to do so). No notable CPU spike either during this time. this morning I have moved the datafile copy backup to
    a different time so as to avoid the 5 am job and sure enough that job completed in 6 minutes.
    Does backup incremental for recover block in some way?
    Thanks!

    The other job loads data via sql loader and PL/SQL
    Actually, no blocking was detected. I could not check the waits since the job was done by the time I was aware that there was a problem. Rescheduling the backup seems to have avoided the problem. It happened twice though. I am unaware that a backup might cause this behavior. I suspect that the "for recover" might be the source of the updates being suspended. I would not expect that though since the backup copy is being recovered (not the actual datafile)

  • Switch datafile datafilespec to copy ; what this does ?

    1) SWITCH DATAFILE datafileSpec;
    2) SWITCH DATAFILE datafileSpec TO COPY;
    ^^
    I cant understand the difference in the above 2 commands teIs there a difference in the above 2 commands.
    The description in DOC is :
    DATAFILE datafileSpec TO COPY :      Specifies the datafile that you wish to rename. As with DATABASE TO COPY, specifies to switch this datafile to the latest image copy.
    When would the 2nd option be preferred over the 1st ?

    The basic difference is that switch datafile datafileSpec can not be run outsize a run block whereas "SWITCH DATAFILE datafileSpec TO COPY";
    perfectly does. More over "SWITCH DATAFILE datafileSpec" can not be use barely.
    consolidaterac1@oracle $ rman target /
    Recovery Manager: Release 11.1.0.6.0 - Production on Mon May 18 09:03:27 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: X4540 (DBID=1568043037)
    RMAN> copy datafile 1 to '+DATA';
    Starting backup at 18-MAY-09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=292 device type=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00001 name=+DATA/x4540/datafile/system.256.685477569
    output file name=+DATA/x4540/datafile/system.370.687171837 tag=TAG20090518T090350 RECID=392 STAMP=687171858
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
    Finished backup at 18-MAY-09
    RMAN> startup mount force;
    Oracle instance started
    database mounted
    Total System Global Area 2058981376 bytes
    Fixed Size 1300968 bytes
    Variable Size 553649688 bytes
    Database Buffers 1493172224 bytes
    Redo Buffers 10858496 bytes
    RMAN> switch datafile 1 to copy;
    datafile 1 switched to datafile copy "+DATA/x4540/datafile/system.370.687171837"
    RMAN> recover datafile 1 ;
    Starting recover at 18-MAY-09
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=314 device type=DISK
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 18-MAY-09
    RMAN> alter database open;
    database opened
    RMAN> copy datafile 1 to '+DATA';
    Starting backup at 18-MAY-09
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=314 device type=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00001 name=+DATA/x4540/datafile/system.370.687171837
    output file name=+DATA/x4540/datafile/system.369.687172089 tag=TAG20090518T090802 RECID=394 STAMP=687172107
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:26
    Finished backup at 18-MAY-09
    RMAN> startup mount force;
    Oracle instance started
    database mounted
    Total System Global Area 2058981376 bytes
    Fixed Size 1300968 bytes
    Variable Size 553649688 bytes
    Database Buffers 1493172224 bytes
    Redo Buffers 10858496 bytes
    RMAN> switch datafile 1;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found ";": expecting one of: "comma, to"
    RMAN-01007: at line 1 column 18 file: standard input
    RMAN> run{
    2> switch datafile 1;
    3> }
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of switch command at 05/18/2009 09:09:41
    RMAN-06039: SET NEWNAME command has not been issued for datafile 1
    RMAN> copy datafile 20 to '+DATA';
    Starting backup at 18-MAY-09
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00020 name=+DATA/x4540/datafile/academy.327.685962083
    output file name=+DATA/x4540/datafile/academy_bts.368.687172365 tag=TAG20090518T091237 RECID=396 STAMP=687172384
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
    Finished backup at 18-MAY-09
    RMAN> sql 'alter database datafile 20 offline';
    sql statement: alter database datafile 20 offline
    RMAN> run{
    2> switch datafile 20 to datafilecopy '+DATA/x4540/datafile/academy_bts.368.687172365';
    3> }
    datafile 20 switched to datafile copy
    input datafile copy RECID=396 STAMP=687172384 file name=+DATA/x4540/datafile/academy_bts.368.687172365
    RMAN> recover datafile 20;
    Starting recover at 18-MAY-09
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:00
    Finished recover at 18-MAY-09
    RMAN> sql 'alter database datafile 20 online';
    sql statement: alter database datafile 20 online
    RMAN> copy datafile 20 to '+DATA';
    Starting backup at 18-MAY-09
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00020 name=+DATA/x4540/datafile/academy_bts.368.687172365
    output file name=+DATA/x4540/datafile/academy_bts.367.687172763 tag=TAG20090518T091915 RECID=398 STAMP=687172779
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
    Finished backup at 18-MAY-09
    RMAN> sql 'alter database datafile 20 offline';
    sql statement: alter database datafile 20 offline
    RMAN> run{
    2> set newname for datafile 20 to '+DATA/x4540/datafile/academy_bts.367.687172763';
    3> switch datafile 20;
    4> }
    executing command: SET NEWNAME
    datafile 20 switched to datafile copy
    input datafile copy RECID=398 STAMP=687172779 file name=+DATA/x4540/datafile/academy_bts.367.687172763
    RMAN> recover datafile 20;
    Starting recover at 18-MAY-09
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:00
    Finished recover at 18-MAY-09
    RMAN> sql 'alter database datafile 20 online';
    sql statement: alter database datafile 20 online
    For more refer to
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta061.htm "Restrictions and Usage Notes" section.
    Regards,
    HS

  • 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

  • What should be done to include the current controlfile in the database copy

    Hi
    When trying to create a copy of the database it always fails copying the controlfile
    What should be done to include the current controlfile in the database copy with the %b format
    RMAN> backup as copy database format 'd:\backup\%b'
    2> ;
    Starting backup at 13-SEP-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00001 name=D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF
    output file name=D:\BACKUP\SYSTEM01.DBF tag=TAG20100913T204940 RECID=16 STAMP=729636617
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00003 name=D:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF
    output file name=D:\BACKUP\UNDOTBS01.DBF tag=TAG20100913T204940 RECID=17 STAMP=729636660
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00002 name=D:\ORACLE\ORADATA\ORCL\SYSAUX01.DBF
    output file name=D:\BACKUP\SYSAUX01.DBF tag=TAG20100913T204940 RECID=18 STAMP=729636692
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    *copying current *control file**
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/13/2010 20:51:36
    ORA-19715: invalid format b for generated name
    ORA-27302: failure occurred at: slgpn
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00004 name=D:\ORACLE\ORADATA\ORCL\USERS01.DBF
    output file name=D:\BACKUP\USERS01.DBF tag=TAG20100913T204940 RECID=19 STAMP=729636697
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    *including current SPFILE in backup set*
    channel ORA_DISK_1: starting piece 1 at 13-SEP-10
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/13/2010 20:51:38
    ORA-19715: invalid format b for generated name
    ORA-27302: failure occurred at: slgpnEdited by: hrishy on Sep 13, 2010 8:26 AM

    hrishy wrote:
    Allright your trick configure controlfile autobackup on does the trick but i am cluless why it worksWhy clueless? That's a documented and a perfectly normal behavior!
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV89408
    HTH
    Aman....

  • Schema Problem after system copy

    Hi Gurus,
    I did datafile copy after bringing down the source system & then recreated the DB in another system with another SID but target DB still shows schema name which refers to old domain & also all the tablespaces names are SAP<oldSID>.
    Is there any quick fix to this? how do I rename all the schema?
    Even if I run script 'ORADBUSR.SQL', it will not create all the objects in the newly created schemas. What should I do to make it up & running
    Thanks & REgards,
    Murtaza

    If some 'Z' object or user exits is active in old system, & object not active in new system may make the fifference.
    Regards,
    Rajesh Banka

  • Detail about System Copy / Migration. (URGENT)

    Hi! Friends,
    I got a new internal project. That is I have to build a new R/3 4.7 (SR1) 1.10 IDES system from the existing one to a new hardware (Server).
    Details :
    Current : SAP R/3  4.7 (SR1) 1.10 IDES with Kernel 6.20 NU
    OS : Windows 2000 AS
    DB : Oracle 8.1.7.4.1
    Proposed : SAP R/3  4.7 (SR1) 1.10 IDES with Kernel 6.20 NU
    OS : Windows 2003 R/2
    DB : Oracle 9.2 or 10.2g
    I have gone through the sap pdf docs. But still not sure.
    My questions are :
    1) How to take backup current system data. With conventional db13 or any other way ?
    2) After installing CI in new server how to use R/3load to
    import the backup data to create DI for new system?
    3) Can I use Transport the client-dependent and client-independent data here? If yes, How?
    Can you please guide me with detail steps.
    Advance Thanks and regards,
    Pratip

    Hi! Linder,
    Thanks very much for U R prompt reply.
    1)     I am confused. <b>As SAP saying “As I understand the process, if you wish to upgrade OS and DB in the same step, you must do a hetrogenous system copy.</b>” And U R saying it it a “<b>Since this will be a homogeneous copy, no migration key is required.</b>”
    2)     As I donot have Oracle 8.1 CDs so first either I have to install Oracle 9i or 10.2g DB software. In that case your first solution “Oracle datafile copy” will be vapplicable or not? If yes can U pl. give me the detail procedure?
    3)     What is the easy option ? using tools like R3load, R3ldctl and R3szchk or using SAP installation disk at the time of DI installation?
    4)     Can you please explain step by step of the procedure “You must first make an export and then do an installation with the created export set instead of the export set from CD.”
    Waiting for UR reply.
    Thanks and regards,
    Pratip

  • Moving datafile to ASM

    Hello,
    By mistake I created one data file in the local file system instead of ASM diskgroup. Initially I created the data file with 100MB, autoextensible to 100M,maxsize 2G, but then I stopped autoexntensible, so that less data file size would be better to move to ASM.
    My concern is that now I am thinking if the datafile is full then I will move it to ASM diskgroup (script to move to ASM is already ready). I want to be sure if the data file is full, so that I move it peacefully to ASM, because otherwise datafile is not accessible if it is currently being written and moving to ASM. I dont want that stop of data written to data file, or the data file is full already and there is no risk that data fill be written to it or it will be inaccessible.
    Please have a look and suggest how can I check that the data file is full actually and safe to move to ASM.
    DB=11.2.0.2 EE, OS=RHL
    SQL> select file_id,tablespace_name,bytes/1024/1024 "Bytes in MB",status,autoextensible,maxbytes/1024/1024 "Maxbytes in MB",user_bytes/1024/1024 from dba_data_files where file_id=62;
       FILE_ID TABLESPACE_NAME            Bytes in MB STATUS                       AUTOEXTENSIB Maxbytes in MB USER_BYTES/1024/1024
         62   KKJ                      300 AVAILABLE                   NO                    0               299Thank you.
    Regards,

    How to move a datafile from a file system to ASM [ID 390274.1]
    >
    In order to move a datafile on a running active database the tablespace where the datafile resides must be placed offline.
    >
    SQL> create tablespace test01
      2  datafile 'c:\test01.dbf' size 2g;
    Tablespace created.
    SQL>
    select file#, name from v$ddatafile
    36      C:\TEST01.DBF
    rman target /
    sql "ALTER DATABASE DATAFILE 36 OFFLINE";
    backup as copy datafile 36 format '+DATA';
    switch datafile 36 to copy;
    recover datafile 36;
    sql "alter database datafile 36 ONLINE";
    exit;
    -- fails with datafile as media recovery needs to be enabled
    RMAN> sql "ALTER DATABASE DATAFILE 36 OFFLINE";
    using target database control file instead of recovery catalog
    sql statement: ALTER DATABASE DATAFILE 36 OFFLINE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 05/10/2012 12:18:46
    RMAN-11003: failure during parse/execution of SQL statement: ALTER DATABASE DATAFILE 36 OF
    ORA-01145: offline immediate disallowed unless media recovery enabled-- try again with tablespace, ran in seconds. but thats not the point. tablespace needed to be offline
    RMAN> sql "ALTER TABLESPACE TEST01 OFFLINE";
    using target database control file instead of recovery catalog
    sql statement: ALTER TABLESPACE TEST01 OFFLINE
    RMAN> backup as copy datafile 36 format '+DATA';
    Starting backup at 10-MAY-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=82 instance=dprd1 device type=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00036 name=C:\TEST01.DBF
    output file name=+DATA/dprd/datafile/test01.331.782914827 tag=TAG20120510T122026 RECID=1 S
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:26
    Finished backup at 10-MAY-12
    Starting Control File and SPFILE Autobackup at 10-MAY-12
    piece handle=+FLASH/dprd/autobackup/2012_05_10/s_782914852.270.782914853 comment=NONE
    Finished Control File and SPFILE Autobackup at 10-MAY-12
    RMAN> switch datafile 36 to copy;
    datafile 36 switched to datafile copy "+DATA/dprd/datafile/test01.331.782914827"
    RMAN> recover datafile 36;
    Starting recover at 10-MAY-12
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:00
    Finished recover at 10-MAY-12
    RMAN> sql "ALTER TABLESPACE TEST01 ONLINE";
    sql statement: ALTER TABLESPACE TEST01 ONLINE
    RMAN>

  • RMAN BACKUPSET and COPY

    Hi,
    in 10g R2
    what is the difference between :
    CONFIGURE DEVICE TYPE DISK  BACKUP TYPE TO COPY;And :
    CONFIGURE DEVICE TYPE DISK  BACKUP TYPE TO BACKUPSET;Thanks.

    Dear friend, BACKUPSET is a repository where all the backedup datafiles,controlfiles,archivelog files and spfile are stored as one SET. Where are if you mention you use COPY then each file that has been copies will be kept in each separate file.
    You can get better idea if you look below...
    RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY;
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 1;
    new RMAN configuration parameters are successfully stored
    released channel: ORA_DISK_1
    RMAN> backup database;
    Starting backup at 07-FEB-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSTEM01.DBF
    output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-SYSTEM_FNO-1_1BL5E57D tag=TAG20100207T1
    *52741 recid=5 stamp=710350116*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:02:02
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSAUX01.DBF
    output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-SYSAUX_FNO-2_1CL5E5B7 tag=TAG20100207T1
    *52741 recid=6 stamp=710350231*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:54
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\USERS01.DBF
    output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-USERS_FNO-4_1DL5E5CT tag=TAG20100207T15
    *2741 recid=7 stamp=710350255*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:23
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\UNDOTBS01.DBF
    output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-UNDOTBS1_FNO-3_1EL5E5DK tag=TAG20100207
    T152741 recid=8 stamp=710350276channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:23
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00005 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\DATA_TS.DBF
    output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-DATA_TS_FNO-5_1FL5E5EC tag=TAG20100207T
    *152741 recid=9 stamp=710350293*channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:11
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00006 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\ONE.DBF
    output filename=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\DATA_D-PROD11G_I-4206195613_TS-ONE_FNO-6_1GL5E5EN tag=TAG20100207T1527
    *41 recid=10 stamp=710350304*
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:09
    Finished backup at 07-FEB-10
    Starting Control File and SPFILE Autobackup at 07-FEB-10
    piece handle=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\C-4206195613-20100207-03 comment=NONE
    Finished Control File and SPFILE Autobackup at 07-FEB-10
    If you go for BACKUPSET,
    RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET;
    old RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 1;
    new RMAN configuration parameters:
    CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;
    new RMAN configuration parameters are successfully stored
    released channel: ORA_DISK_1
    RMAN> backup database format 'c:\backupset';
    Starting backup at 07-FEB-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSTEM01.DBF
    input datafile fno=00002 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\SYSAUX01.DBF
    input datafile fno=00004 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\USERS01.DBF
    input datafile fno=00003 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\UNDOTBS01.DBF
    input datafile fno=00005 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\DATA_TS.DBF
    input datafile fno=00006 name=D:\ORACLE\PRODUCT\11.1.0\ORADATA\PROD11G\ONE.DBF
    channel ORA_DISK_1: starting piece 1 at 07-FEB-10
    channel ORA_DISK_1: finished piece 1 at 07-FEB-10
    piece handle=C:\BACKUPSET tag=TAG20100207T151443 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:02:24
    Finished backup at 07-FEB-10
    Starting Control File and SPFILE Autobackup at 07-FEB-10
    piece handle=D:\ORACLE\PRODUCT\11.1.0\DB_1\DATABASE\C-4206195613-20100207-02 comment=NONE
    Finished Control File and SPFILE Autobackup at 07-FEB-10
    I hope I cleared your doubt..
    Shafiulla Syed

  • RMAN can't SET NEWNAME for datafiles added after Level 1

    Version: 11.2.0.3
    Platform : Solaris 10
    I have the most recent Level 0 , Level 1 and post-L1 Archive logs of the source DB.
    I am trying restore, recover in a different machine using plain RMAN (not RMAN DUPLICATE) into a new datafile location.
    After the Level 1 backup was taken, 2 datafiles (namdata01.dbf, finaldata01.dbf) were added ( this got 'recorded' on the subsequent post-L1 archivelogs )
    Before I ran restore and recover, I restored the latest control file from the most recent L1
    RMAN> restore controlfile from '/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk' ;Understandably, this control file doesn't have info about the 2 datafiles added after L1 .Wish I could restore control file from archive log :)
    So, I cataloged the archive logs as well using CATALOG command.
    RMAN> catalog start with '/u01/CATALOGTST/rmanBkpPieces';
    using target database control file instead of recovery catalog
    searching for all files that match the pattern /u01/CATALOGTST/rmanBkpPieces
    List of Files Unknown to the Database
    =====================================
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_08njqj8u_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc
    File Name: /u01/CATALOGTST/rmanBkpPieces/06njqj6h_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/09njqj90_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0anjqk3b_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
    Do you really want to catalog the above files (enter YES or NO)? YES
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_08njqj8u_1_1_20120828.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0cnjqk54_1_1_20120829.rmbk
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc                         -------------------> arch logs that contain info on the new datafiles
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc                         -------------------> arch logs that contain info on the new datafiles
    File Name: /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc                          -------------------> arch logs that contain info on the new datafiles
    File Name: /u01/CATALOGTST/rmanBkpPieces/06njqj6h_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/09njqj90_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0anjqk3b_1_1
    File Name: /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
    RMAN> EXITDuring Recovery , RMAN applied the archive logs and managed to create the datafiles successfully. But it can't restore the datafiles to the new location specified in the SET NEWNAME location. Luckily , I had created the original path and these 2 datafiles got restored there.
    RMAN can't seem enforce SET NEWNAME for datafiles added after Level 1 backup despite cataloging.
    Does SET NEWNAME .... thing work only for RESTORE ?
    Log of restore and recover
    $ cat restore-recover.txt
    run
    set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
    set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
    restore database;
    switch datafile all;
    switch tempfile all;
    recover database;
    $
    $ rman target / cmdfile=restore-recover.txt
    Recovery Manager: Release 11.2.0.3.0 - Production on Sun Sep 16 21:27:49 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SNTCDEV (DBID=2498462290, not open)
    RMAN> run
    2> {
    3> set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
    4> set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
    5> restore database;
    6> switch datafile all;
    7> switch tempfile all;
    8> recover database;
    9> }
    10>
    11>
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 16-SEP-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=18 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /u01/app/CLONE1/oradata/sntcdev/system01.dbf
    channel ORA_DISK_1: restoring datafile 00002 to /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    channel ORA_DISK_1: restoring datafile 00003 to /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    channel ORA_DISK_1: restoring datafile 00004 to /u01/app/CLONE1/oradata/sntcdev/users01.dbf
    channel ORA_DISK_1: restoring datafile 00005 to /u01/app/CLONE1/oradata/sntcdev/example01.dbf
    channel ORA_DISK_1: restoring datafile 00006 to /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk
    channel ORA_DISK_1: failover to piece handle=/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_full_07njqj6j_1_1_20120828.rmbk tag=TAG20120828T234834
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:35
    Finished restore at 16-SEP-12
    datafile 1 switched to datafile copy
    input datafile copy RECID=8 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/system01.dbf
    datafile 2 switched to datafile copy
    input datafile copy RECID=9 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    datafile 3 switched to datafile copy
    input datafile copy RECID=10 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    datafile 4 switched to datafile copy
    input datafile copy RECID=11 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/users01.dbf
    datafile 5 switched to datafile copy
    input datafile copy RECID=12 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/example01.dbf
    datafile 6 switched to datafile copy
    input datafile copy RECID=13 STAMP=794179772 file name=/u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    renamed tempfile 1 to /u01/app/CLONE1/oradata/sntcdev/temp01.dbf in control file
    Starting recover at 16-SEP-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting incremental datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    destination for restore of datafile 00001: /u01/app/CLONE1/oradata/sntcdev/system01.dbf
    destination for restore of datafile 00002: /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    destination for restore of datafile 00003: /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    destination for restore of datafile 00004: /u01/app/CLONE1/oradata/sntcdev/users01.dbf
    destination for restore of datafile 00005: /u01/app/CLONE1/oradata/sntcdev/example01.dbf
    destination for restore of datafile 00006: /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u01/RMAN_bkp/BKP_sntcdev/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk
    channel ORA_DISK_1: failover to piece handle=/u01/CATALOGTST/rmanBkpPieces/SNTCDEV_L1_0bnjqk3d_1_1_20120829.rmbk tag=TAG20120829T000356
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    starting media recovery
    archived log for thread 1 with sequence 13 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc
    archived log for thread 1 with sequence 14 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc
    archived log for thread 1 with sequence 15 is already on disk as file /u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc
    channel ORA_DISK_1: starting archived log restore to default destination
    channel ORA_DISK_1: restoring archived log
    archived log thread=1 sequence=12
    channel ORA_DISK_1: reading from backup piece /u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1
    channel ORA_DISK_1: piece handle=/u01/CATALOGTST/rmanBkpPieces/0dnjqk56_1_1 tag=TAG20120829T000454
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    archived log file name=/u01/archLogs/arch_1_12_790513173.arc thread=1 sequence=12
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc thread=1 sequence=13
    creating datafile file number=7 name=/u01/app/oradata/sntcdev/namdata01.dbf
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_13_790513173.arc thread=1 sequence=13
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_14_790513173.arc thread=1 sequence=14
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc thread=1 sequence=15
    creating datafile file number=8 name=/u01/app/oradata/sntcdev/finaldata01.dbf
    archived log file name=/u01/CATALOGTST/rmanBkpPieces/arch_1_15_790513173.arc thread=1 sequence=15
    unable to find archived log
    archived log thread=1 sequence=16
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 09/16/2012 21:29:51
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 16 and starting SCN of 1004015
    Recovery Manager complete.
    $
    $
    $ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Sun Sep 16 21:30:04 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select name from v$datafile;
    NAME
    /u01/app/CLONE1/oradata/sntcdev/system01.dbf
    /u01/app/CLONE1/oradata/sntcdev/sysaux01.dbf
    /u01/app/CLONE1/oradata/sntcdev/undotbs01.dbf
    /u01/app/CLONE1/oradata/sntcdev/users01.dbf
    /u01/app/CLONE1/oradata/sntcdev/example01.dbf
    /u01/app/CLONE1/oradata/sntcdev/cisdata01.dbf
    /u01/app/oradata/sntcdev/namdata01.dbf           ----------------------> restored to old location ignoring SET NEWNAME ....
    /u01/app/oradata/sntcdev/finaldata01.dbf         ----------------------> restored to old location ignoring SET NEWNAME ....
    8 rows selected.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ cd /u01/app/oradata/sntcdev            # -----------------------------> the old location
    $
    $ ls -alrt
    total 243924
    drwxr-xr-x   3 oracle   oinstall     512 Aug  5 10:55 ..
    drwxr-xr-x   2 oracle   oinstall     512 Sep 16 20:59 .
    -rw-r-----   1 oracle   oinstall 104865792 Sep 16 21:29 namdata01.dbf
    -rw-r-----   1 oracle   oinstall 19931136 Sep 16 21:29 finaldata01.dbf

    RMAN> run
    2> {
    3> set newname for database to '/u01/app/CLONE1/oradata/sntcdev/%b' ;
    4> set newname for tempfile '/u01/app/oradata/sntcdev/temp01.dbf' to '/u01/app/CLONE1/oradata/sntcdev/temp01.dbf' ;
    5> restore database;
    6> switch datafile all;
    7> switch tempfile all;
    8> recover database;
    9> }RMAN executes the commands in the run block stepwise. In your case, starting from "set newname for database..." and lastly executing "recover database...".
    Let me interpret it for you.
    1. You restored the controlfile from the L1 backup which does not have any information about the 2 newly added datafiles. You cataloged the backuppieces and the archives to this controlfile, which means that the controlfile would now be aware that the required backups and archives are in this cataloged location.
    2. You set newname for database to the desired location, thereby this command is executed restoring the database from the L0 and L1 backups. (These 2 backups do not have any information about the newly added datafiles and hence the 2 files would still not be restored).
    3. You execute restore database which restores the files from L0 and L1 backup.
    4. Switch datafile all, this renames all the files that were restored in the previous steps to the desired name/location that was mentioned in step 2.
    5. Recover database: This is where the archivelogs come into picture. The data in the archives would be created & recovered. The newly added datafiles are now created & recovered but RMAN does not go back to STEP 2 and STEP 4 to re-execute the commands in STEP2 and STEP4 to restore it to the desired location (STEP 2) and Rename it (STEP 4). The files will have to renamed later by moving them manually to the location that you require.
    So, RMAN does not execute the SET NEWNAME for datafiles which were added after the backup as the information about these files do not exist in the RMAN backuppieces.

  • Blockrecover datafile wants more and more redologs

    Hello,
    in our prod. system we have a block corruption at datafile 5 block 988626; It's Oracle 11.2.0.2.
    DBV at 10.03.2012 was red.
    DBV at 03.03.2012 was green.
    We have tried a blockrecover like discribed in sap note 540463 with a copy
    of affected datafile from 07.03.2012.
    But the recovery process wants more and more redologs. Not only these
    up to this backup time. The last redolog in the list is from 01.12.2011.
    Have anyone a suggestion, why?
    RMAN> blockrecover datafile 5 block 988626;
    Starting recover at 13-MAR-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring block(s) from datafile copy /oracle/ABP/sapbackup/beibwemz.spa/sr4.data2
    ORA-19505: failed to identify file "/oracle/ABP/sapbackup/beibwemz.spa/sr4.data2"
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is datafile copy 0 (/oracle/ABP/sapbackup/beibwemz.spa/sr4.data2)
    failover to previous backup
    channel ORA_DISK_1: restoring block(s) from datafile copy /oracle/ABP/sapbackup/beibmiwu.spa/sr4.data2
    ORA-19505: failed to identify file "/oracle/ABP/sapbackup/beibmiwu.spa/sr4.data2"
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is datafile copy 0 (/oracle/ABP/sapbackup/beibmiwu.spa/sr4.data2)
    failover to previous backup
    channel ORA_DISK_1: restoring block(s) from datafile copy /oracle/ABP/sapbackup/beibhlbt.spa/sr4.data2
    ORA-19505: failed to identify file "/oracle/ABP/sapbackup/beibhlbt.spa/sr4.data2"
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is datafile copy 0 (/oracle/ABP/sapbackup/beibhlbt.spa/sr4.data2)
    failover to previous backup
    channel ORA_DISK_1: restoring block(s) from datafile copy /oracle/ABP/sapbackup/beibcngr.spa/sr4.data2
    ORA-19505: failed to identify file "/oracle/ABP/sapbackup/beibcngr.spa/sr4.data2"
    ORA-27037: unable to obtain file status
    IBM AIX RISC System/6000 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is datafile copy 0 (/oracle/ABP/sapbackup/beibcngr.spa/sr4.data2)
    failover to previous backup
    channel ORA_DISK_1: restoring block(s) from datafile copy /oracle/ABP/sapbackup/beiaxplp.spa/sr4.data2
    starting media recovery
    archived log for thread 1 with sequence 746 is already on disk as file /oracle/ABP/oraarch/ABParch1_746_762960509.dbf
    archived log for thread 1 with sequence 747 is already on disk as file /oracle/ABP/oraarch/ABParch1_747_762960509.dbf
    archived log for thread 1 with sequence 748 is already on disk as file /oracle/ABP/oraarch/ABParch1_748_762960509.dbf
    archived log for thread 1 with sequence 749 is already on disk as file /oracle/ABP/oraarch/ABParch1_749_762960509.dbf
    archived log for thread 1 with sequence 750 is already on disk as file /oracle/ABP/oraarch/ABParch1_750_762960509.dbf
    archived log for thread 1 with sequence 751 is already on disk as file /oracle/ABP/oraarch/ABParch1_751_762960509.dbf
    archived log for thread 1 with sequence 752 is already on disk as file /oracle/ABP/oraarch/ABParch1_752_762960509.dbf
    archived log for thread 1 with sequence 753 is already on disk as file /oracle/ABP/oraarch/ABParch1_753_762960509.dbf
    archived log for thread 1 with sequence 754 is already on disk as file /oracle/ABP/oraarch/ABParch1_754_762960509.dbf
    archived log for thread 1 with sequence 755 is already on disk as file /oracle/ABP/oraarch/ABParch1_755_762960509.dbf
    archived log for thread 1 with sequence 756 is already on disk as file /oracle/ABP/oraarch/ABParch1_756_762960509.dbf
    archived log for thread 1 with sequence 757 is already on disk as file /oracle/ABP/oraarch/ABParch1_757_762960509.dbf
    archived log for thread 1 with sequence 758 is already on disk as file /oracle/ABP/oraarch/ABParch1_758_762960509.dbf
    archived log for thread 1 with sequence 759 is already on disk as file /oracle/ABP/oraarch/ABParch1_759_762960509.dbf
    archived log for thread 1 with sequence 760 is already on disk as file /oracle/ABP/oraarch/ABParch1_760_762960509.dbf
    archived log for thread 1 with sequence 761 is already on disk as file /oracle/ABP/oraarch/ABParch1_761_762960509.dbf
    archived log for thread 1 with sequence 762 is already on disk as file /oracle/ABP/oraarch/ABParch1_762_762960509.dbf
    archived log for thread 1 with sequence 763 is already on disk as file /oracle/ABP/oraarch/ABParch1_763_762960509.dbf
    archived log for thread 1 with sequence 764 is already on disk as file /oracle/ABP/oraarch/ABParch1_764_762960509.dbf
    archived log for thread 1 with sequence 765 is already on disk as file /oracle/ABP/oraarch/ABParch1_765_762960509.dbf
    archived log for thread 1 with sequence 766 is already on disk as file /oracle/ABP/oraarch/ABParch1_766_762960509.dbf
    archived log for thread 1 with sequence 767 is already on disk as file /oracle/ABP/oraarch/ABParch1_767_762960509.dbf
    archived log for thread 1 with sequence 768 is already on disk as file /oracle/ABP/oraarch/ABParch1_768_762960509.dbf
    archived log for thread 1 with sequence 769 is already on disk as file /oracle/ABP/oraarch/ABParch1_769_762960509.dbf
    archived log for thread 1 with sequence 770 is already on disk as file /oracle/ABP/oraarch/ABParch1_770_762960509.dbf
    archived log for thread 1 with sequence 771 is already on disk as file /oracle/ABP/oraarch/ABParch1_771_762960509.dbf
    archived log for thread 1 with sequence 772 is already on disk as file /oracle/ABP/oraarch/ABParch1_772_762960509.dbf
    archived log for thread 1 with sequence 773 is already on disk as file /oracle/ABP/oraarch/ABParch1_773_762960509.dbf
    archived log for thread 1 with sequence 774 is already on disk as file /oracle/ABP/oraarch/ABParch1_774_762960509.dbf
    archived log for thread 1 with sequence 775 is already on disk as file /oracle/ABP/oraarch/ABParch1_775_762960509.dbf
    archived log for thread 1 with sequence 776 is already on disk as file /oracle/ABP/oraarch/ABParch1_776_762960509.dbf
    archived log for thread 1 with sequence 777 is already on disk as file /oracle/ABP/oraarch/ABParch1_777_762960509.dbf
    archived log for thread 1 with sequence 778 is already on disk as file /oracle/ABP/oraarch/ABParch1_778_762960509.dbf
    archived log for thread 1 with sequence 779 is already on disk as file /oracle/ABP/oraarch/ABParch1_779_762960509.dbf
    archived log for thread 1 with sequence 780 is already on disk as file /oracle/ABP/oraarch/ABParch1_780_762960509.dbf
    archived log for thread 1 with sequence 781 is already on disk as file /oracle/ABP/oraarch/ABParch1_781_762960509.dbf
    archived log for thread 1 with sequence 782 is already on disk as file /oracle/ABP/oraarch/ABParch1_782_762960509.dbf
    archived log for thread 1 with sequence 783 is already on disk as file /oracle/ABP/oraarch/ABParch1_783_762960509.dbf
    archived log for thread 1 with sequence 784 is already on disk as file /oracle/ABP/oraarch/ABParch1_784_762960509.dbf
    archived log for thread 1 with sequence 785 is already on disk as file /oracle/ABP/oraarch/ABParch1_785_762960509.dbf
    archived log for thread 1 with sequence 786 is already on disk as file /oracle/ABP/oraarch/ABParch1_786_762960509.dbf
    archived log for thread 1 with sequence 787 is already on disk as file /oracle/ABP/oraarch/ABParch1_787_762960509.dbf
    archived log for thread 1 with sequence 788 is already on disk as file /oracle/ABP/oraarch/ABParch1_788_762960509.dbf
    archived log for thread 1 with sequence 789 is already on disk as file /oracle/ABP/oraarch/ABParch1_789_762960509.dbf
    archived log for thread 1 with sequence 790 is already on disk as file /oracle/ABP/oraarch/ABParch1_790_762960509.dbf
    archived log for thread 1 with sequence 791 is already on disk as file /oracle/ABP/oraarch/ABParch1_791_762960509.dbf
    archived log for thread 1 with sequence 792 is already on disk as file /oracle/ABP/oraarch/ABParch1_792_762960509.dbf
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 03/13/2012 15:09:22
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of archived log for thread 1 with sequence 745 and starting SCN of 142871345 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 744 and starting SCN of 142857584 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 743 and starting SCN of 142610445 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 742 and starting SCN of 142603818 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 741 and starting SCN of 142251070 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 740 and starting SCN of 142208140 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 739 and starting SCN of 141900635 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 738 and starting SCN of 141801729 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 737 and starting SCN of 141456008 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 736 and starting SCN of 141317333 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 735 and starting SCN of 141011498 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 734 and starting SCN of 140788707 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 733 and starting SCN of 140456236 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 732 and starting SCN of 140092943 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 731 and starting SCN of 139966473 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 730 and starting SCN of 139696804 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 729 and starting SCN of 139315095 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 728 and starting SCN of 138927651 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 727 and starting SCN of 138554231 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 726 and starting SCN of 138162447 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 725 and starting SCN of 137802351 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 724 and starting SCN of 137373198 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 723 and starting SCN of 137255943 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 722 and starting SCN of 136991580 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 721 and starting SCN of 136597023 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 720 and starting SCN of 136580858 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 719 and starting SCN of 136189970 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 718 and starting SCN of 136133619 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 717 and starting SCN of 135766210 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 716 and starting SCN of 135392432 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 715 and starting SCN of 135082730 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 714 and starting SCN of 134596523 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 713 and starting SCN of 134575210 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 712 and starting SCN of 134190321 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 711 and starting SCN of 133795473 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 710 and starting SCN of 133727100 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 709 and starting SCN of 133390114 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 708 and starting SCN of 133373937 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 707 and starting SCN of 132974335 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 706 and starting SCN of 132547468 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 705 and starting SCN of 132122752 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 704 and starting SCN of 131577534 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 703 and starting SCN of 131537977 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 702 and starting SCN of 131026543 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 701 and starting SCN of 130595253 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 700 and starting SCN of 130194501 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 699 and starting SCN of 129782971 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 698 and starting SCN of 129727897 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 697 and starting SCN of 129362109 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 696 and starting SCN of 128921639 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 695 and starting SCN of 128523499 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 694 and starting SCN of 128397227 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 693 and starting SCN of 128014237 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 692 and starting SCN of 127938320 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 691 and starting SCN of 127563046 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 690 and starting SCN of 127534952 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 689 and starting SCN of 127161442 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 688 and starting SCN of 126745054 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 687 and starting SCN of 126744547 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 686 and starting SCN of 126340344 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 685 and starting SCN of 125912026 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 684 and starting SCN of 125507870 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 683 and starting SCN of 125373198 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 682 and starting SCN of 125097576 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 681 and starting SCN of 125077928 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 680 and starting SCN of 124690471 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 679 and starting SCN of 124267563 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 678 and starting SCN of 124230819 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 677 and starting SCN of 123840628 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 676 and starting SCN of 123441068 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 675 and starting SCN of 123415609 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 674 and starting SCN of 122950744 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 673 and starting SCN of 122556598 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 672 and starting SCN of 122430129 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 671 and starting SCN of 122149270 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 670 and starting SCN of 122085303 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 669 and starting SCN of 121737110 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 668 and starting SCN of 121321405 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 667 and starting SCN of 121293299 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 666 and starting SCN of 120892235 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 665 and starting SCN of 120750679 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 664 and starting SCN of 120464633 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 663 and starting SCN of 120187281 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 662 and starting SCN of 119993667 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 661 and starting SCN of 119596331 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 660 and starting SCN of 119470712 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 659 and starting SCN of 119169365 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 658 and starting SCN of 119121238 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 657 and starting SCN of 118607425 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 656 and starting SCN of 118564465 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 655 and starting SCN of 118002497 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 654 and starting SCN of 117907719 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 653 and starting SCN of 117587712 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 652 and starting SCN of 117162707 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 651 and starting SCN of 116706893 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 650 and starting SCN of 116316027 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 649 and starting SCN of 116229494 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 648 and starting SCN of 115930397 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 647 and starting SCN of 115885601 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 646 and starting SCN of 115522122 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 645 and starting SCN of 115434304 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 644 and starting SCN of 115013992 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 643 and starting SCN of 114755115 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 642 and starting SCN of 114548484 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 641 and starting SCN of 114502983 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 640 and starting SCN of 114454681 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 639 and starting SCN of 114426164 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 638 and starting SCN of 114397043 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 637 and starting SCN of 114371074 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 636 and starting SCN of 114345017 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 635 and starting SCN of 114317260 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 634 and starting SCN of 114289017 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 633 and starting SCN of 114259554 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 632 and starting SCN of 114231181 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 631 and starting SCN of 114149584 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 630 and starting SCN of 114073784 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 629 and starting SCN of 113996145 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 628 and starting SCN of 113958802 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 627 and starting SCN of 113938233 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 626 and starting SCN of 113923193 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 625 and starting SCN of 113908773 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 624 and starting SCN of 113889975 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 623 and starting SCN of 113847827 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 622 and starting SCN of 113781007 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 621 and starting SCN of 113715692 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 620 and starting SCN of 113639496 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 619 and starting SCN of 113565059 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 618 and starting SCN of 113514947 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 617 and starting SCN of 113422709 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 616 and starting SCN of 113315273 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 615 and starting SCN of 113281018 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 614 and starting SCN of 113235876 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 613 and starting SCN of 113194388 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 612 and starting SCN of 113150748 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 611 and starting SCN of 113119377 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 610 and starting SCN of 113090724 found to restore
    RMAN-06025: no backup of archived log for thread 1 with sequence 609 and starting SCN of 113056412 found to restore
    RMAN-00567: Recovery Manager could not print some error messages
    kind regards
    Ch.Fischer

    Ok, nobody help :(
    Help myself :)
    Need only
    crosscheck archivelog all;
    Then recovery are made.

  • "switch datafile" returns "RMAN-06015"

    Hi,
    I'm facing a strange error.
    I'm trying to restore a database from a cold backupsets created by RMAN into a new machine.
    My restore commands returns "RMAN-06015" when it tries to execute "switch datafile" command.
    RMAN> run{
    2> set newname for datafile
    3> 'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201' TO
    4> 'D:\oracle\oradata\dawa\UNDOTBS201';
    5> switch datafile all;
    6> }
    executing command: SET NEWNAME
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of switch command at 07/19/2011 11:36:55
    RMAN-20230: datafile copy not found in the recovery catalog
    RMAN-06015: error while looking up datafilecopy name: D:\ORACLE\ORADATA\DAWA\UNDOTBS201The file D:\ORACLE\ORADATA\DAWA\UNDOTBS201 doesn't exist in the production.
    It doesn't exist in the controlfile either. I made a bakup of the control file into the trace folder and checked the generated file. That file doesn't exist overthere.
    It isn't part of the backupset either.
    RMAN> list backup of tablespace undotbs2 ;
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    780     Full    1M         DISK        00:26:37     06-JUL-11
            BP Key: 780   Status: EXPIRED  Compressed: NO  Tag: FULLDB
            Piece Name: \\PRODSERVER\DBBACKUPS\PLMGPUNM_1_1
      List of Datafiles in backup set 780
      File LV Type Ckp SCN    Ckp Time  Name
      117     Full 24338668495 06-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201
      119     Full 24338668495 06-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS203
      121     Full 24338668495 06-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS205
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    781     Full    128K       DISK        00:27:54     07-JUL-11
            BP Key: 781   Status: EXPIRED  Compressed: NO  Tag: FULLDB
            Piece Name: \\PRODSERVER\DBBACKUPS\PMMGQ09T_1_1
      List of Datafiles in backup set 781
      File LV Type Ckp SCN    Ckp Time  Name
      118     Full 24338668495 06-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS202
      120     Full 24338668495 06-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS204
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    783     Full    22G        DISK        00:33:07     09-JUL-11
            BP Key: 783   Status: EXPIRED  Compressed: NO  Tag: FULLDB09072011
            Piece Name: \\PRODSERVER\DBBACKUPS\PQMH1JNA_1_1
      List of Datafiles in backup set 783
      File LV Type Ckp SCN    Ckp Time  Name
      2       Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS206
      53      Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS207
      118     Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS202
      119     Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS203
      120     Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS204
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    784     Full    13G        DISK        00:28:33     09-JUL-11
            BP Key: 784   Status: EXPIRED  Compressed: NO  Tag: FULLDB09072011
            Piece Name: \\PRODSERVER\DBBACKUPS\PRMH1LLN_1_1
      List of Datafiles in backup set 784
      File LV Type Ckp SCN    Ckp Time  Name
      54      Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS208
      117     Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201
      121     Full 24380946158 09-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS205
    BS Key  Type LV Size
    786     Full    28G
      List of Datafiles in backup set 786
      File LV Type Ckp SCN    Ckp Time  Name
      2       Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS206
      53      Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS207
      118     Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS202
      119     Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS203
      121     Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS205
      Backup Set Copy #1 of backup set 786
      Device Type Elapsed Time Completion Time Compressed Tag
      DISK        00:31:39     16-JUL-11       NO         TAG20110716T135920
        List of Backup Pieces for backup set 786 Copy #1
        BP Key  Pc# Status      Piece Name
        786     1   UNAVAILABLE \\PRODSERVER\DBBACKUPS\PTMHJ91Q_1_1
      Backup Set Copy #2 of backup set 786
      Device Type Elapsed Time Completion Time Compressed Tag
      DISK        00:31:39     19-JUL-11       NO         TAG20110716T135920
        List of Backup Pieces for backup set 786 Copy #2
        BP Key  Pc# Status      Piece Name
        789     1   AVAILABLE   X:\TEMP\PTMHJ91Q_1_1
    BS Key  Type LV Size
    787     Full    17G
      List of Datafiles in backup set 787
      File LV Type Ckp SCN    Ckp Time  Name
      54      Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS208
      117     Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201
      120     Full 24470026732 16-JUL-11 E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS204
      Backup Set Copy #1 of backup set 787
      Device Type Elapsed Time Completion Time Compressed Tag
      DISK        00:29:36     16-JUL-11       NO         TAG20110716T135920
        List of Backup Pieces for backup set 787 Copy #1
        BP Key  Pc# Status      Piece Name
        787     1   UNAVAILABLE \\PRODSERVER\DBBACKUPS\PUMHJATD_1_1
      Backup Set Copy #2 of backup set 787
      Device Type Elapsed Time Completion Time Compressed Tag
      DISK        00:29:36     19-JUL-11       NO         TAG20110716T135920
        List of Backup Pieces for backup set 787 Copy #2
        BP Key  Pc# Status      Piece Name
        788     1   AVAILABLE   X:\TEMP\PUMHJATD_1_1In OS level, logged on user has access privileges:
    D:\>copy d:\temp\test.log D:\ORACLE\ORADATA\DAWA\UNDOTBS201.txt
            1 file(s) copied.
    What should I do to get rid of that error?
    Oracle 10g R1 on Windows 2003 32-bit

    OzOracle wrote:
    Hi,
    I'm facing a strange error.
    I'm trying to restore a database from a cold backupsets created by RMAN into a new machine.
    My restore commands returns "RMAN-06015" when it tries to execute "switch datafile" command.
    RMAN> run{
    2> set newname for datafile
    3> 'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201' TO
    4> 'D:\oracle\oradata\dawa\UNDOTBS201';
    5> switch datafile all;
    6> }
    executing command: SET NEWNAME
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of switch command at 07/19/2011 11:36:55
    RMAN-20230: datafile copy not found in the recovery catalog
    RMAN-06015: error while looking up datafilecopy name: D:\ORACLE\ORADATA\DAWA\UNDOTBS201
    Hi,
    Unless you have restored the datafile or it does exist then it is expected error when you try to switch datafile
    Try restore the datafile first and switch datafile after that
    Cheers

Maybe you are looking for

  • Can I have same Apple ID on two devices

    I have an IPad and a MacAir which both need Apple ID's.  I had the same ID on both but now am changing servers and want to change my ID names.  I was able on one device, but it wont change on the IPad.  Suggestions???

  • AP REPORT AGE WISE, VENDOR WISE REQUIRED

    Hi, Please give me if there is any T-code to get the AGE wise VENDOR wise AP report at on go as we know the report code ( S_ALR_87012078 ) only for the same, in which, unless otherwise,  we go for drill down this report further, the report is being d

  • An arrow in a Tab Bar (View Stack)

    Hi    Is there a way to add an image next to the label of the selected tab in the ViewStack. ? Any ideas? thanks Dharmesh

  • ActionScript Parser in ActionScript?

    Hi all,       In the previous and old post (http://forums.adobe.com/message/223435) , people (and I) asked about a parser for ActionScript. My post was never  responsed, I am not sure whether the forum is still activated or not?        I need if ther

  • Pages 09 (4.1) doesn't havea function (Save As)

    Hi I just got pages 09 (4.1), but I usually use Microsoft Office Word. Does Pages have the MS Office's function ( Save as )? I can't find any. Help me.