RMAN DUPLICATION(cloning)

Hi,
Please give some metalink id for RMAN cloning (from one host to different host)...
iam searching for the documents but no standard & clear documents ............. please help....
Thank u..

Hi;
We discussed here many times same topic here. Please use search mechanisim;
One of the from search
Rman-Clone db
database cloning from activedatabase
Regard
Helios

Similar Messages

  • RMAN Active Cloning fails with RMAN-06054: missing log file

    Version Details:
    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Scenario :
    Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
    Problem:
    At the end of the cloning the below errors are reported;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274
    RMAN Script used for Active cloning:
    #!/bin/ksh
    . setdb entDBu
    start_dt=`date +%Y%m%d_%H%M`
    job=`basename $0 ".sh"`
    rman  >> ${job}_${start_dt}.log  2>&1 <<eof
    set echo on;
    connect target sys/@DCC&(_O@entDBp1
    connect auxiliary sys/@DCC&(_O@entDBuu
    run {
    allocate channel prmy1 type disk;
    allocate auxiliary channel stby1 type disk;
    duplicate target database
    to entDBu
    from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
    show all;
    exit
    eof
    end_dt=`date +%Y%m%d_%H%M`
    mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
    started: ${start_dt}
    finish: ${end_dt}
    eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread  with sequence   and starting SCN of  while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.

    Sivaprasad S wrote:
    Version Details:
    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Scenario :
    Using RMAN Active cloning to duplicate a RAC database from Production to Development environment.
    Problem:
    At the end of the cloning the below errors are reported;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/14/2013 07:03:43
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 24751 and starting SCN of 89285945274RMAN Script used for Active cloning:
    #!/bin/ksh
    . setdb entDBu
    start_dt=`date +%Y%m%d_%H%M`
    job=`basename $0 ".sh"`
    rman  >> ${job}_${start_dt}.log  2>&1 <<eof
    set echo on;
    connect target sys/@DCC&(_O@entDBp1
    connect auxiliary sys/@DCC&(_O@entDBuu
    run {
    allocate channel prmy1 type disk;
    allocate auxiliary channel stby1 type disk;
    duplicate target database
    to entDBu
    from active database pfile=/app/oracle/product/11.2.0.3/db/dbs/initentDBu.ora;
    show all;
    exit
    eof
    end_dt=`date +%Y%m%d_%H%M`
    mailx -s "DR RMAN Job: $job done" "[email protected]" <<eof2
    started: ${start_dt}
    finish: ${end_dt}
    eof2How to prevent the error of RMAN-06054: media recovery requesting unknown archived log for thread  with sequence   and starting SCN of  while performing the RMAN Active Cloning? I do NOT want to use UNTIL clause.Where UNTIL clause in your script I didn't saw.
    Please try following RMAN script
    DUPLICATE TARGET DATABASE FOR STANDBY
      FROM ACTIVE DATABASE
    SPFILE
       SET "control_files"="/u01/app/oracle/oradata/stbdbcontrol01.ctl"
       SET "db_name"="prmdb"
       SET "db_unique_name"="stbdb"
       SET "db_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
       SET "log_file_name_convert"="/u01/app/oracle/oradata/prmdb","/u01/app/oracle/oradata/stbdb"
       SET "db_recovery_file_dest"="/u01/app/oracle/fra"
       SET "diagnostic_dest"=/u01/app/oracle"
       SET "audit_file_dest"="/u01/app/oracle/admin/stbdb/adump"
    PASSWORD FILE
    NOFILENAMECHECK;
    {code}
    Please change parameters for your environment.
    Regards
    Mahir M. Quluzade                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • RMAN Active Cloning: how to include SPFILE on ASM

    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Storage : ASM Diskgroups
    On RMAN active cloning of databases, how to include the SPFILE to be cloned on the ASM Storage?

    Hello;
    Check out the example here :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupad.htm
    Under "Example 25-4 Duplicating from a File System to ASM (Active)"
    or
    Example 25-5 Duplicating from ASM to ASM (Active)
    Best Regards
    mseberg
    Edited by: mseberg on May 15, 2013 10:34 AM

  • 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

  • Rman active cloning is getting failed

    Hi Team,
    when i am doing rman active cloning it is getting failed
    channel ORA_DISK_1: starting datafile copy
    input datafile file number=00406 name=/u01/oradata/ebstest/a_txn_ind05.dbf
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 02/24/2013 19:38:35
    ORA-17627: ORA-12577: Message 12577 not found; product=RDBMS; facility=ORA
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting datafile copy
    Please help

    user10721329 wrote:
    Hi Hussien,
    Thanks for the valuable reply,
    I have gone through that doc but i am trying to do cloning on the same machine not on the different machine
    My Linux version and database both are 32 bit i am trying to create a duplicate instance on the same 32 machine(side by side)Please see the solution in this link -- http://dbadailytelegraph.blogspot.ca/2009/06/duplicate-target-database-from-active.html
    Thanks,
    Hussein

  • RMAN Active cloning successful, but spfile found to be missing

    Environment:
    O.S Version :     HP-UX B.11.31 U ia64
    Oracle DB Version :     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Database files on : +ASM managed Diskgroups
    RMAN Active cloning command below is used to clone the database from one host "A" to another host "B".
    duplicate target database to testDB from active database nofilenamecheck ; Cloning completed successfully. But when i checked on the spfile existance the spfile found missing.
    SQL> show parameter spfile
    NAME                                 TYPE        VALUE
    spfile                               string      /app/oracle/product/11.2.0.3/db/dbs/spfiletestDB.oraWhat could be the cause for the spfile missing?
    I have been advised below as workaround;
    1. Create spfile or pfile from memory and bounce the db to fix this issue.
    2. RMAN Active clone script specified with the the pfile clause.
    For example.
    duplicate target database to testDB  from active database file=/app/oracle/product/11.2.0.3/db/dbs/inittestDB.ora;  Would appreciate the advise on this.
    Edited by: Sivaprasad S on Jan 31, 2013 5:13 PM

    Hello;
    What could be the cause for the spfile missing?
    This :
    duplicate target database to testDB from active database nofilenamecheckInstead of this :
    duplicate target database to testDB from active database spfile nofilenamecheckSee :
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmdupdb.htm
    Example 23-3
    Please consider closing some of your old questions
    Best Regards
    mseberg

  • Rman duplication fails with RMAN-00600

    Hi All,
    I'm trying to perform a database duplication from a prod server to a non prod one with ORacle 11gR2.
    I'm performing a backup-based duplication without target connection from DEV3 database to DEV1 database. I followed the steps mentionned in the "backup & Recovery Guide" http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmdupdb.htm
    Here are the steps I followed:
    1. I configured my spfile of the auxiliary database like the target one. I also added these lines to change the location of the restores:
    SQL> alter system set log_file_name_convert='/u04/DEV3/rdo','/u04/DEV1/rdo','/u03/DEV3/rdo','/u03/DE V1/rdo','/u02/DEV3/rdo','/u02/DEV1/rdo' scope=spfile;
    SQL> alter system set db_file_name_convert='/u04/DEV3/rdo','/u04/DEV1/rdo','/u03/DEV3/rdo','/u03/DEV1/rdo','/u02/DEV3/rdo','/u02/DEV1/rdo','/u02/DEV3/dbf/DEV3','/u02/DEV1/dbf/DEV1' scope=spfile;
    2. I then shutdown the database, and start it in nomount mode.
    3. I connect to the auxiliary database, and the recovery catalog
    4. I run the following rman duplication command:
    RUN{
    DUPLICATE DATABASE DEV3 to DEV1;
    The restore succeeds but at the end, the recovery ends with the following error:
    channel ORA_AUX_DISK_6: reading from backup piece /RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_138.rman
    channel ORA_AUX_DISK_4: piece handle=/RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_136.rman tag=LVL0_DB_BKP
    channel ORA_AUX_DISK_4: restored backup piece 2
    channel ORA_AUX_DISK_4: restore complete, elapsed time: 02:24:10
    channel ORA_AUX_DISK_6: piece handle=/RMAN/DEV3/DEV3_0_14:27:01-05-31-2011_2_138.rman tag=LVL0_DB_BKP
    channel ORA_AUX_DISK_6: restored backup piece 2
    channel ORA_AUX_DISK_6: restore complete, elapsed time: 02:25:09
    Finished restore at 06/06/11 15:22:58
    contents of Memory Script:
    catalog clone datafilecopy "/u02/DEV1/dbf/DEV1/undotbs01.dbf";
    switch clone datafile 3 to datafilecopy
    "/u02/DEV1/dbf/DEV1/undotbs01.dbf";
    switch clone datafile all;
    executing Memory Script
    cataloged datafile copy
    datafile copy file name=/u02/DEV1/dbf/DEV1/undotbs01.dbf RECID=70 STAMP=753117778
    datafile 3 switched to datafile copy
    input datafile copy RECID=70 STAMP=753117778 file name=/u02/DEV1/dbf/DEV1/undotbs01.dbf
    datafile 1 switched to datafile copy
    input datafile copy RECID=71 STAMP=753117780 file name=/u02/DEV1/dbf/DEV1/system01.dbf
    datafile 2 switched to datafile copy
    input datafile copy RECID=72 STAMP=753117780 file name=/u02/DEV1/dbf/DEV1/sysaux01.dbf
    contents of Memory Script:
    set until scn 7241504550365;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 06/06/11 15:23:15
    using channel ORA_AUX_DISK_1
    using channel ORA_AUX_DISK_2
    using channel ORA_AUX_DISK_3
    using channel ORA_AUX_DISK_4
    using channel ORA_AUX_DISK_5
    using channel ORA_AUX_DISK_6
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00601: fatal error in recovery manager
    RMAN-03012: fatal error during compilation of command
    RMAN-03028: fatal error code for command recover : 600
    RMAN-00600: internal error, arguments [8029] [1] [] [] []
    Can someone please help me resolve this issue???it's quite urgent.
    Thank you,
    Farah

    I am facing same error, did any of you find a resolution yet?
    contents of Memory Script:
    set until scn 7243533883622;
    recover
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 10/12/11 19:33:12
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00601: fatal error in recovery manager
    RMAN-03012: fatal error during compilation of command
    RMAN-03028: fatal error code for command recover : 600
    RMAN-00600: internal error, arguments [8029] [1] [] [] []
    Wed Oct 12 19:33:14 CEST 2011 Remove the lock file
    ERROR: RMAN FAILUR
    I see many kblockd processes, can this be an indication:
    applprod@gvaebsdb3:~ $ ps -ef|grep kblockd
    root 231 211 0 Oct05 ? 00:00:00 [kblockd/0]
    root 232 211 0 Oct05 ? 00:00:00 [kblockd/1]
    root 233 211 0 Oct05 ? 00:00:00 [kblockd/2]
    root 234 211 0 Oct05 ? 00:00:00 [kblockd/3]
    root 235 211 0 Oct05 ? 00:00:00 [kblockd/4]
    root 236 211 0 Oct05 ? 00:00:00 [kblockd/5]
    root 237 211 0 Oct05 ? 00:00:00 [kblockd/6]
    root 238 211 0 Oct05 ? 00:00:00 [kblockd/7]
    root 239 211 0 Oct05 ? 00:00:00 [kblockd/8]
    root 240 211 0 Oct05 ? 00:00:00 [kblockd/9]
    root 241 211 0 Oct05 ? 00:00:00 [kblockd/10]
    root 242 211 0 Oct05 ? 00:00:00 [kblockd/11]
    root 243 211 0 Oct05 ? 00:00:00 [kblockd/12]
    root 244 211 0 Oct05 ? 00:00:00 [kblockd/13]
    root 245 211 0 Oct05 ? 00:00:00 [kblockd/14]
    root 246 211 0 Oct05 ? 00:00:00 [kblockd/15]
    Thanks,
    Horia

  • Rman remote cloning...

    I want do a Rman remote cloning..so i need to have full backup copy of the database on the local remote system with all archive logs too....so can u please tell me how can i list the rman to copy the list of files to be cloned on the remote system...and also how can we use the dd command on the network system???

    Moorthy wrote:
    my question is how do i know which database raman backup to be copied ?? is there any command to check on rman....also which command i can use to copy those files across the network.?command pleaseIf you use Oracle 11g, you can use Active database clone feature and NOT copy the backup files through the network. I've video tutorial on this feature
    http://kamranagayev.wordpress.com/2010/08/24/rman-cloning-database-without-connecting-to-target-db-and-recovery-catalog-11gr2/
    If you use Oracle 10g, then check my following video tutorial on database clone with basic steps:
    http://kamranagayev.wordpress.com/2010/06/25/rman-video-tutorial-series-creating-duplicate-and-standby-database-using-rman/

  • RMAN duplication issue

    Dba's
    Previously we used the following scripts to take the RMAN duplication when we have the same mount in both the servers.
    run {
    allocate auxiliary channel c1 type disk;
    allocate auxiliary channel c2 type disk;
    duplicate target database to SIDB;
    But, we have added two new mount points to our production servers and add new datafiles over there, but we didn't add any mount point to our auxiliary server. In this case what will be the script to duplicate the database.
    Regards
    Rana

    Hi,
    Here is the sample script
    connect catalog xxx/xxxxx@xxxxxxx
    connect target /
    connect auxiliary sys/xxxxx@xxxxxxx
    run{
    allocate channel d1 device type disk;
    allocate channel d2 device type disk;
    allocate auxiliary channel a1 device type disk;
    allocate auxiliary channel a2 device type disk;
    set until sequence 96280 thread 1;          -- in case if you want to duplication until specific seq.
    set newname for datafile 1 to '/oracle/dbs1/testdb/user02.dbf';
    set newname for datafile 2 to '/oracle/dbs2/testdb/user03.dbf';
    set newname for datafile 10 to '/oracle/dbs8/testdb/tools.dbf';
    duplicate target database to testdb
    release channel d1;
    release channel d2;
    exit;
    Hope this helps.
    Regards,
    Satishbabu Gunukula
    http://oracleracexpert.blogspot.com [How to validate RMAN backup|http://oracleracexpert.blogspot.com/2009/08/how-to-validate-rman-backup.html]

  • RMAN database cloning

    1)While cloning using RMAN when we say " duplicaicate target database to testdb" will RMAN apply archives which are not archived (uning "backup database archivelog all") or not.
    2) Why do we need to connect to the target (rman target=prod@toprod auxillary=/ catalog=cat@tocat ( i.e source db... this db we are cloning form).
    we have the backup of the backup's in a say NFS mout and we have info about backup in the catalog?

    Hello;
    Dan's version question is important because Oracle 11 has many additional duplication options.
    That's said if you copy the archive to the remote server it will use them in both Oracle 10 and 11.
    Here's my Oracle 11 - Duplicating a Database to a Remote Host with the Same Directory Structure short notes :
    http://www.visi.com/~mseberg/rman/active_database_duplicating.html
    and with different directory structure :
    http://www.visi.com/~mseberg/rman/diff_database_duplicating.html
    Best Regards
    mseberg

  • RMAN-05517:  cloning a database issue

    hi,
    I am using oracle 10.2.0 on windows xp and try cloning database using RMAN duplicate command on the same system. my original database is orcl and i am cloning it to clone(database name).
    and got the error
    RMAN> run
    2> {
    3> allocate auxiliary channel aux1 device type disk;
    4>
    5>        SET NEWNAME FOR DATAFILE 1 TO 'D:\ORACLE\ORADATA\clone\SYSTEM01.DBF';
    6>        SET NEWNAME FOR DATAFILE 2 TO 'D:\ORACLE\ORADATA\clone\UNDOTBS01.DBF';
    7>      SET NEWNAME FOR DATAFILE 3 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\SYSAUX01.DBF';
    8>      SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF';
    9>
    10> duplicate target database to 'clone';
    11> }
    allocated channel: aux1
    channel aux1: sid=156 devtype=DISK
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting Duplicate Db at 03-JUL-09
    released channel: aux1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/03/2009 16:49:29
    RMAN-05501: aborting duplication of target database
    RMAN-05517: temporary file D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBF conflicts with file used by target databasei know this my original file but i can't find out SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF'; like command for temporary files.
    i tries like
    RMAN> run
    2> {
    3> allocate auxiliary channel aux1 device type disk;
    4>
    5>        SET NEWNAME FOR DATAFILE 1 TO 'D:\ORACLE\ORADATA\clone\SYSTEM01.DBF';
    6>        SET NEWNAME FOR DATAFILE 2 TO 'D:\ORACLE\ORADATA\clone\UNDOTBS01.DBF';
    7>      SET NEWNAME FOR DATAFILE 3 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\SYSAUX01.DBF';
    8>      SET NEWNAME FOR DATAFILE 4 TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\USERS01.DBF';
    9>      SET NEWNAME FOR DATAFILE  'D:\oracle\product\10.2.0\oradata\orcl\TEMP01.DBF' TO 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\clone\TEMP01.DBF';
    10> duplicate target database to 'clone';
    11> }
    allocated channel: aux1
    channel aux1: sid=156 devtype=DISK
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    released channel: aux1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 07/03/2009 16:35:13
    RMAN-20201: datafile not found in the recovery catalog
    RMAN-06010: error while looking up datafile: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBFbut no use. on googled about it i can't find any thing.
    Thanks
    umesh

    Umesh Sharma wrote:
    hi,
    googled about it i can't find any thing.one of your first steps when looking for an answer shoud be visiting tahiti.oracle.com.
    Working with tempfiles when using rman duplicate has been mentioning here
    Thanksok
    umesh

  • RMAN - Duplication Date ?

    Hello there !, I've got a database that gets duplicated everyday by RMAN, everything its ok but I need to know the duplication date using SQL. There's any table that show this ?
    Thanks

    ThDn wrote:
    Hello there !, I've got a database that gets duplicated everyday by RMAN, everything its ok but I need to know the duplication date using SQL. There's any table that show this ?Yes. You can use gv$rman_output of target database (i.e not of cloning database)
    e.g
    ### Using Source Database (i.e target database)
    SQL > set pagesize 0
    SQL > select OUTPUT from GV$RMAN_OUTPUT order by RMAN_STATUS_RECID
    contents of Memory Script:
       set until scn  5390215;
       recover
       clone database
        delete archivelog
    executing Memory Script
    ###  Get SCN and convert to DATE
    SQL > select to_char(scn_to_timestamp(5390215),'dd-mm-yyyy hh24:mi:ss') DATE_USED_ON_CLONE from dual;
    DATE_USED_ON_CLONE
    18-10-2012 13:55:04
    Handle:     ThDn
    Status Level:     Newbie (55)
    Registered:     Jan 18, 2010
    Total Posts:     138
    Total Questions:     49 (42 unresolved) :(Please, consider close all thread (marking as answered) when you get your answer. Keep the forum clean the community thanks you.
    HTH,
    Levi Pereira
    Edited by: Levi Pereira on Oct 18, 2012 3:33 PM

  • Use db control after rman duplication

    One might wish to access Oracle Enterprise Mananger database
    control after duplicating a database with
    rman (e.g. with "DUPLICATE TARGET DATABASE TO mydb FROM ACTIVE
    DATABASE NOFILENAMECHECK"). Typically, we will find ourselves on
    a new maching hosting the duplicate db.
    Obviously the cloned repository of database control is still
    configured for the source host, and, as per Doc ID 293678.1, if
    the Hostname, Domainname, or Listener configuration changes after
    an installation, DB Control needs to be reconfigured:
    "<ORACLE_HOME>/bin/emca -config dbcontrol db -repos recreate"
    Thus, all user-defined events and job definitions will be
    lost. Are there any ways to avoid this?
    Regards, Tom

    Unfortunately there's no way to avoid recreation - maybe an enhancement request for the future:
    After Creating A Database Using the Rman Duplicate Command There is no DBConsole [ID 308853.1]
    Werner

  • RAC database rman duplication question

    When I refresh a RAC test system from production, I use RMAN duplicate.  My overall steps are:
    backup prod using rman
    on test system:
    in the init.ora/spfile change parameter cluster_database=false
    shutdown test db
    startup nomount
    use rman duplicate to restore/recover the datafiles
    alter database open resetlogs
    open the database
    shutdown the db
    in the init.ora/spfile set cluster_database=true
    startup the db with srvctl and it starts up the 5 node RAC - srvctl start database -d TEST
    My colleague runs RCONFIG after the database restore and after reading through the Oracle docs, I am not sure whether that is required or not.  I thought RCONFIG was to convert a single instance to RAC --which technically is what we are doing....but I thought this was used only when creating the TEST RAC database for the first time, and after everything was configured, you could refresh without running RCONFIG.   Anybody have any recommendations/knowledge on this I would really appreciate it.  My colleague does not want to run RCONFIG if its not required, but if I am missing some finer point in my method I don't want to say you don't need to run RCONFIG. But I will say, I have cloned RAC for years without RCONFIG.    Thanks everyone.
    -Lori

    As you said, rconfig is the tool for converting a single instance database to cluster database.
    Rconfig creates the configuration for a cluster database, updates the spfile with the necessary changes, adds new redo threads and undo tablespaces for the additional instances.
    When you duplicate a database that already has these, it is not necessary to run rconfig.

  • RMAN-06054: media recovery requesting unknown archived log

    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/16/2013 09:03:43
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 34751 and starting SCN of 8923445274I am receiving the error above on performing RMAN Active cloning, please advise how to resolve this

    In addition to what was said, I can think of two other possibilities for RMAN-6054 during duplicate: bugs such as 12625205 (also see 8554110); duplicate was run earlier without removing the old restored files (Note 1549172.1). In the first case, just specify SCN or find the actual log file and speficy log sequence, instead of time. In the latter case, remove the old restored files or speficy noresume.
    Edited by: user11989003 on May 29, 2013 10:17 AM

Maybe you are looking for

  • HP Belgium will not do a Regional Reset of my HP Photosmart

    The HP Techical Support Line in Belgium refuses to do a Regional Reset for my printer. I have an HP Photosmart C4480 from Singapore.  I moved to Belgium this year.  I knew that the ink cartridges were not the same and that printers had regional setti

  • HT3669 Update has broken connection to HP OfficeJet Pro 8000.

    After applying this update, I can no longer see or add my HP OfficeJet 8000 to my iMac 27" eith via Bonjour nor USB connected.  Does anyone know how to remove this single update?  I did verify my printers were working after my initial upgrafe to 10.8

  • Disapearing pictures - case sensitive?

    Hi all, I create my website using iweb on my mac mini at home, then upload it from my mac at work to a university hosted webpage. The last time I updated, I noticed that some of my pictures were missing. After a bit of fiddling, I found that the miss

  • No image when embedding a video/movie into my PDF file,just a black screen?

    I cannot embed videos with an image on my computer into my Acrobat Pro 8 file. I get only a black screen, which I must click on to play the video. How do I import the visual image along with an arrow for playing or a navigation bar at the bottom for

  • Iviews in Performance Management

    Hi , I am trying to understand the difference between the below options available in the Manager Documents tab in MSS view. 1. Direct Report to Appraise 2. Employee to Appraise 3. Direct Reports 4. Direct Reports to Leader. Help appreciated as the re