Rman and duplicate database.

Hi,
I have some problems with rman and duplicate a database.
Im trying to duplicate a database on a anoter server than the target, and I have run the command SQL>startup force nomount, on the auxiliary system.
But I don't know what commands to use i rman.
Have backup-files on disk at the same server as the auxiliary system is on.
Any tips and tricks?!
Thanks in advanced,
Micke.

I had the same question a while ago. The location of the files you'll need to restore from are specified in the controlfile. The location referenced in the controlfile will be the location where they were put but RMAN on your "source" server. So for instance, if RMAN drops the backup set in /opt/oracle/dbs/tmp, then your controlfile will point to /opt/oracle/dbs/tmp. (yours probably won't be here, it's just an example). Your controlfile WILL however have to go in the dbs directory, wherever that is.
What worked for me in the past was placing the backup files on the destination server in /home/oracle/backup_<date> and recreating the file structure based on that of the source server (even if it's just empty dirs) and symlink the last level of the tree to the folder where the files reside.
For example:
ln -s /home/oracle/backup_03272008 /opt/oracle/dbs/tmp
I think there's a more efficient way to do this, but this worked for me.

Similar Messages

  • Rman clone duplicate database from active database

    Hi All,
    I read document saying that rman can duplicate database from active database (prod) to a remote server, so long as you configure listener and tnsname.
    I am working toward it.
    I met a problem, which is when i bring up auxiliary database in nomount mode, the listener service of that auxiliary database is in BLOCKED status, and throw out ora-12528 error when I rman auxiliary sys/pass@clonedb. Isn't nomount mode the mode which auxiliary db is supposed to be in?
    (ora-12528: TNS:listener: all appropriate instances are blocking new connections)
    Thanks,
    milic

    You may have run into the same problem like I did recently:
    The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
    ORA-12528: TNS listener BLOCKED - trying to duplicate database
    Also for further problems:
    RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628

  • Oracle RMAN and SAP Databases

    Hi all,
    Am mainly an Oracle DBA and had just recently return to supporting SAP customers after a 4 year absence of supporting non-SAP customers.
    Anyway, I have some question on using Oracle RMAN with SAP databases. Backup softwares are Netbackup and Data Protector.
    I managed to get the backup working, that is, there is no issues, Oracle RMAN backup using SAP's brarchive and brbackup works alright. My question is about using an Oracle RMAN catalog. I've read thru several SAP documentation and cannot find one where I can use a RMAN catalog.
    Reading from
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/43d7cab9a04a409cc46876e36762c2/content.htm
    Does that mean I cannot use a RMAN catalog? Had anyone managed to use a RMAN catalog to do the RMAN backup?
    *Another question I have is, do I need Netbackup and Data Protector if I want to run RMAN backup to disk via brarchive and brbackup? Does backint requires a SBT library to use RMAN? What I mean is, I want to use RMAN but doing backup to disk instead of to tape which means I don't need the tape library installed, will backint know that this is the case and will not look for the tape library?
    Any advise or feedback on this will be very much appreciated. Thanks in advance.
    Extracts from http://help.sap.com/saphelp_nw04/helpdata/en/d1/43d7cab9a04a409cc46876e36762c2/content.htm are as below:
    The Oracle Recovery Manager (RMAN) is an Oracle backup program. You can use it as a command line interface (CLI) or as a graphical user interface (GUI) in the Oracle Enterprise Manager (OEM). We support RMAN with the SAP backup tools BRBACKUP and BRARCHIVE.
    RMAN uses the System Backup to Tape (SBT) interface to back up to tape devices. We implement SBT using the SAP backup library. External backup tools can implement this interface as a dynamic link library (DLL).
    Integration
    By integrating RMAN into BRBACKUP, you can add security and flexibility to important functions in existing backup strategies and tools:
    · The recovery catalog is not used. The backup information is stored in the control file. After the backup, the control file is also backed up. In a restore, the control file is restored first, followed by the data files.
    · The integration of RMAN into BRBACKUP also guarantees integration into the SAP Structure linkComputing Center Management System (CCMS).
    · BRBACKUP tape management functions as previously (that is, as when using the SAP backup library).
    · You can still use the BACKINT interface with external tools.
    · All previous SAP backup strategies are supported while using RMAN. Nevertheless, RMAN is not supported for standby database backups and split-mirror backups.
    · The following components are delivered with the standard Oracle8 installation:
    ¡ RMAN with the Oracle SBT interface
    ¡ Backup library and backup tool Networker from Legato
    ¡ Legatou2019s BACKINT interface implementation (as of Oracle 8.0.5)
    The SAP installation also delivers the SAP backup library with BRBACKUP and BRARCHIVE.
    Edited by: newbie01.sap on Jun 11, 2010 10:50 AM

    Hi,
    This question has been answered by Stefan Koehler. Not sure why the thread is not updated by his response. I am hoping to give him the max points actually.
    It was a very good response which is as below:
    Subject: Re: Oracle RMAN and SAP Databases
    Message: Hello,
    > Does that mean I cannot use a RMAN catalog? Had anyone managed to use a RMAN catalog to do the RMAN backup?
    Correct - if you are using the BR*Tools and RMAN you are not able to use a RMAN catalog with it.
    You can do manual catalog syncs, but the BR*Tools are not supporting a catalog database.
    >Does backint requires a SBT library to use RMAN?
    Check this documentation (Point "RMAN Backups Without Backup Library"): http://help.sap.com/saphelp_nw04/helpdata/en/3f/9d800e1aec11d2b42c00609419997a/content.htm
    > Any advise or feedback on this will be very much appreciated.
    We are also using RMAN for taking backup of all our oracle database (SAP and non-SAP), but without any BR*Tools.
    That is also possible - check sapnote #105047 (Part "50. Recovery Manager (RMAN)").
    As you mentioned, that you are a fulltime DBA you should have enough knowledge to use RMAN without BR*Tools.
    Regards
    Stefan

  • RMAN duplicate database suddenly slow

    Hi Everyone,
    I posted at wrong forum last time, sorry about that.
    I used RMAN to duplicate database to different box in the same local network area. Here are the scenario:
    boxA: target database (PROD) -- 250G
    database:Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    OS:Windows Server 2003 Enterprise x64 Edition
    boxB: cloned database
    database:Oracle 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    OS:Windows Server 2003 Enterprise x64 Edition
    After prepared necessary steps,listener and tnsnames,etc, I run the following scripts:
    C:\>rman target sys/[email protected] auxiliary sys/[email protected] catalog rman/rman
    RMAN>RUN
    SET NEWNAME FOR DATAFILE 1 TO 'D:\oracle\undb\system01.dbf';
    .... (some set newname omitted here)
    SET NEWNAME FOR DATAFILE 15 TO 'D:\oracle\undb\RMAN01.ORA';
    SET NEWNAME FOR TEMPFILE 1 TO 'D:\oracle\undb\TEMP01.ORA';
    # to manually allocate three auxiliary channels for disk issue
    ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK;
    DUPLICATE TARGET DATABASE TO undb
    LOGFILE
    GROUP 1 ('D:\oracle\undb\redo01.log') SIZE 100M REUSE,
    GROUP 2 ('D:\oracle\undb\redo02.log') SIZE 100M REUSE,
    GROUP 3 ('D:\oracle\undb\redo03.log') SIZE 100M REUSE;
    database duplicated successfully last week.
    Monday, I created another database in boxA (testdb) and used the similiar scripts (just made necessary changed, database name,file names,etc), and the duplication also successful.
    Yesterday, I tried to duplicate PROD, did the exactly same thing as Monday,
    everything was very slow,
    RMAN>report schema; took over 30 minutes,
    RMAN>list backup;took another 30 minutes,
    then I delete testdb in boxA, nothing better.
    I have tried from boxA, also tried from boxB, things were similiar.
    (when test from boxB, I input: rman target sys/[email protected] auxiliary sys/[email protected] catalog rman/[email protected] )
    when I input:
    RMAN> report schema;
    and checked from Enterprise Manager,
    SELECT RECID , STAMP , THREAD# , SEQUENCE# , FIRST_CHANGE# LOW_SCN , FIRST_TIME LOW_TIME , NEXT_CHANGE# NEXT_SCN ,
    RESETLOGS_CHANGE# , RESETLOGS_TIME FROM V$LOG_HISTORY WHERE RECID BETWEEN :1 AND :1 AND RESETLOGS_TIME IS NOT NULL
    AND STAMP >= :1 ORDER BY RECID
    the query is running for a long time, my V$LOG_HISTORY has 18688 rows, select count(*) from V$LOG_HISTORY took less than 1 second.
    I am wondering what is the reason?
    Can anybody give me a clue?
    Thank you very much.

    Thanks Alan,
    Hardware spec:
    duplicate database server CPU: 2x1995 Mhz ,RAM:4G, hard disk 500G
    production server CPU: 2x2993 Mhz ,RAM:5G,hard disk 900G
    the production server is better than the duplicate server. the production only run Oracle 10g server, the duplicate server is brand new and nothing is runing except Windows and Oracle software only.
    I noticed that when in peek hour, RMAN is really slow, no matter which box I run the RMAN, when in non peek hour, it's reasonable.
    Is there anything I can do on the RMAN side?
    Thanks again

  • Rman clone ? duplicate database ? data guard ? standby database?

    hey there !!
    What is the difference between Rman clone , duplicate database , data Guard , standby db?
    1 more thing , standby database and duplicate database are same??

    RMAN Clone : you take backup of a database on one server ,then take it to other server ,again use RMAN to restore the database,A lot manual intervention is needed in this method
    RMAN DUPLICATE: same as above just that manual intervention is less. With 11gR2 there active database duplication in which you can clone your test database directly from production database without taking and then transferring the backup to test server.
    Standby Database :they are of two types Physical and logical.The setup is done using RMAN with any of the above methods.Standby is the in-sync (can have some delay) version of primary database either block by block which is physical standby configuration or SQL statment wise which is logical standby.
    Data Guard:This is also a standby configuration.Here the failover and switchover are automated with the help of DGMGRL utility.In manual standby this same can be done via SQL*PLUS using sql commands

  • Duplicate database from active database in 11g?

    Does anyone know if it's possible to clone a database from stby by issuing RMAN duplicate database FROM ACTIVE DATABASE command in 11g?
    I know it's possible from primary to create stby.
    Thanks in advance

    You may have run into the same problem like I did recently:
    The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
    ORA-12528: TNS listener BLOCKED - trying to duplicate database
    Also for further problems:
    RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628

  • 11g DUPLICATE database

    I am going to do 11g RMAN active DUPLICATE database to another server, size > 300GB, will take hours,
    Question: after its done, the DUPLICATE database is at the status of begin DUPLICATE or end of DUPLICATE?

    Hello,
    When you finish the duplicate you can issue:
    SQL> select name,open_mode from v$database;
    NAME OPEN_MODE
    CLONEDB READ WRITE
    kind regards
    Mohamed

  • RMAN 11gR2 DUPLICATE TARGET FOR STANDBY FROM ACTIVE DATABASE - Issue -HELP

    First question.
    Can primary and standby database have the same SID name?
    As I recall it is yes.
    I believe they must have different GLOBAL or DB_UNIQUE_NAME?
    Anyway, RMAN I believe is telling me it is having problems copying control file on first and dies.
    Permissions Issue on STANDBY machine?
    RMAN> connect target backup_admin/backup_admin
    connected to target database: LABDG (DBID=1973403623)
    RMAN> connect auxiliary sys/oracle@STANDBY;
    connected to auxiliary database: LABDG (not mounted)
    RMAN> DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE;
    Starting Duplicate Db at 18-JUL-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=10 device type=DISK
    contents of Memory Script:
    backup as copy reuse
    targetfile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' auxiliar
    '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' ;
    executing Memory Script
    Starting backup at 18-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=151 device type=DISK
    Finished backup at 18-JUL-11
    contents of Memory Script:
    backup as copy current controlfile for standby auxiliary format '/u01/oradat
    restore clone controlfile to '/u01/app/oracle/flash_recovery_area/LABDG/cont
    '/u01/oradata/LABDG/control01.ctl';
    executing Memory Script
    Starting backup at 18-JUL-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    copying standby control file
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/18/2011 11:20:54
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 07/18/2011 11:20:
    ORA-17628: Oracle error 19505 returned by remote Oracle server

    Hi,
    Permissions Issue on STANDBY machine?First problem I see is the sysdba password must be the same on both sides (target and auxiliary dbs).
    From the documentation.
    The source database and auxiliary instances must use the same SYSDBA password, which means that both instances must have password files. You can
    create the password file with a single password so you can start the auxiliary instance and enable the source database to connect to it.Check all prereqs for the standby db duplicate here.
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
    Rgds,
    Tycho

  • RMAN duplicate Database

    Hi ALL,
    While doing duplicate database using RMAN i m getting following error.
    released channel: d1
    RMAN-00571: =================================
    RMAN-00569: === ERROR MESSAGE STACK FOLLOWS ======
    RMAN-00571: =======================================
    RMAN-03002: failure of Duplicate Db command at 05/14/2008 08:08:23
    RMAN-03015: error occurred in stored script Memory Script
    ORA-06550: line 1, column 1730:
    PLS-00302: component 'LOGTERMINAL_OBJ' must be declared
    ORA-06550: line 1, column 1716:
    PL/SQL: Statement ignored
    Recovery Manager complete.
    Please Help
    Regards
    Mital

    thanks Werner for reply ,
    the above problem is solved, the proble was that you have said. the problem was realted to version . the target db was of 10.2.0.3 and the rman aux db is at 10.2.0.4
    i have changed auxiliary db to 10.2.0.3 and the problem is resolved.
    but now i am facing some diff. error.
    setup:
    backup server :\\bkpsvr\backup$\
    backup location : \\bkpsvr\backup$\
    target server \\tgt_svr
    auxiliary server :\\aux_svr\ :
    restore location : G:\ORACLE\ORADATA\ERPBI2DV\
    during duplicate db commad while reading from backup piece it is givnig following error.
    ORA-19870: error reading backup piece \\BRNORA10\BACKUP$\BI2\DF_ERPBI2_654625830_4599_1
    ORA-19504: failed to create file "G:\ORACLE\ORADATA\ERPBI2DV\OWB_ERPBI2DV_01"
    ORA-27040: file create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified.
    released channel: d1
    RMAN-00571: ==============================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ======================================
    RMAN-03002: failure of Duplicate Db command at 05/14/2008 12:39:14
    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 100 found to restore
    RMAN-06023: no backup or copy of datafile 99 found to restore
    please help.
    Message was edited by:
    mits

  • Rman Duplicate database synchronization problem

    Hi
    I have the Oracle database 9.2.0.1.0 .I've created Duplicate database on another computer with the same structure and Oracle 9.2.0.1.0 too.
    Now, I want to synchronize my duplicate by primary database, and I copied backup of all datafiles & archive logs & and backup that was taken by RMAN, but in the middle of processing I got this error.
    printing stored script: Memory Script
    set until scn 443620578;
    recover
    clone database
    delete archivelog
    executing script: Memory Script
    executing command: SET until clause
    Starting recover at 31-MAR-03
    starting media recovery
    channel ch1: starting archive log restore to default destination
    channel ch1: restoring archive log
    archive log thread=1 sequence=106
    channel ch1: restored backup piece 1
    piece handle=C:\ORACLE\ORA9I\DATABASE\23EJCO3D_1_1 tag=TAG20030331T114405 params=NULL
    channel ch1: restore complete
    archive log filename=C:\ORACLE\ORADATA\DELLDUP\ARCHIVE\DELLDUPT001S00106.ARC thr
    ead=1 sequence=106
    channel clone_default: deleting archive log(s)
    archive log filename=C:\ORACLE\ORADATA\DELLDUP\ARCHIVE\DELLDUPT001S00106.ARC rec
    id=1 stamp=490112362
    media recovery complete
    Finished recover at 31-MAR-03
    printing stored script: Memory Script
    shutdown clone;
    startup clone nomount ;
    executing script: Memory Script
    RMAN-00571:===============================================
    RMAN-00569: ===============ERROR MESSAGE STACK FOLLOWS
    RMAN-00571:===============================================
    RMAN-03002: failure of Duplicate Db command at 03/31/2003 15:20:53
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested cancel of current operation
    What should I Do?
    tx

    I beleive... and correct me if I'm wrong, but the duplicate command will open the db created with RESET LOGS. Thereby meaning you can't use the archive logs.

  • Duplicate database command fails with RMAN-06023

    Hello,
    I am trying to test out the duplicate database command in RMAN and am running into some issues.
    I did a backup of my test database, copied the backup files to a second server, and now I'm trying to run the duplicate command and I get RMAN-06023 errors for all of my datafiles.
    I did crosschecks on my backupsets and they showed as available. They are in the same location on the new server, with the same permissions. There are no recent archived logs, as this is a very quiet environment.
    My commands and output (edited slightly) were as follows:
    RMAN> run {
    2> allocate channel d1 device type disk;
    3> allocate channel d2 device type disk;
    4> backup database;
    5> }
    allocated channel: d1
    channel d1: sid=32 devtype=DISK
    allocated channel: d2
    channel d2: sid=36 devtype=DISK
    Starting backup at 03-JUL-07
    channel d1: starting full datafile backupset
    channel d1: specifying datafile(s) in backupset
    channel d2: starting full datafile backupset
    channel d2: specifying datafile(s) in backupset
    input datafile fno=00012 name=/database/oradata/source/matrix_ts01.dbf
    input datafile fno=00004 name=/database/oraindex/source/ind_ts01.dbf
    input datafile fno=00006 name=/database/oradata/source/users_ts01.dbf
    input datafile fno=00003 name=/database/oradata/source/drsys01.dbf
    input datafile fno=00007 name=/database/oradata/source/ORACLEORADATATST2CWMLITE01.DBF
    input datafile fno=00009 name=/database/oradata/source/ORACLEORADATATST2ODM01.DBF
    input datafile fno=00005 name=/database/oradata/source/tools_ts01.dbf
    channel d2: starting piece 1 at 03-JUL-07
    including current SPFILE in backupset
    including current controlfile in backupset
    input datafile fno=00011 name=/database/oradata/source/ORACLEORADATADATA.DBF
    input datafile fno=00001 name=/database/oradata/source/system_ts01.dbf
    input datafile fno=00002 name=/database/oradata/source/undo_ts01.dbf
    input datafile fno=00008 name=/database/oradata/source/ORACLEORADATATST2EXAMPLE01.DBF
    input datafile fno=00010 name=/database/oradata/source/ORACLEORADATATST2XDB01.DBF
    channel d1: starting piece 1 at 03-JUL-07
    channel d2: finished piece 1 at 03-JUL-07
    piece handle=/database/oracle/product/9.2.0/dbs/0ciltjgn_1_1 comment=NONE
    channel d2: backup set complete, elapsed time: 00:08:17
    channel d1: finished piece 1 at 03-JUL-07
    piece handle=/database/oracle/product/9.2.0/dbs/0biltjgn_1_1 comment=NONE
    channel d1: backup set complete, elapsed time: 00:09:22
    Finished backup at 03-JUL-07
    released channel: d1
    released channel: d2
    ** at this point I copied the files listed above to same directory on destination server **
    RMAN> connect auxiliary sys/[email protected]
    connected to auxiliary database: destination (not mounted)
    RMAN> run {
    2> allocate auxiliary channel aux1 device type disk;
    3> allocate auxiliary channel aux2 device type disk;
    4> duplicate target database to destination nofilenamecheck;
    5> }
    llocated channel: aux1
    channel aux1: sid=10 devtype=DISK
    allocated channel: aux2
    channel aux2: sid=13 devtype=DISK
    Starting Duplicate Db at 03-JUL-07
    printing stored script: Memory Script
    set until scn 4873550;
    set newname for datafile 1 to
    "/database/oradata/destination/system_ts01.dbf";
    set newname for datafile 2 to
    "/database/oradata/destination/undo_ts01.dbf";
    set newname for datafile 3 to
    "/database/oradata/destination/drsys01.dbf";
    set newname for datafile 4 to
    "/database/oraindex/destination/ind_ts01.dbf";
    set newname for datafile 5 to
    "/database/oradata/destination/tools_ts01.dbf";
    set newname for datafile 6 to
    "/database/oradata/destination/users_ts01.dbf";
    set newname for datafile 7 to
    "/database/oradata/destination/ORACLEORADATATST2CWMLITE01.DBF";
    set newname for datafile 8 to
    "/database/oradata/destination/ORACLEORADATATST2EXAMPLE01.DBF";
    set newname for datafile 9 to
    "/database/oradata/destination/ORACLEORADATATST2ODM01.DBF";
    set newname for datafile 10 to
    "/database/oradata/destination/ORACLEORADATATST2XDB01.DBF";
    set newname for datafile 11 to
    "/database/oradata/destination/ORACLEORADATADATA.DBF";
    set newname for datafile 12 to
    "/database/oradata/destination/matrix_ts01.dbf";
    restore
    check readonly
    clone database
    executing script: 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 03-JUL-07
    released channel: aux1
    released channel: aux2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/03/2007 14:35:13
    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
    Thanks for any help,

    Hi,
    Where is you RMAN catalog? I think you forgot to connect to it.
    To duplicate a database check that folowing applies:
    1-the auxiliary instance is mounted
    2-the listener for the auxiliary db is up
    3-the backup pieces that RMAN is going to restore ARE AVAILABLE on the
    secondary/auxilary server with SAME NAME the have on the primary server (you can use NFS to avoid the copy of the pieces from primary to auxuliary box)
    Remember to be conected to both: target and auxiliary db.
    I have extracted the folowing lines from an RMAN script I used to create an standby database with the DUPLICATE command (the RMAN catalog was in the primary db controlfile, and the command was run on the primary server:
    $ rman target / nocatalog auxiliary sys/pwd@standbycard log=crCARD.log
    RMAN> duplicate target database for standby nofilenamecheck dorecover;
    I hope this helps
    Gustavo Restuccia

  • Rman duplication of database to the same server and same disk group

    Hi,
    We have multiple databases - rmsprd1 and oidprd1 on asm disk groups - ASMDG_DAT01 and ASMDG_FRA01 on a server.
    Both these databases are single instance asm based databases.
    I am trying to do a rman duplication from rmsprd1 to rmsprd2 in the same server. I intend to use the same asm disk groups - ASMDG_DAT01 and ASMDG_FRA01.
    Is this possible ?
    Currently I have the following structure
    +ASMDG_DAT01/RMSPRD1/DATAFILE
    +ASMDG_DAT01/RMSPRD1/CHANGETRACKING/
    +ASMDG_DAT01/RMSPRD1/CONTROLFILE/
    +ASMDG_DAT01/RMSPRD1/DATAFILE/
    +ASMDG_DAT01/RMSPRD1/ONLINELOG/
    +ASMDG_DAT01/RMSPRD1/PARAMETERFILE/
    +ASMDG_DAT01/RMSPRD1/TEMPFILE/
    +ASMDG_FRA01/RMSPRD1/AUTOBACKUP/
    +ASMDG_FRA01/RMSPRD1/BACKUPSET/
    +ASMDG_FRA01/RMSPRD1/CONTROLFILE/
    +ASMDG_FRA01/RMSPRD1/DATAFILE/
    +ASMDG_FRA01/RMSPRD1/ONLINELOG/
    Will I be able to create something like
    +ASMDG_DAT01/RMSPRD2/DATAFILE
    +ASMDG_DAT01/RMSPRD2/CHANGETRACKING/
    +ASMDG_DAT01/RMSPRD2/CONTROLFILE/
    +ASMDG_DAT01/RMSPRD2/DATAFILE/
    +ASMDG_DAT01/RMSPRD2/ONLINELOG/
    +ASMDG_DAT01/RMSPRD2/PARAMETERFILE/
    +ASMDG_DAT01/RMSPRD2/TEMPFILE/
    +ASMDG_FRA01/RMSPRD2/AUTOBACKUP/
    +ASMDG_FRA01/RMSPRD2/BACKUPSET/
    +ASMDG_FRA01/RMSPRD2/CONTROLFILE/
    +ASMDG_FRA01/RMSPRD2/DATAFILE/
    +ASMDG_FRA01/RMSPRD2/ONLINELOG/
    I know that I can create a different asm disk group for the rman duplication but this is proving to be a hassle.
    Thanks
    Sandeep

    Hi,
    I have found the answer working with Oracle via a service request. Admittedly there was no direct oracle documentation for doing this and hence documenting the steps here.
    No legalities, formalities involved please.
    Here are the steps - rmsprd1 is the source, rmsprd2 is the target, +ASM is the asm instance supporting both rmsprd1 and rmsprd2. The intention is to put both the source and destination in the same server. The backupset backup in location /dbaadm/sandeep_rman_refresh will be used for the duplication.
    1) Take rman backupset backup of the source database - rmsprd1
    rman_take_backup.ksh ( Take backup of source - rmsprd1 using rman ). The contents of the rman_take_backup.sh script are given below :
    rm /dbaadm/sandeep_rman_refresh/*
    export NLS_DATE_FORMAT='YYYY-MM-DD:HH24:MI:SS'
    rman target / <<EOF
    run
    allocate channel d1 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d2 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d3 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d4 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d5 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    allocate channel d6 device type disk format '/dbaadm/sandeep_rman_refresh/%U';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/dbaadm/sandeep_rman_refresh/%F';
    backup as backupset database plus archivelog tag 'clonebackupset';
    EOF
    2) Make the directories for destination database ( rmsprd2 )
    /opt/oracle/admin> mkdir -p rmsprd2/adump rmsprd2/dpdump rmsprd2/pfile rmsprd2/scripts
    3) Create pfile from rmsprd1 spfile. copy/rename the pfile to make a pfile for rmsprd2.
    4) Edit listener.ora in ASM ORACLE_HOME and edit tnsnames.ora in DB ORACLE_HOME
    listener.ora
    LISTENER_RMSPRD2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
    (ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
    SID_LIST_LISTENER_RMSPRD2 =
    (SID_LIST =
    (SID_DESC =
    ( ORACLE_HOME = /opt/oracle/product/11.2.0/db_1 )
    ( SID_NAME = rmsprd2 )
    ADR_BASE_LISTENER_RMSPRD2 = /opt/oracle
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_RMSPRD2=ON # Section added by Sandeep
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER_RMSPRD2=OFF
    ADMIN_RESTRICTIONS_LISTENER_RMSPRD2=ON
    tnsnames.ora ( http://francispaulraj.wordpress.com/ora-12528-tnslistener-all-appropriate-instances-are-blocking-new-connections/ )
    RMSPRD2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = kirkjerpdb01.kirklands.com)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rmsprd2)
    (UR = A)
    5) Build a passwordfile ( I just copied and renamed it )
    6) Edit /etc/oratab to add database entry for rmsprd2
    7) Set the environment for rmsprd2
    . oraenv
    rmsprd2
    8) Startup nomount of rmsprd2
    sqlplus / as sysdba
    startup nomount pfile=/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora
    9) Create spfile from pfile='/opt/oracle/admin/rmsprd2/pfile/initrmsprd2.ora';
    10) shutdown and startup rmsprd2 with spfile
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> startup nomount;
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size 2213632 bytes
    Variable Size 788531456 bytes
    Database Buffers 268435456 bytes
    Redo Buffers 9756672 bytes
    11) We are now ready for duplication from rmsprd1 ( source ) to rmsprd2 ( destination ) both using +ASM standalone asm instance. set the environment to rmsprd1and fire away.
    Please note that the duplicate script is only connecting to auxilary database ( rmsprd2 ) and using the backup location for the duplication.
    I used a unix shell script -rman_duplicate_from_backup.ksh. The contents are given below :
    $ORACLE_HOME/bin/rman auxiliary sys/prd123@rmsprd2 log=rman_duplicate_from_backup.log << EOF
    run
    allocate auxiliary channel d1 device type disk;
    allocate auxiliary channel d2 device type disk;
    allocate auxiliary channel d3 device type disk;
    allocate auxiliary channel d4 device type disk;
    allocate auxiliary channel d5 device type disk;
    allocate auxiliary channel d6 device type disk;
    DUPLICATE DATABASE TO rmsprd2
    BACKUP LOCATION '/dbaadm/sandeep_rman_refresh';
    EOF
    12) Voila - the rmsprd1 to rmsprd2 is done.....
    Hope this helps somebody else wanting to do the same excercize. Have Fun.....
    regards
    Sandeep

  • Problems creating control file in RMAN duplicate database

    There is so much detail involved in this operation that I don't know what might be useful, so I'll start simple. I'm attempting to clone a database on the same host using RMAN "duplicate database". I finally got all the setup done, the OS authentication hurdles hurdled, etc. and entered the command:
    duplicate target database to COPYCH2M until time "to_date('March 15 2012 12:00:00', 'Mon DD YYYY HH24:MI:SS')";
    The first time I got:
    ORA-19504: failed to create file "/u01/app/oracle/oradata/COPYCH2M/control01.ctl"
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 2: No such file or directory
    There was nothing in the Oracle instructions about manually creating the directory, but I did so, thinking that might be the problem. And it created the control files! But then I got the following:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/21/2012 15:59:25
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-00201: control file version 11.2.0.0.0 incompatible with ORACLE version 11.1.0.1.0
    ORA-00202: control file: '/u01/app/oracle/oradata/COPYCH2M/control01.ctl'
    Sounds straightforward, if frustrating, right? Apparently you can't duplicate a database that's not in the exact same version. But:
    1) The backuppiece we got the control file from was from last November.
    2) The version of Oracle has not been updated since that time.
    How can a file created by this version be incompatible with this version? Where is it even getting 11.1?
    Thanks, I'm hoping this is easy but I can post more info if needed.

    >
    There was nothing in the Oracle instructions about manually creating the directory, but I did so, thinking that might be the problem. And it created the control files! But then I got the following:
    >
    The database is limited as to what it can create. Since you defined where you wanted the controlfiles to go (pfile/spfile), it's up to you to make sure the directory is valid and exists. :)
    >
    How can a file created by this version be incompatible with this version? Where is it even getting 11.1?
    >
    As for your controlfiles, make sure the compatible parameter is set the same on both the source and the target unless you are using the default (11.1.0.1 for you, and you aren't)
    Keep going, you'll get there. RMAN duplicate is a great feature.
    Good luck.

  • Duplicate database and incremental backups

    Hello,
    I'm currently investigating options to maintain a test server that is "relatively" up-to date compared to the production server.
    This is my first contact with RMAN and I went through the manuals but as I did not have a chance to play with it I might have missed something.
    This is an Oracle 11.2 (not sure about the full version number) on a Redhat Enterprise Linux.
    The test server needs to be writeable and need to be re-synced with the production server approx. once or twice a month. Due to the size of the database (~600GB) we are looking into solutions that could make use of the incremental backups that are already taken on the production database.
    While initiating the test server using RMAN DUPLICATE seems to be straight forward, I'm unsure on how the "syncing" can be done in the most efficient way - especially because we are changing the data on the test server.
    From the description of the RMAN RECOVER command it's not clear to me if this could be used to "recover" the test database based on the incremental backups to the "current state" of the production database even if the test database has been changed. After reading some posts here, this does not seem to be the case.
    Would a restore point make such an incremental restore possible? Creating a (named?) restore point right after the duplication, then once the tests are finished do a flashback to the restore point and then apply the incremental backups that have accumulated since then.
    Another options seems to be to create a Standby Database. Then when performing the tests we turn the Standby Database into a Snapshot Standby Database open it in read/write and run the tests. Once we are done, we switch it back to a physical standby. That switchback will rewind the changes and the accumulated redo logs are applied thus "incrementally" catching up with production - which is essentially what we want.
    Is there any other solution to this? Or is using a snapshot standby the most efficient solution? If at all possible we would like to avoid transferring the 600GB each time we want to re-sync the test database.
    Thanks in advance
    Thomas

    Thomas;
    RMAN Incremental Backups to Roll Forward a Physical Standby Database might offer some help.
    There's a great example of it here :
    http://www.oracle-ckpt.com/?s=standby+scn&op.x=0&op.y=0
    If you go the Snapshot route make sure you have the space for the Archive on both databases. Also double check you flash recovery area, again on both databases. If you have an issue you may have to use the roll forward.
    Best Regards
    mseberg

  • Oracle RMAN recovery catalog database in a Primary and Standby mode

    Hello All,
    The customer wants the RMAN recovery catalog database to be highly available so that none of the RMAN database backup jobs are impacted at the time of taking the database backups. There are are 200+ databases running on OEL, RHEL and Windows. So we planned to host the recovery catalog database on Oracle Active DataGuard 11.2.0.1 Enterprise Edition on RedHat EL 5.8 version on two physical servers. The Primary Instance will be in one server in the Primary DC and the Standby Instance will be on another server in another DC. Also all the database datafiles are hosted in ASM Diskgroups on SAN (DATA, FRA, REDO, ARCH diskgroups).
    Are there any specific RPM/patch/OS user custom/specific settings or configurations needed..?
    Thanks in advance..
    Regards,
    Abhijit

    "The customer wants the RMAN recovery catalog database to be highly available so that none of the RMAN database backup jobs are impacted at the time of taking the database backups"
    Hi,
    i think you can achieve HA for the catalog DB. (Rac and Asm should work fine)
    There's no way (afaik) to use TAF with the rman backup. If you have a failure during a backup it simply fails.
    There is no TAF in this situation.
    Hope this helps.
    Regs,
    Drew

Maybe you are looking for

  • Let us redownload for quality

    Hello, my name is Asiago. I am new mac user and an Apple fanboy. I recently have really been adding a lot of content to my itunes library. Yesterday (september 12th 2006) I learned that itunes was releasing higher quality videos which made me really

  • Clearing of Down payment in F110

    Hi Sapient I had posted a down payment to a vendor. In addition to that i had posted the invoice to the same vendor. When i run the F110 to make the payment, I want the functionality to adjust the down payment with the invoice & to pay the balance am

  • Query returning summary for master categories

    Dear all, i am using oracle database 11g r2. i have the following 2 tables, create tabel expenses_heads (exp_head_id number primary key,                                              Main_exp_name varchar2(100) not null,                               

  • HT5362 How to move the banners from the upper right corner to the low right corner of the screen on Mac (Mavericks)?

    How to move the banners from the upper right corner to the low right corner of the screen on Mac (Mavericks)? Sometimes, when I am about to click something in the upper right corner, the banners stand in the way. It is very annoying. However, I still

  • Content in front of footer.

    I want my footer fixed to the bottom of the window.  Which I have successfully done; however, when I scroll down my content goes in front of my footer instead of behind it.  I have arranged the footer on the master page to be in front.  I have arrang