RMAN cloning

Hi All,
I need to create a database clone using RMAN but the name of the clone database has to be different from that of the Source database.
Can I use the same controlfile as the one that was backedup by the RMAN during
backup database plus archivelog;I guess no, since this controlfile will have the same db name as that of the source database?
Do I have to recreate the controlfile by changing the database name?
Regards
Sphinx

$phinx19 wrote:
Hi All,
I need to create a database clone using RMAN but the name of the clone database has to be different from that of the Source database.
Can I use the same controlfile as the one that was backedup by the RMAN during
backup database plus archivelog;I guess no, since this controlfile will have the same db name as that of the source database?
Do I have to recreate the controlfile by changing the database name?
Regards
SphinxWhat is the version you are using?
If you prefer RMAN DUPLICATE then you can give different name other than source. If you prefer only RMAN RESTORE then you can change database name either by "DBNEWID" or recreate control file after the restore.

Similar Messages

  • RMAN Cloning Hangs

    Hi, in RMAN cloning when i tried to execute the below script
    run{
    2> allocate auxiliary channel aux1 device type disk;
    3> allocate auxiliary channel aux2 device type disk;
    4> allocate auxiliary channel aux3 device type disk;
    5> duplicate target database to auxclone;
    6> }
    It hangs at the below point
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    after a long time i got the following error
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/14/2010 18:34:18
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested cancel of current operation
    Any suggestions plsss...........
    Regards
    Balaji
    Edited by: user13254016 on Jun 20, 2010 12:08 PM

    user13254016 wrote:
    Hi, in RMAN cloning when i tried to execute the below script
    run{
    2> allocate auxiliary channel aux1 device type disk;
    3> allocate auxiliary channel aux2 device type disk;
    4> allocate auxiliary channel aux3 device type disk;
    5> duplicate target database to auxclone;
    6> }
    It hangs at the below point
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    after a long time i got the following error
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/14/2010 18:34:18
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested cancel of current operation
    Any suggestions plsss...........
    Regards
    Balaji
    Edited by: user13254016 on Jun 20, 2010 12:08 PMhave you paused in between the process of rman cloning?
    RMAN-06136: ORACLE error from auxiliary database: ORA-01013: user requested cancel of current operation
    then only you will get the above error. startup in nomount and then execute the script. of duplicate.

  • RMAN Cloning Sun to Linux?

    Hi All,
    Can I do a 10g RMAN cloning from Sun Solaris SPARC to Linux 4/5 ?
    If it possible please let me know the process as well.
    Thanks

    http://www.oracle-base.com/articles/10g/RMANEnhancements10g.php#cross_platform_tablespace_conversion
    How To Use RMAN CONVERT DATABASE for Cross Platform Migration - Note:413586.1
    10g : Transportable Tablespaces Across Different Platforms - Note:243304.1

  • E-business Suite RMAN cloning without connecting source

    Hi,
    I've RMAN backup with catalog and nocatalog. I want to use my nocatalog RMAN backup to clone e-business suite R12/11i Application without connecting source.
    Please advice/sugegst any doc.
    thanks

    Hi;
    What is your EBS and OS?
    Please check below notes which cover RMAN cloninig steps:
    Cloning Oracle Applications Release 12 with Rapid Clone [ID 406982.1]
    Cloning Oracle Applications Release 11i with Rapid Clone [ID 230672.1]
    FAQ: Cloning Oracle Applications Release 11i http://ID 216664.1
    Also check below thread:
    Clone -with rman
    Re: backup procedure using RMAN for 11i Instance
    Hope it answer you
    Regard
    Helios

  • RMAN cloning from RAC to Non-RAC

    Hi Gurus,
    I had successfully cloned my DB from RAC to Non-RAC environment via RMAN. Below was the configuration
    RAC
    - 2 nodes
    - 11gR2 (Compatible 11.0.1.6 as per Application Requirement)
    - ASM (2 diskgroups DATA and FRA)
    - OS RHEL 6.3
    Non - RAC
    - 1 node
    - Stand alone11gR2 (Compatible 11.0.1.6 as per Application Requirement)
    - ASM (2 diskgroups DATA and FRA)
    - OS RHEL 6.3
    My approach was to clone DB and then change SID with nid utility. My understanding was that nid utility will also replace ASM file paths from CRAMPRD to CRAMSIT but that didnt happen.
    So issue is when I am checking my file paths on CRAMSIT it still refelect CRAMPRD eg - +DATA1/CRAMPRD. Is there any way to rename this directory paths in ASM so that it should reflect my SID.
    Regards,
    Nikhil Mehta.

    No, NID wouldn't change the ASM paths.
    I presume that you did set the ORACLE_SID to CRAMSIT on the non-RAC server before the restore.
    What you should have done is to set DB_UNIQUE_NAME='CRAMSIT'   (even with DB_NAME='CRAMPRD') on the non-RAC server before the restore.  Oracle would have used the DB_UNIQUE_NAME to set the ASM PAth  (note that during the restore it would have shown "restoring to +DATA1/CRAMPRD" but would have actually been restoring to "+DATA1/CRAMSIT").
    You will now have to use Oracle Support Note
      How to rename/move a datafile in the same ASM diskgroup [ID 564993.1]
    to rename the paths in ASM.
    Hemant K Chitale

  • Rman cloning rac+asm_cold backup

    Hi
    i have a RAC db v11.2 ,which uses asm and backed up using rman (cold backup, back'd up to asm diskgroup).
    is there any document on how to clone this db on the same cluster or remote cluster?
    if I clone on the same cluster then I guess I need to give it a new name too...
    can cloning change db characterset as well?
    Edited by: user9198889 on Jan 6, 2011 8:49 AM

    Hopes the below documents will help,
    Need Document/Steps for Cloning RAC 11g.
    http://download.oracle.com/docs/cd/E14072_01/rac.112/e10718/clonerac.htm
    http://blogs.oracle.com/AlejandroVargas/gems/RMANDUPDBPRACTICE.pdf
    Thanks

  • RMAN Cloning - Active Duplication failure

    Platform : HP-UX B.11.31 U ia64
    Oracle Version: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    connected to auxiliary database (not started)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/07/2012 09:35:41
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-01078: failure in processing system parameters
    ORA-00119: invalid specification for system parameter REMOTE_LISTENER
    ORA-00132: syntax error or unresolved network name 'LISTENERS_SALES_DB'
    Any idea on how to resolve this error / what causes this error much appreciated.

    I am facing issue on active database duplication and has below issue. Can any one help me on this?
    RMAN> connect target sys@Pa305
    connected to target database: PA305 (DBID=2787277616)
    RMAN> connect auxiliary sys@Pb305
    connected to auxiliary database: PB305 (not mounted)
    RMAN> DUPLICATE TARGET DATABASE
    TO 'PB305'
    FROM ACTIVE DATABASE
    2> 3> 4> ;
    Starting Duplicate Db at 31-JUL-2012 17:20:07
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=2838 instance=PB3051 device type=DISK
    contents of Memory Script:
    sql clone "alter system set control_files =
    ''+DG_075_DATA01/PB305/controlfile/current.270.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.286.790104009'' comment=
    ''Set by RMAN'' scope=spfile";
    sql clone "alter system set db_name =
    ''PA305'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
    sql clone "alter system set db_unique_name =
    ''PB305'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
    shutdown clone immediate;
    startup clone force nomount
    backup as copy current controlfile auxiliary format '+DG_075_DATA01/PB305/controlfile/current.269.790104009';
    restore clone controlfile to '+DG_075_FRA01/PB305/controlfile/current.288.790104009' from
    '+DG_075_DATA01/PB305/controlfile/current.269.790104009';
    sql clone "alter system set control_files =
    ''+DG_075_DATA01/PB305/controlfile/current.269.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.288.790104009'' comment=
    ''Set by RMAN'' scope=spfile";
    shutdown clone immediate;
    startup clone nomount;
    alter clone database mount;
    executing Memory Script
    sql statement: alter system set control_files = ''+DG_075_DATA01/PB305/controlfile/current.270.790104009'', ''+DG_075_FRA01/PB305/controlfile/current.286.790104009'' comment= ''Set by RMAN'' scope=spfile
    sql statement: alter system set db_name = ''PA305'' comment= ''Modified by RMAN duplicate'' scope=spfile
    sql statement: alter system set db_unique_name = ''PB305'' comment= ''Modified by RMAN duplicate'' scope=spfile
    Oracle instance shut down
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/31/2012 17:20:18
    RMAN-06174: not connected to auxiliary database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    RMAN>

  • Rman cloning on RAC

    Hello all,
    My environment
    OS: LINUX
    ORACLE: 10.2.0.2
    my question are
    1) configured crs_home,oracle_home with asm now i have to clone from proda to prodb.
    all configurations are working fine.
    backup pieces are copied to prodb.
    if i have backupsets in prodb location. is it possible to clone?
    or backups should be in proda? then we have to duplicate?
    can anyone tell me please.

    If you not using RECOVERY CATALOG , you have to copy the backup sets or copies to the clone database server.
    RMAN checks for the backup to restore. if it is not available in the machine, it gives an error.
    RMAN> backup full database format '/u01/app/oracle/backup/%d_%U.bckp' plus archivelog format '/u01/app/oracle/backup/%d_%U.bckp';
    [oracle@rac2 ~]$ cd /u01/app/oracle/backup
    [oracle@rac2 backup]$ ls -lart
    total 636080
    drwxrwxr-x 9 oracle oinstall 4096 Jan 20 18:42 ..
    -rw-r----- 1 oracle oinstall 50418176 Jan 20 18:43 WHITE_01l3v1uv_1_1.bckp
    -rw-r----- 1 oracle oinstall 531472384 Jan 20 18:54 WHITE_02l3v203_1_1.bckp
    -rw-r----- 1 oracle oinstall 7143424 Jan 20 18:54 WHITE_03l3v2jf_1_1.bckp
    -rw-r----- 1 oracle oinstall 1346560 Jan 20 18:54 WHITE_04l3v2jv_1_1.bckp
    -rw-r----- 1 oracle oinstall 7110656 Jan 20 19:19 05l3v41r_1_1
    drwxr-xr-x 2 oracle oinstall 4096 Jan 20 19:20 .
    -rw-r----- 1 oracle oinstall 53174272 Jan 20 19:21 06l3v448_1_1
    [oracle@rac2 backup]$ scp * oracle@rac1:/u01/app/oracle/backup/
    05l3v41r_1_1 100% 6944KB 6.8MB/s 00:00
    06l3v448_1_1 100% 51MB 16.9MB/s 00:03
    WHITE_01l3v1uv_1_1.bckp 100% 48MB 2.7MB/s 00:18
    WHITE_02l3v203_1_1.bckp 100% 507MB 1.5MB/s 05:47
    WHITE_03l3v2jf_1_1.bckp 100% 6976KB 996.6KB/s 00:07
    WHITE_04l3v2jv_1_1.bckp 100% 1315KB 1.3MB/s 00:01
    NOTE:
    The target and clone database location for RMAN backup folder must be same.
    for eg: /u01/app/oracle/backup folder
    check the below link to clone database in different server.
    http://www.akadia.com/services/ora_duplicate_database_rman.html

  • 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

  • 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/

  • Post Cloning Scripts ?

    Hi All,
    I am new to the cloning process (non-RMAN cloning) and wanted to go through the "nuts-and-bolts" path to learn about cloning. My question is this: Once we have copied all the files and created the new control file and set the new DB name, do we need to run the catproc.sql/pupbld.sql scripts? My logic says that as it is a "copy", these privileges & procedures for PL/SQL support must already exist and there is no need to run the scripts - just wanted to check with the experts.
    Thanks y'all!
    Cheers!

    just wanted to check with the experts.You are correct

  • RMAN Duplicate basics

    Hello,
    1)I would like to know whether the name of the undo tablespace should be the same in both target and auxiliary database during RMAN duplication? DB-10.2.0.3
    2)Is it mandatory to set LOG_ARCHIVE_DEST_n Parameter in parameter file for RMAN cloning(both backup-based & active database) on auxiliary server?
    Thanks in advance

    1)Yes, You need to keep same UNDO tablespace name. After cloning is done you can use
    alter tablespace rename comamnd and change in pfile/spfile accordingly
    2)Are you doing to same host or remote host?
    Minimum required parameters, db_name,control_files.
    use db_file_name_convert,log_file_name_convert if there is change in directory structure

  • In Regarding to Rman

    Hi,
    There is client requirement to confiquire rman on all development environments.
    The prodcution and preproduction environment Rman confiquired by third party vendor and the team who are supporting production and preproduction are reluctant to share the setup document.
    I have being supporting only the development environments.I am new to rman setup.
    Now the requirement from third party,To perform cloning from prodcution to test environment, rman should be confiquired on all development environments. Can you please shed some light on how to enable/confiquire this on development environment.
    With Regards,
    Srini

    Please refer to RMAN documentation for your database version.
    Database Documentation
    http://www.oracle.com/technetwork/indexes/documentation/index.html#database
    For RMAN Cloning, please see old threads which discuss the same topic -- http://forums.oracle.com/forums/search.jspa?threadID=&q=RMAN+AND+Cloning&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Cloning basics

    Hello,
    I am new to Oracle database and hoping that some one will please clarify my doubts.
    1) Are cloning a database & copying a database the same thing?
    2) Is static entry in the listener.ora file required for the auxiliary database for RMAN Cloning?
    Thanks in advance

    Welcome to OTN
    1) Are cloning a database & copying a database the same thing? Cloning database is way to copy database and create similar Of Production Database for Dev test.
    https://en.wikipedia.org/wiki/Clone_%28database%29
    2) Is static entry in the listener.ora file required for the auxiliary database for RMAN Cloning? Check
    http://docs.oracle.com/cd/B10501_01/server.920/a96566/rcmcnctg.htm#443793
    http://docs.oracle.com/cd/B19306_01/backup.102/b14191/rcmcnctg.htm

  • Proactive details for cloning

    Hi,
    Db : 9i / 10.1 and above
    Recently i am asked to do a rman cloning in 10g.It is done.but i have some questions regarding cloning.pls clarify it.
    Actually they gave a backup sets which contains 10 backup pieces and 30 archive logs in a directory.Archive log sequence number started with 96 to 125.
    I created pfile,pwd file and start instance nomount ,restore the control file & catalog data file from backup sets, recreated redolog files.
    While recovery,oracle asks log sequence number 90 for recover operations.But i didn't have on that time.
    So we moved archive log 90 to 95 from tape to cloning machine and applied it.
    1,My question is Is it possible to check which log sequence numbers needed for recovery before restoring the data files in a proactive method?
    2,Can i decrease log group size( ie Production machine has 4 log groups and 2 members each,but i like to set 3 group in clone machine) while cloning.
    3,They won't gave db name and dbid.Can i get these information from backupsets without asking other dbas.Is it possible?
    4,why i need to set nls_date_format in rman propmt before backup and restoration ?
    Thanks & Regards,
    VN
    Edited by: user3266490 on Nov 7, 2011 3:58 PM

    My question is Is it possible to check which log sequence numbers needed for recovery before restoring the data files in a proactive method? it's better that let's RMAN to prompt that which log sequence is required . As far knowledge, i don't have any views for check the log sequence no.
    Can i decrease log group size( ie Production machine has 4 log groups and 2 members each,but i like to set 3 group in clone machine) while cloning. No.. since controlfile contains the information of all redolog file and it's group and you have restore the controlfile which is having the same info as that of primary . So drop the logfile and member after clonning.
    They won't gave db name and dbid.Can i get these information from backupsets without asking other dbas.Is it possible? Yes you can ..you can get the dbid from backup sets. and once you have restore spfile you can query as show parameter db_name and you mount database the database then you can query from v$database views.
    why i need to set nls_date_format in rman propmt before backup and restoration ?nls_date_format is required to set the format used for the time parameters in RMAN commands such as RESTORE, RECOVER, and REPORT.
    Check the below link for more help
    Hope this help you
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for