RMAN-06024: no backup or copy of the control file found to restore

I am cloning a new database using a full backup from previous nightly rman backup using a standby database utilizing catalog. When I run the duplicate command, I get
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/27/2011 15:04:05
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 restore
But the backup of controlfile does exists in the right place. What am I missing?

958210 wrote:
i was trying to clone a database to a remote machine, but it is giving me the following error
'RMAN-06024: no backup or copy of the control file found to restore
ORA-19505: failed to identify file "/u01/app/oracle/product/11.2.0/dbs/c-1617115651-20120912-02"
even though i can list the backup of the control file in the source machine.
thank you
'How do I ask a question on the forums?
SQL and PL/SQL FAQ
Since we don't know what you did, so we can't know what you did wrong

Similar Messages

  • 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

  • RMAN-06023: no backup or copy of datafile 5 found to restore ??

    Hi,
    Am on
    Apps 12.0.4
    DB 10gR2
    Am trying to recover a datafile: got below error ?
    Hex dump of (file 5, block 11701) in trace file /u01/app/oracle/admin/ora10g/udump/ora10g_ora_6482.trc
    Corrupt block relative dba: 0x01402db5 (file 5, block 11701)
    Bad check value found during backing up datafile
    Data in bad block:
    type: 0 format: 2 rdba: 0x01402db5
    last change scn: 0×0000.00000000 seq: 0×1 flg: 0×05
    spare1: 0×0 spare2: 0×0 spare3: 0×0
    consistency value in tail: 0×00000001
    check value in block header: 0x8bf5
    computed block checksum: 0×2
    Reread of blocknum=11701, file=/u01/app/oracle/oradata/ora10g/example01.dbf. found same corrupt data
    RMAN> blockrecover datafile 5 block 11701;
    Starting blockrecover at 23-AUG-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=139 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
    RMAN-06026: some targets not found – aborting restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    i dont have a backup of this datafile
    Thanks
    Edited by: NewAppsDBA on Oct 24, 2011 6:23 AM

    RMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
    RMAN-06026: some targets not found – aborting restore
    RMAN-06023: no backup or copy of datafile 5 found to restoreSearch MOS for those errors and go through the docs.
    Thanks,
    Hussein

  • RMAN-06023: no backup or copy of datafile 3 found to restore

    Hello,
    i have searched the whole forum, but i didnt get anything.
    i have rman backupset (x64), and i am trying to restore it to another machine, (same characteristic) but i got the error below.
    help please.... :(
    RMAN> run
    2> {
    3> ALLOCATE CHANNEL C1 DEVICE TYPE DISK;
    4> RESTORE DATABASE;
    5> }
    using target database control file instead of recovery catalog
    allocated channel: C1
    channel C1: SID=170 device type=DISK
    Starting restore at 03-MAY-10
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/03/2010 11:16:00
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    RMAN>

    Hello,
    i am using 10 g and my backup set, is that enough?
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    79 Full 12.85G DISK 00:26:51 12-JUN-09
    BP Key: 79 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_06
    1209042215
    Piece Name: F:\RMAN_BACKUP\2NKHDHB1_1_1
    List of Datafiles in backup set 79
    File LV Type Ckp SCN Ckp Time Name
    1 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSTEM01.DBF
    2 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\UNDOTBS01.DB
    F
    3 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSAUX01.DBF
    4 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\USERS01.DBF
    5 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\EXAMPLE01.DB
    F
    7 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_DIME
    NSIONS_01.DBF
    8 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_FACT
    S_01_REORG0_REORG0.DBF
    9 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_INDE
    XES_01.DBF
    10 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_01_REORG0.DBF
    11 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_DIME
    NSIONS_01.DBF
    12 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_FACT
    S_01_REORG0_REORG0.DBF
    13 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_INDE
    XES_01.DBF
    15 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_STAG
    ING_01_REORG0.DBF
    16 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_02_REORG0.DBF
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    80 Full 7.17M DISK 00:00:04 12-JUN-09
    BP Key: 80 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_06
    1209042215
    Piece Name: F:\RMAN_BACKUP\2OKHDITH_1_1
    SPFILE Included: Modification time: 12-JUN-09
    Control File Included: Ckp SCN: 4254271191 Ckp time: 12-JUN-09
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    81 Full 13.29G DISK 00:33:30 22-APR-10
    BP Key: 81 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_04
    2210052403
    Piece Name: F:\RMAN_BACKUP\2PLBPCV8_1_1
    List of Datafiles in backup set 81
    File LV Type Ckp SCN Ckp Time Name
    1 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSTEM01.DBF
    2 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\UNDOTBS01.DB
    F
    3 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSAUX01.DBF
    4 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\USERS01.DBF
    5 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\EXAMPLE01.DB
    F
    7 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_DIME
    NSIONS_01.DBF
    8 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_FACT
    S_01_REORG0_REORG0.DBF
    9 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_INDE
    XES_01.DBF
    10 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_01_REORG0.DBF
    11 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_DIME
    NSIONS_01.DBF
    12 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_FACT
    S_01_REORG0_REORG0.DBF
    13 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_INDE
    XES_01.DBF
    15 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_STAG
    ING_01_REORG0.DBF
    16 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
    ING_02_REORG0.DBF
    RMAN>

  • Problem about RMAN-06023: no backup or copy of datafile 5 found to restore

    here is the error info when i duplicate database use rman
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 08/19/2011 09:33:39
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    and following my operate steps
    ==================
    auxiliary instance configure
    1, create password file
    $ orapwd file=/opt/app/oracle/product/10.2.0/db_1/dbs/orapwslavedb password=Myss123456 entries=30
    2,edit tnsname.ora on auxilary so i can connect primary db and auxiliary
    $ vi tnsname.ora (tnsping test pass)
    PRIDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.40.214)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = pridb)
    3,create pfile for auxiliary instance
    $ vi initslavedb.ora
    *.DB_BLOCK_SIZE=8192
    *.DB_NAME=slavedb
    *.CONTROL_FILES='/opt/app/oracle/oradata/slavedb/control01.ctl','/opt/app/oracl
    e/oradata/slavedb/control02.ctl','/opt/app/oracle/oradata/slavedb/control03.ctl'
    *.DB_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
    *.LOG_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
    4,start auxiliary instance nomount and create spfile,then shutdown it,and startup to nomount status again
    5,backup target database
    RMAN> backup database;
    6, create directory on slavedb,and transforer target backupset and archlog to salvedb
    $ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/backupset/2011_08_19
    $ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/archivelog/2011_08_19
    7,run duplicate commandline on auxiliary
    [oracle@localhost admin]$ rman target sys/Myss123456@pridb auxiliary /
    Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 19 10:46:05 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: PRIDB (DBID=969477968, not open)
    connected to auxiliary database: SLAVEDB (not mounted)
    RMAN> duplicate target database to 'slavedb'
    2> nofilenamecheck;
    Starting Duplicate Db at 19-AUG-2011 10:46:15
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=35 devtype=DISK
    contents of Memory Script:
    set until scn 490864;
    set newname for datafile 1 to
    "/opt/app/oracle/oradata/slavedb/system01.dbf";
    set newname for datafile 2 to
    "/opt/app/oracle/oradata/slavedb/undotbs01.dbf";
    set newname for datafile 3 to
    "/opt/app/oracle/oradata/slavedb/sysaux01.dbf";
    set newname for datafile 4 to
    "/opt/app/oracle/oradata/slavedb/users01.dbf";
    set newname for datafile 5 to
    "/opt/app/oracle/oradata/slavedb/example01.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
    Starting restore at 19-AUG-2011 10:46:16
    using channel ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 08/19/2011 10:46:16
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    anyone can help?

    use format command with backup.
    eg:-
    backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T';
    if it is archivelog mode then
    backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T' plus archivelog format '/u01/db/backup/%d_%I_%s_%T';
    then copy the backup to the auxiliary instance server.
    then try again the duplicate command.

  • RMAN-06023: no backup or copy of datafile

    Hi,
    on 10g R2 on AIX, I want to recover my DB at the time of 26 of march. The backup files are available but I receive :
    RMAN> Run {
    2>         SET UNTIL TIME "to_date('26-03-2011 00:00:00','DD-MM-YYYY HH24:MI:SS')";
    3>      allocate channel t1 type disk;
    4>      restore database;
    5>      recover database;
    6>      sql "alter database open";
    7> }
    8>
    executing command: SET until clause
    allocated channel: t1
    channel t1: sid=155 devtype=DISK
    Starting restore at 01-APR-11
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 04/01/2011 11:13:42
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 216 found to restore
    RMAN-06023: no backup or copy of datafile 215 found to restore
    RMAN-06023: no backup or copy of datafile 214 found to restoreWhy RMAN can't find them ?
    How to verify ?
    Thank for help.

    Hi,
    Can you please make sure the restore mechanism you are following is correct or not?
    Mechanics of Restore Operations
    RMAN automates the procedure for restoring files. You do not need to go into the operating system, locate the backup that you want to use, and manually copy files into the appropriate directories. When you issue a RESTORE command, RMAN directs a server session to restore the correct backups to either:
    * The default location, overwriting the files with the same name currently there
    * A new location, which you can specify with the SET NEWNAME command
    To restore a datafile, either mount the database or keep it open and take the datafile to be restored offline. When RMAN performs a restore, it creates the restored files as datafile image copies and records them in the repository.
    refer the link for more information
    http://download.oracle.com/docs/cd/B12037_01/server.101/b10734/rcmconc2.htm
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • RMAN-06023: no backup or copy of datafile n found to restore

    Hi,
    on 11g R2 , Win 2008, I try to duplicate by RMAN NOCATALOG.
    In init.ora of auxiliary I have :
    init.ora
    db_file_name_convert=('m:\base\OLDDB\data','m:\base\NEWDB\data')
    log_file_name_convert=('m:\base\OLDDB\log', 'm:\base\NEWDB\log') 1- when duplicating RMAN displays :
    set newname for datafile  109 to
    "M:\BASES\OLDDB\DATA\EOIUAPP.DBF";; but for me reverse is expected since M:\BASES\OLDDB\DATA\EOIUAPP.DBF is the ancient/old name.
    2-RMAN displays :
    channel ORA_AUX_DISK_1: restoring datafile 00041 to M:\BASES\OLDDB\DATA\EOIUAPP.DBF But again the datafile should be restored to 'm:\base\NEWDB\data'.
    And also:
    channel ORA_AUX_DISK_1: reading from backup piece \\server\RMAN$\BACKUP\OLDDB\RMAN\FULL\DF_OLDDB_20120909_196_1
    channel ORA_AUX_DISK_1: ORA-19870: error while restoring backup piece \\server\RMAN$\BACKUP\OLDDB\RMAN\FULL\DF_OLDDB_20120909_196_1
    ORA-19504: failed to create file "M:\BASES\OLDDB\DATA\PSIMAGE.DBF";
    ORA-27040: file create error, unable to create file
    OSD-04002: can not open file
    O/S-Error: (OS 3) file path not found. Finally :
    RMAN-06023: no backup or copy of datafile n found to restore For all files.
    Thanks for help.

    Hello
    setfilename has "BASES" but logfile convert has "base"
    M:\BASESand
    db_file_name_convert=('m:\base\OLDDB\data','m:\base\NEWDB\data') Best Regards
    mseberg
    Edited by: mseberg on Sep 20, 2012 7:41 AM

  • RMAN-06023: no backup or copy of datafile 12 found to restore

    Hi
    I'm getting the above error when trying to create a duplicate database on the same server.
    Steps
    1) Create backup.
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    backup as copy
    incremental level 0
    spfile
    database
    include current controlfile;
    2) Restore / Duplicate
    Have database orcl2 which is on the same server as ORCL1. Performing a no catalog recovery.
    I get the following error.
    executing Memory Script
    executing command: SET until clause
    Starting restore at 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=555 device type=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/14/2011 16:02:24
    RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to restore
    RMAN-06023: no backup or copy of datafile 10 found to restore
    RMAN-06023: no backup or copy of datafile 9 found to restore
    RMAN-06023: no backup or copy of datafile 8 found to restore
    RMAN-06023: no backup or copy of datafile 7 found to restore
    RMAN-06023: no backup or copy of datafile 6 found to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    All the datafiles are not found. Not sure how this is possible as I just did the backup.
    Command for Duplication :
    DUPLICATE TARGET DATABASE TO ORCL2
    DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
    SPFILE
    PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
    SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
    Additional Information
    RMAN> list backup
    2> ;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    13 Full 16.77M DISK 00:00:01 14-MAR-11
    BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110314T155530
    Piece Name: D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACKUP\2011_03_14\O1_
    MF_S_745775730_6QWWOM7G_.BKP
    SPFILE Included: Modification time: 14-MAR-11
    SPFILE db_unique_name: ORCL1
    Control File Included: Ckp SCN: 731378 Ckp time: 14-MAR-11
    RMAN>
    Any help would be appreciated.
    Thanks.

    ORADBA , thank you for your help.
    Did as you suggested but still getting the same error
    RMAN> DUPLICATE TARGET DATABASE TO ORCL2
    2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
    3> SPFILE
    4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
    5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
    6> until scn = 666967;
    Starting Duplicate Db at 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=537 device type=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:12:47
    RMAN-06136: ORACLE error from auxiliary database: ORA-01565: error in identifyin
    g file 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    RMAN> exit
    Recovery Manager complete.
    C:\Documents and Settings\Administrator>rman target sys/mariorun@orcl1 nocatalog
    Recovery Manager: Release 11.1.0.7.0 - Production on Mon Mar 14 18:13:20 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    connected to target database: ORCL1 (DBID=1129792691)
    using target database control file instead of recovery catalog
    RMAN> connect auxiliary sys/mariorun@orcl2
    connected to auxiliary database: ORCL2 (not mounted)
    RMAN>
    RMAN> DUPLICATE TARGET DATABASE TO ORCL2
    2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
    3> SPFILE
    4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
    5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
    6> until scn = 666967;
    Starting Duplicate Db at 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=97 device type=DISK
    contents of Memory Script:
    set until scn 666967;
    restore clone spfile to 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA';
    sql clone "alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFIL
    EORCL2.ORA''";
    executing Memory Script
    executing command: SET until clause
    Starting restore at 14-MAR-11
    using channel ORA_AUX_DISK_1
    WARNING: A restore time was estimated based on the supplied UNTIL SCN
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: restoring SPFILE
    output file name=C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA
    channel ORA_AUX_DISK_1: reading from backup piece D:\ORACLE\FAST_RECOVERY_AREA\O
    RCL1\AUTOBACKUP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP
    channel ORA_AUX_DISK_1: piece handle=D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACK
    UP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP tag=TAG20110314T155530
    channel ORA_AUX_DISK_1: restored backup piece 1
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 14-MAR-11
    sql statement: alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFI
    LEORCL2.ORA''
    contents of Memory Script:
    sql clone "alter system set db_name =
    ''ORCL2'' comment=
    ''duplicate'' scope=spfile";
    sql clone "alter system set audit_file_dest =
    ''c:\oracle\ora11g\admin\orcl2\adump'' comment=
    '''' scope=spfile";
    sql clone "alter system set control_files =
    ''c:\oracle\ora11g\oradata\orcl2\control01.ctl'', ''c:\oracle\ora11g\oradata\or
    cl2\control02.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control03.ctl'' comment=
    '''' scope=spfile";
    sql clone "alter system set LOG_FILE_NAME_CONVERT =
    ''\orcl1'', ''\orcl2'' comment=
    '''' scope=spfile";
    shutdown clone immediate;
    startup clone nomount ;
    executing Memory Script
    sql statement: alter system set db_name = ''ORCL2'' comment= ''duplicate'' sco
    pe=spfile
    sql statement: alter system set audit_file_dest = ''c:\oracle\ora11g\admin\orc
    l2\adump'' comment= '''' scope=spfile
    sql statement: alter system set control_files = ''c:\oracle\ora11g\oradata\orc
    l2\control01.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control02.ctl'', ''c:\oracl
    e\ora11g\oradata\orcl2\control03.ctl'' comment= '''' scope=spfile
    sql statement: alter system set LOG_FILE_NAME_CONVERT = ''\orcl1'', ''\orcl2''
    comment= '''' scope=spfile
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 267825152 bytes
    Fixed Size 1346712 bytes
    Variable Size 100664168 bytes
    Database Buffers 163577856 bytes
    Redo Buffers 2236416 bytes
    contents of Memory Script:
    set until scn 666967;
    set newname for datafile 1 to
    "D:\ORACLE\ORADATA\ORCL2\SYSTEM01.DBF";
    set newname for datafile 2 to
    "D:\ORACLE\ORADATA\ORCL2\SYSAUX01.DBF";
    set newname for datafile 3 to
    "D:\ORACLE\ORADATA\ORCL2\UNDOTBS01.DBF";
    set newname for datafile 4 to
    "D:\ORACLE\ORADATA\ORCL2\IM_DATA_01.DAT";
    set newname for datafile 5 to
    "D:\ORACLE\ORADATA\ORCL2\IM_IDX_01.DAT";
    set newname for datafile 6 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_01.DAT";
    set newname for datafile 7 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_02.DAT";
    set newname for datafile 8 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_01.DAT";
    set newname for datafile 9 to
    "D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_02.DAT";
    set newname for datafile 10 to
    "D:\ORACLE\ORADATA\ORCL2\IM_PROC_LOG_01.DAT";
    set newname for datafile 11 to
    "D:\ORACLE\ORADATA\ORCL2\IM_PROC_NOLOG_01.DAT";
    set newname for datafile 12 to
    "D:\ORACLE\ORADATA\ORCL2\USERS01.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
    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 14-MAR-11
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=555 device type=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:13:59
    RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to restore
    RMAN-06023: no backup or copy of datafile 10 found to restore
    RMAN-06023: no backup or copy of datafile 9 found to restore
    RMAN-06023: no backup or copy of datafile 8 found to restore
    RMAN-06023: no backup or copy of datafile 7 found to restore
    RMAN-06023: no backup or copy of datafile 6 found to restore
    RMAN-06023: no backup or copy of datafile 5 found to restore
    RMAN-06023: no backup or copy of datafile 4 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    Any suggestions are appreciated.

  • 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

  • Is a copy of .xml file on the iPod too? If so, how can I copy ONLY the .xml file to my computer and NOT have to copy all my music files too?

    I had to re-load my OS (Windows XP Pro) from a HD snapshot via Acronis True Image Server. I save my OS on my C: drive and all my data files on my D: drive.  So when I re-loaded my OS, I still have all of my music files intact.
    I have re-loaded the OS before and had to re-create iTunes library which I did by doing the follwing:
    1. cut & paste .xml file in iTunes folder to desktop
    2. delete .itl file in iTunes folder
    3. import .xml file through iTunes  file>library>iport playlist
    4. navigate to .xml file on desktop and import
    This worked last time I re-loaded my OS but not this time for some reason.
    So I'm wondering if there is a copy of the .xml file on the iPod itself in the iPod_Control folder that I can copy and paste to my comuter desktop and import via the above steps?
    I have seen all kinds of solutions on the web that include copying the music files from the iPod to the computer.  I don't need to do that.  I have the music files.  I just need the .xml file so iTunes can talk to my iPod (5th Generation - 30G).

    Backup your music library, that is the only way to ensure it does not go missing through theft, damage, operator error, machine breaks, upgrades go wrong, operator goes wrong .........

  • If I secure my browser using CISecurity's baseline for Firefox, can I copy all the ".js" files from the hardened system to another?

    I own multiple systems. I have hardened one browser following the guideline provided by CISecurity. Instead of repeating all the configurations performed on that one system, can I just copy all the ".js" files from the secured system to my other systems?
    The ".js" files can be modified using a text editor. Is there a way to lock down these files to prevent modification?

    Dear Joel
    i know two ways to prevent browser from caching your files
    First : The Hard way
    just add ? +Math.random()  in the end of your file
    Like this :
    in HTML :
    <script type="text/javascript">
    (function(){
         var e = document.getElementsByTagName("script")[0];
         var d = document.createElement("script");
         d.src = "index_edgePreload.js?"+Math.random()+"";
         d.type = "application/javascript";
         d.async = true;
         d.defer = true;
         e.parentNode.insertBefore(d,e);
    </script>
    instead of this Line in HTML that created by EA :
    <script type="application/javascript" src="index_edgePreload.js></script>
    Disadvantage : you should do this for all of files you want to prevent from caching
    ===================================================
    Second : The easyest way
    You Should have Access to .htaccess file in your Server
    Open your .htaccess file and paste these codes in it :
    ExpiresActive On
    ExpiresByType application/json "access plus 1 seconds"
    ExpiresByType text/json "access plus 1 seconds"
    ExpiresByType text/plain "access plus 1 seconds"
    ExpiresDefault "access plus 1 month"
    you can type what ever type of file you want to prevent from caching in browser
    Advantage : after do this in your .htaccess file all files with the type you want will not Cache in your browser
    Easy is'nt it ?
    Zaxist

  • Database creation having a trace of the control file

    Hi,
    I want to move a database from one server let's say A to another server let's say B I have a copy of all the datafiles, redo logs, control files and init file of the database fron the server A. I have a trace of the control file.
    I copied all these files on the server B in the location /dispecer_date/oradata, except init which is in ORACLE_HOME/dbs
    I thought that the simplest method to recreate the database is from the backup of the control file writing in sql the command CREATE CONTROLFILE how is written in trace and replacing the word REUSE with the word SET in CREATE CONTROLFILE instruction.
    I obtained an error:
    ORA-01503: Create controlfile failed
    ORA-01160: file is not a data file
    ORA-01110: datafile: '/dispecer_date/oradata/system.dbf'
    Why? The db_block_size parameter is 4096.
    Thank you,
    Mihaela

    Here are the steps .....
    sql > shutdown immediate ;
    create identical dir structure on server b
    copy all datafile,controlfile,redologfiles and pfile to target server ,And put them in same dir as of source.
    now on taget server
    sql > startup mountpfile = path of the pfile
    sql > alter database opn
    or
    sql > alter database open resetlogs ;
    this will do the trick, I don;t think recreating the controlfile is a good option hare , becuse you likly to loose some data if you stick on that one.
    hare krishna
    Alok

  • Restore - filename for datafile is missing in the control file

    I am practicing RMAN recovery procedures and I encountered a problem that I do not know how to solve.
    1) I took a hot backup of my test database.
    2) Create tablespace TS_DATA_TEMP
    3) Deleted tablespace TS_DATA which had 2 datafiles
    4) Created tablespace TS_DATA with 1 datafile
    5) shutdown database
    6) logged into RMAN in nomount
    7) restore controlfile from autobackup;
    8) alter database mount;
    9) restore database;
    RMAN> restore database;
    Starting restore at 22-AUG-08
    using channel ORA_DISK_1
    the filename for datafile 5 is missing in the control file
    skipping datafile 1; already restored to file /u02/oradata/EDM91/system01.dbf
    skipping datafile 2; already restored to file /u02/oradata/EDM91/undotbs01.dbf
    skipping datafile 6; already restored to file /u02/oradata/EDM91/index
    skipping datafile 3; already restored to file /u02/oradata/EDM91/sysaux01.dbf
    skipping datafile 7; already restored to file /u03/oradata/EDM91/TS_INDEX01.dbf
    skipping datafile 9; already restored to file /u03/oradata/EDM91/TS_LOB01.dbf
    skipping datafile 4; already restored to file /u02/oradata/EDM91/users01.dbf
    restore not done; all files readonly, offline, or already restored
    Finished restore at 22-AUG-08
    10) tried to recover
    Starting recover at 22-AUG-08
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/22/2008 15:04:22
    RMAN-06094: datafile 5 must be restored
    SQL> select name from v$datafile where file#=5;
    NAME
    /u04/oradata/EDM91/TS_DATA.dbf
    12) alter database backup controlfile to trace
    DATAFILE
    '/u02/oradata/EDM91/system01.dbf',
    '/u02/oradata/EDM91/undotbs01.dbf',
    '/u02/oradata/EDM91/sysaux01.dbf',
    '/u02/oradata/EDM91/users01.dbf',
    '/u04/oradata/EDM91/TS_DATA.dbf',
    '/u02/oradata/EDM91/index',
    '/u03/oradata/EDM91/TS_INDEX01.dbf',
    '/u04/oradata/EDM91/TS_DATA02.dbf',
    '/u03/oradata/EDM91/TS_LOB01.dbf'
    CHARACTER SET UTF8
    So i'm not sure what the problem is. Datafile TS_DATA.dbf is located in the control file but i'm getting the error: the filename for datafile 5 is missing in the control file.
    Suggestions on what's wrong with the control file?

    I found my mistake; a newbie error.
    I did not know I needed to include in my restore command the 'until' option when doing incomplete recovery. I only included the 'until' option in the recover command:
    original command
    restore database;
    recover database until sequence =123;
    should be
    restore database until sequence = 123;
    recover database until sequence =123;
    I usually run the command using a RUN block with a SET UNTIL SEQUENCE but this case I used the single commands separately.
    RUN
    +{+
    SET UNTIL sequence 123;
    RESTORE DATABASE;
    RECOVER DATABASE;
    +}+

  • Instances where the control file needs to be backed up

    Oracle Version --> 11G
    Control file needs to backed up
    1. When you add or rename datafiles
    2. Add or Drop redo log members
    3. Dropping tablespaces
    4. After any ALTER DATABASE commandAre there any more instances where we have to backup the control file?

    T.Boyd wrote:
    Oracle Version --> 11G
    Control file needs to backed up
    1. When you add or rename datafiles
    2. Add or Drop redo log members
    3. Dropping tablespaces
    4. After any ALTER DATABASE commandAre there any more instances where we have to backup the control file?Anything that actually updates the control file. like maybe taking a backup with rman?
    "set controlfile autoback on" is your friend.
    "set it and forget it."

  • Delete the control file

    Solaris 9 Oracle 9i
    If one has got 2 sets of the control file eg control01, control02. can one delete one set if one needs space desperately and have a backup copy somewhere?
    Thanx.

    NPD wrote:
    so this means it can be deleted if one wants toIf you could, it is highly not recommanded. You'd go to a not safely situation (imagine you lose the other one for some reason...). Furthermore, controflile are not Giga file size, I'm pretty sure you'll gain almost peanuts of space by removing a controlfile.
    Nicolas.

Maybe you are looking for