Why do we use RMAN DUPLICATE for cloning DB on a different server ?

DB version : 11.2.0.2, 10.2.0.5
I want to create a clone of my Production DB in a test server. In the past, I have taken hot backup of this production DB and restored and recovered it in a different server using plain RMAN commands.
After restoring the control file , mounting the DB and cataloging the backup pieces in the test server , I run
run {
restore database ;
recover database until time <time> ;
alter database open resetlogs ;
}In OTN , i came across long running discussions like
RMAN duplicate database
where they are trying to restore and recover using DUPLICATE command as shown below.
run
duplicate target database to RBS
nofilenamecheck
pfile=/tmp/aux.ora;
Can't they just use plain RMAN restore and recover commands as I did ? What advantage does RMAN DUPLICATE have over the plain commands ?

RMAN DUPLICATE is designed to give to clone database a new database name and new database identifier:
>
If you copy a database with operating system utilities instead of the DUPLICATE command, then the DBID of the copied database remains the same as the original database. To register the copy database in the same recovery catalog with the original, you must change the DBID with the DBNEWID utility (see Oracle Database Utilities). In contrast, the DUPLICATE command automatically assigns the duplicate database a different DBID so that it can be registered in the same recovery catalog as the source database.

Similar Messages

  • RMAN DUPLICATE FOR STANDBY FROM ACTIVE DATABASE fails

    Hello
    I'm trying to use RMAN DUPLICATE to create a standby database using Oracle 11.2.0.3 with PSU 6 on HP-UX.
    Primary is 2 node RAC. Standby is also 2 node RAC.
    Standby database instance is started in nomount mode.
    I use:
    duplicate target database for standby from active database
      spfile
      <some spfile parameters>
    with PFILE I get:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/01/2013 12:41:13
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of sql command on clone_default channel at 10/01/2013 12:41:13
    RMAN-11003: failure during parse/execution of SQL statement: alter system set spfile= '/opt/oracle/db11203/dbs/spfileCU1.ora'
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-01565: error in identifying file '/opt/oracle/db11203/dbs/spfileCU1.ora'
    ORA-27037: unable to obtain file status
    HPUX-ia64 Error: 2: No such file or directory
    With SPFILE I get;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/01/2013 13:06:34
    RMAN-05501: aborting duplication of target database
    RMAN-05537: DUPLICATE without TARGET connection when auxiliary instance is started with spfile cannot use SPFILE clause
    But I do have RMAN connexion to target database.
    Thanks for your help.

    Here is the output beginning of the script which clearly shows that I'm always connected to target database:
    Recovery Manager: Release 11.2.0.3.0 - Production on Tue Oct 1 13:05:47 2013
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: CU (DBID=1143962925)
    connected to auxiliary database: CU (not mounted)
    RMAN> set echo on
    2> run
    3> {
    4>  configure device type disk parallelism 10;
    5>   allocate channel pr1 type disk;
    6>   allocate channel pr2 type disk;
    7>   allocate channel pr3 type disk;
    8>   allocate channel pr4 type disk;
    9>   allocate channel pr5 type disk;
    10>   allocate channel pr6 type disk;
    11>   allocate channel pr7 type disk;
    12>   allocate channel pr8 type disk;
    13>   allocate channel pr9 type disk;
    14>   allocate channel pr10 type disk;
    15>   allocate auxiliary channel st1 type disk;
    16>   allocate auxiliary channel st2 type disk;
    17>   allocate auxiliary channel st3 type disk;
    18>   allocate auxiliary channel st4 type disk;
    19>   allocate auxiliary channel st5 type disk;
    20>   allocate auxiliary channel st6 type disk;
    21>   allocate auxiliary channel st7 type disk;
    22>   allocate auxiliary channel st8 type disk;
    23>   allocate auxiliary channel st9 type disk;
    24>   allocate auxiliary channel st10 type disk;
    25>   duplicate target database for standby from active database
    26>   spfile

  • Database refresh without using RMAN duplicate

    Hi All,
    I am planning to refresh my test instance to a PIT using RMAN backups from PROD. I would like to know the process without connecting to PROD database and without using RMAN duplicate command.
    Thanks.

    imran khan wrote:
    Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
    >Can you please show the demo first then we will discuss on it more.. what if the folk wants to refresh it ten times then we have to change the database name ten times using NID?
    1) You use nid only to change the dbid.
    2) I have done this type of cloning much more than 50 times.
    3) As Iordan Iotzov pointed out, in 11gR2 you can run DUPLICATE database without being connected to the PROD
    Here is a sample code of how to do it assuming both file system are the same:
    # -- RMAN Restore to another server
    rman <<EOF2
    CONNECT TARGET /;
    STARTUP NOMOUNT
    SET DBID 987654321;
    CONNECT CATALOG rman/rman@rcvcat
    RUN {
        SET UNTIL SEQUENCE=5678 THREAD=1;
        ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
        RESTORE CONTROLFILE;
    ALTER DATABASE MOUNT;
    RUN
      SET UNTIL SEQUENCE=5678 THREAD=1;
      ALLOCATE CHANNEL ch0 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
      ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
      RESTORE DATABASE;
      RECOVER DATABASE;
    EXIT;
    EOF2:p

  • Why do we use reverse proxy for Oracle RAC Cluster setup

    Hello All,
                 I got this question lately.. "why do we use reverse proxy for Oracle RAC Cluster setup". I know we use the reverse proxy at Middleware level for multiple security reasons.
    Thanks..

    "why do we use reverse proxy for Oracle RAC Cluster setup".
    I wouldn't. I wouldn't use a proxy of any sort for the Cluster Interconnect for sure.
    Cheers,
    Brian

  • Why can't use thunderbolt drive for Cloud files folder?

    why can't I use thunderbolt drive for Cloud files folder?  It's too big for my limited laptop storage.
    Thanks

    Because sync requires to use persistent storage locations. This is out of Adobe's control. It is entirely up to the hardware vendor how he anchors the drive/ volume and integrates it into the file and folder structure.
    Mylenium

  • Rman duplicate database from test to production different host

    Dear All,
    usually i do the rman duplicate (clone) database in different host using same backup location as the source database in target database.
    now i am in situation to clone the database with different backup location
    source database location:/u01/db/backup
    target database location: /tmp_dbbkup
    is it possible to create the duplicate database with the command
    rman target sys@UAT1 auxiliary /
    RMAN>CATALOG BACKUPPIECE '/tmp_dbbkup/UAT_2670198561_44_20110101;
    RMAN>duplicate target database to DEV;
    is it ok?
    we dont have privilege/rights to create a folder/directory in production server.
    what i have to do now?
    thanks in advance.
    my oracle version: 10.2.0.4.0
    operating system: AIX

    tychos wrote:
    Hi rajeysh,
    what i have to do now?You could make a sym link on the dev server
    So /u01/db/backup on the dev server points to /tmp_dbbkup
    Regards,
    Tychothank for your reply tychos,
    $ ln -s /u01/db/backup/OUAT_2670198561_44_20110101 /oracle/db/backup/UAT_2670198561_44_20110101
    $ ls -ltr
    total 1475968
    -rw-r----- 1 oracle dba 307654656 Jan 7 10:03 db_DEV_20110107_4em1gm3e_1_1_L0
    -rw-r----- 1 oracle dba 448030720 Jan 7 10:03 db_DEV_20110107_4dm1gm3e_1_1_L0
    lrwxrwxrwx 1 oracle dba 45 Jan 11 20:53 UAT_2670198561_44_20110101 -> /u01/db/backup/OUAT_2670198561_44_20110101
    $ ln -s /u01/db/backup/AOUAT_2670198561_46_20110101 /oracle/db/backup/OUAT_2670198561_46_20110101
    $ ln -s /u01/db/backup/OUAT_2670198561_47_20110101 /oracle/db/backup/OUAT_2670198561_47_20110101
    $ ln -s /u01/db/backup/OUAT_2670198561_45_20110101 /oracle/db/backup/OUAT_2670198561_45_20110101
    $
    is it ok
    will the duplicate gets the information from /oracle/db/backup
    if i did anything wrong , please correct me?

  • Cloning DB on a different server from RMAN Tape backup

    RDBMS version           : 11.2.0.2 on Solaris 10
    Media Management Layer : Netbackup v7
    I have done only backups to Tape. I have never done restore,recovery from Tape.
    We have a production DB named NEHPROD running on server qualmh214. Every Monday morning an RMAN Full backup for NEHPROD is taken to Tape.
    Production server : qualmh214        DB Name:NEHPROD
    run
    ALLOCATE CHANNEL c1 TYPE 'SBT_TAPE';
    SEND 'NB_ORA_CLIENT=qualmh214,NB_ORA_POLICY=qualmh214_rman,NB_ORA_SERV=qualmh238,NB_ORA_SCHED=Daily';
    backup database   FORMAT 'NEHPROD_%d_%U_%t.rbk' tag='NEHPROD_full';
    }I need to create a Test DB in a different server (qualmh199) by restoring directly from NEHPROD's Full backup in tape .
    From qualmh199, how can I connect to the Tape Media server ?
    Even If I do connect to the Tape media server, how can i get access to tape backups of another DB? In the RMAN run block you can't specify a DB name. Right?
    Even if I get access to another DB's backup , How can i specify which Date's Full backup I need to use to restore ?

    From qualmh199, how can I connect to the Tape Media server ?You have to allocate channels to tape & need to mention NB parameters as example below.
    in RMAN script
    ALLOCATE CHANNEL CH1 DEVICE TYPE SBT_TAPE PARMS 'SBT_LIBRARY=/usr/openv/netbackup/bin/libobk.so64';
    SEND 'NB_ORA_SERV=<server.com>, NB_ORA_CLIENT=<target.server>';
    Even If I do connect to the Tape media server, how can i get access to tape backups of another DB? In the RMAN run block you can't specify a DB name. Right?If the libraries are installed and you able to perform, you can go for either duplicate database or simple RMAN restore. You can mention other DB names also
    Ex: duplicate target database to 'test';
    Even if I get access to another DB's backup , How can i specify which Date's Full backup I need to use to restore ?You can mention TAG's if you are using RMAN restore.

  • Use external disk for cloning

    Hi all,
    Is it possible to clone the EBS r12 using the USB external hard disk?
    Due to insufficient disk space to do the preclone process, so I want to mount a external hard disk (thru USB) to do this preclone in the PROD server (both apps and db tier). After finish the preclone process on the PROD server, just mount this external hard disk to the target server and copy those data from PROD server that done with the proclone process.
    Is it possible?
    B. Rgds,
    Sunny

    Is it possible to clone the EBS r12 using the USB external hard disk?It is possible as long as you would be satisfied with the performance.
    Due to insufficient disk space to do the preclone process, The preclone process does not require that amount of storage, so this should not be an issue.
    so I want to mount a external hard disk (thru USB) to do this preclone in the PROD server (both apps and db tier). After finish the preclone process on the PROD server, just mount this external hard disk to the target server and copy those data from PROD server that done with the proclone process.
    Is it possible?Still not sure why you want to use an external drive to run preclone. If you mean to say it is just to copy the files from your production instance to this external drive and mount this disk to your target servers, then it is possible -- Please note that the performance would not be an expected when comparing this to an internal disk drive.
    Thanks,
    Hussein

  • Why does people use JSP Tag for their JSP page? (Urgent)

    I don't know what benifit if I am using JSP Tag.
    If anyone knows, pls give me an idea and the advantage of using JSP Tag in JSP Page!
    Thanks in advance!

    You have to read a little about JSP, JSP stands for JavaServer Pages, you can use jsp tags and you can use java code. If you dont want to use jsp tags then you should just write html file, if you just want to use java, then write java class or a servlet.
    The need for jsp arised because people were inserting html code inside a servlet class..a big no no..and a headache. JSP separate model from the view...read a little about MVC-2 model view controller pattern.
    Also read some tutorial on this website...good luck
    K

  • Why Cant I use Microsoft money for windows 8

    I just bought windows 8 and I cant use Microsoft Money on this ??? Please help and tell me what I can now use with windows 8. I loved money and have been using it for yrs

    Hello,
    I'd ask in the Microsoft Money Forum at
    http://social.microsoft.com/Forums/en/money/threads
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Ideas for cloning a 10.4 Mail Server on a schedule

    Hi,
    We'd like to clone our mail servers daily so we can restore from the clone if there is a failure. Both CCClone and Super Duper will clone on a schedule but we keep getting errors with these products. I assume it's because the services are running while the machine is trying to clone. We've tried cloning to both and Ext HD and internal additional HD.
    Hardware used G4's G5's & Xserves. All are running OS 10.4.9
    Any ideas how we could do this successfully?
    Thanks, MJ

    I believe there is something other than running-services at play where your cloning errors are concerned. I have successfully used SuperDuper! to clone both my XServe's boot drive and my RAID drives for quite sometime. On several occasions, I have restored my boot drive from a clone with no trouble.
    I would contact the SuperDuper! developer about the errors you are getting. I have found their support staff to be very responsive.
    In my humble opinion, restoring a server's boot drive from Retrospect would be a near impossible task for an average human. So, based on advice from UptimeJeff (forum member), I use SuperDuper! and two external hard-drives to make my boot drive backups. I make archival clones every couple of months for storage, and then run a regular clone backup with SuperDuper every night (swapping out the back-up drive ever week. That way, I've always got an off-site recent clone and archival clone and an on-site recent clone and archival clone.
    I also have my mail store located on a RAID (not boot) drive, and I backup that drive using the same recent clone and archive clone approach shared above.
    As Pterobyte mentions, there is no reliable way of cloning mail services, so I use mailbfr to backup the mail stores and settings every night. It's free (donations accepted), and very easy to install and use.

  • Best practice to use Time capsule for back-up of 3 different products (MBP 15 OSX lion, MBP 13 OSX lion and MBA 13 OSX mountain lion)?. Only the MBP15 is back-up regularly.

    When I want to save data of the MBA13 on mountain lion (wireless) with time capsule, hois there any best practice to perform?
    After that, assuming that data are back-up, can we easily differentiate data in time capsule belonging to MBP15/13 and MBA13?

    Unfortunately, Apple left off the Ethernet port....the most important port in networking....on the MBA, so your first backup of the entire Mac will need to be done using wireless.
    That may take a day or two unless your MBA has a Thunderbolt port on it in which case you could add a Thunderbolt to Ethernet adapter and connect the MBA to the Time Capsule for the first backup using an Ethernet cable.  It will probably only take 3-4 hours or less doing it this way.
    Once you have the first complete backup done, other subsequent backups can be done using wireless since they will ony take a few minutes, on average.
    Both Macs will backup to the Time Capsule using Time Machine automatically. Backups will be kept completely separate, so one Mac will normally only be able to "see" its own backups.

  • How do I use home sharing for music and apps from different devices that already have Apple IDs?  We have music from CDs and iTunes.

    We have a iPhone 3G used as an touch, a 4S and 2 5s that I would like to share the music and possibly the pictures but i dont know how to set it up since we all have our own Apple IDs.  Please help.

    Do you have a computer. You can't share music or apps from one mobile device to another. To share photos you need to use photo stream shared albums.

  • HT1430 Ipurchased a iphone 4s 8gb in jakarta. it was able to recognise only 2 network providers sim card (mentari & xl).it colud not recognise any other service provider sim cards. How can I use this GSM phone across other countries having different servi

    I purchsed an apple iphone 4s(8gb) GSM phone in jakarta from authorised apple store on 22/3/2014.The phone could recognise only 2 network service providers out of many that are available .Despite all efforts (approximately 6 hours) to make the phone recognise other sim cards,nothing could be done. The  reseller finally begged excuse and said that this phone was meant for use only in indonesia with only 2 service provide(xl & mentari).& with no other service providers at all. That sounds weird to me. At the end of the day, the reseller finally cancelled my transaction and i had to return back home sad &  empty  handed.
    Apple, do u have  any answer to this issue with your i phone 4s 8gb in Indonesia?
    Shakir Ali

    Hi there Shakir Ali,
    You may find the information in the articles below helpful.
    iPhone and iPad: Using cellular networks while in another country
    http://support.apple.com/kb/ht1807
    iPhone: About unlocking
    http://support.apple.com/kb/ht5014
    -Griff W. 

  • Tcode for comparing code on two different server

    Is there any tcode available to compare code of same program but on different server

    Hi Yogesh and Praveen,
    I believe the TCODE is SE39 to compare a same program in two different servers.
    SM39 - is job analysis.
    Thanks
    William Wilstroth
    Edited by: william wilstroth on Dec 31, 2007 3:07 PM

Maybe you are looking for

  • Search stopped working in AIR

    Hello, It's me again. Sorry, but I am still poking around with RH 8 and AIR and trying to learn everything. I just inserted a second pdf into my project and installed the AIR output. However, the search is no longer working (was working before this p

  • Fax solution

    Hi, We are trying to send faxes from our Forte application. The problem with using Microsoft fax is that we cannot find a way to transfer information from our Forte Application to the Microsoft fax program. Can anyone have suggestions as to how we ca

  • Corsair Value Select?

    OK i have read countless forum posts about this. And how it does not work. I purchased mine about 25 days ago. and randomly its has shut down. About probably 6 times total. But when i run memtest and AHT memory seems fine. should I still return it. I

  • Need help for button actions

    Hi, can someone help me please? I like to put a invisable button over a picture (movie) with two actions. 1. rollover will show a title, 2. release will get new URL. I succeed in one or the other action but not on both of them combined. What can I do

  • ITunes Library in disarray after update!

    Okay, so I've noticed that while more than a few of us are having problems with iTunes after the new OS/iTunes updates, no one has really been having my issue. It seems that my iTunes library across the board (Music, Movies, TV shows, etc.) has lost