RMAN clone EBS

Hi:
I am using RMAN to clone EBS R12. After the clone I checked the log file against the /staging/.../PROD (data files) and found last three files are not in the log file that mean they are not copied. We use "SET UNTIL SEQUENCE 80426 THREAD 1". Is that Okay or the clone is failed?
Thank you for your help and regards

There were no errors in the log file except at the end it says
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/29/2012 14:49:25
RMAN-06136: ORACLE error from auxiliary database: ORA-02236: invalid file name
But I managed to open the database. I did get error like flash area space problem. After increase the db_recovery_file_dest_size, the database and apps are up and running.
How to compare schemas and table records? So normally, all the datafiles should be copied/cloned to the target instnace, right?

Similar Messages

  • Clone EBS without shutdown EBS

    EBS version: 12.1.3the general method to clone EBS system is to shutdown the appTier and dbTier and then copy all the file to target system, and use adcfgclone to config.
    I want to know how to clone the EBS system online(without shutdown apps and db).
    I suppose I can copy a part of EBS files and use RMAN to recover db ,at last run adcfgclone. Is it OK?
    can you share me the method ?

    Hi;
    Please check advanced cloning part from below doc:
    Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database [ID 760772.1]
    Cloning Oracle Applications Release 12 with Rapid Clone[ID 406982.1]
    Regard
    Helios

  • RMAN clone feature query

    Hello DBA's,
    Using a 9i Solaris box and i need to perfom a RMAN clone of prod (target db) to train database. Train database does already exist.
    I've performed "backup database plus acrhivelog all delete input" (on prod)
    My query is when i do run "duplicate target database to traindb" will it refresh all the existing datafiles already in TRAIN db or will i need to manually drop the datafiles or even 'drop' the TRAIN database?
    Many thanks!

    You should remove or drop TRAIN DB before you clone over from PROD.
    However, you can use the NOFILENAMECHECK clause
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta028.htm#sthref466

  • RMAN clone error

    Hi:
    I got error at end when doing a RMAN clone on linux, RMAN 11.1.0.7. 89163 is the next to last highest sequence
    number in the backup log file. So in the clone script I put 89165.
    ORA-19870: error while restoring backup piece
    ORA-19504: failed to create file
    ORA-17502: ksfdcre:4 Failed to create file
    ORA-15173: entry 'archive' does not exist in directory '/'
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/19/2012 17:36:15
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-20506: no backup of archived log found
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of archived log for thread 1 with sequence 89163 and starting SCN of 11158664662 found to restore
    What is the problem here?
    Can I bring up the database up?
    Thank you for your help.

    Then you may get an error as below
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of archived log for thread 1 with sequence 89165you can try to open the database with resetlogs as you would not be having the archive sequence 89165
    Also, 1 suggestion. Since you are on 11g, why not use the feature "active database" ?
    rman target sys/pwd@target catalog xxxx auxiliary wwww
    RMAN>duplicate target database to 'CLONEDB' from active database;This does not require you to take the backup first and then start the cloning activity

  • 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

  • Clone Ebs 11.5.8

    Hi,
    Can I clone Apps 11.5.8 (DB 8.1.7.4) from solaris sparc (5.9) to solaris x86 ? after that upgrade to 11.5.10.2 ?
    Tanks.
    Saadeddine.

    Saadeddine BRAHMIA wrote:
    We have installed new hardware "Power Edge M1000e Blade" with "Dell M 600 blade server" and vmware esx.
    I want to create a virtual machine on esx with solaris or oracle linux OS and clone ebs, after that upgrade to 11.5.10.2.
    Is there any solution ?
    Tanks.To migrate from Solaris to Linux, please refer to:
    Migrating to Linux with Oracle Applications Release 11i [ID 238276.1]
    Debugging Platform Migration Issues in Oracle Applications 11i [ID 567703.1]
    To migrate the database tier node, please refer to:
    Export/import notes on Applications 11i Database 11g [ID 557738.1]
    Transportable Tablespace With 11gR2 And EBS 11i [ID 1325954.1]
    To upgrade to 11.5.10.2, please refer to:
    Oracle Applications Release 11.5.10.2 Maintenance Pack Installation Instructions [ID 316365.1]
    Thanks,
    Hussein

  • Oracle database error after clone EBS 11i.

    Hi,
    I am getting following error ORA-01578 message when I open forms after the cloning.
    APP-FND-01564: Oracle error 1578 in fdmgrated.
    But no error in database alert log file.
    Clone was done by RMAN.
    Oracle 10gR2 on AIX.
    EBS 11i.
    Thanks.

    Yes, Autocofig completed without any error message.
    But no errors in database alert log file.
    Full error message is when I open Forms:
    Cause: fdmgranted failed due to ORa-01578: Oracle data block corrupted
    (file#440, block#9291)
    ORA-01110: data file 440:
    ORA_26040: Data block was loaded using the NOLOGGING option.     please seee this
    ORA-1578 / ORA-26040 Corrupt blocks by NOLOGGING - Error explanation and solution [ID 794505.1]
    Handling Oracle Block Corruptions in Oracle7/8/8i/9i/10g/11g [ID 28814.1]
    How to identify all the Corrupted Objects in the Database with RMAN [ID 472231.1]
    OERR: ORA-1578 "ORACLE data block corrupted (file # %s, block # %s)" Master Note [ID 1578.1]
    Master Note for Handling Oracle Database Corruption Issues [ID 1088018.1]
    ;) AppsMAsti ;)
    sharing is Caring

  • RMAN Clone Errors

    Hello,
    We use Commvault for our backup software. I can successfully clone one application's PROD instance on server1 to TEST on server2.
    However, for another application, attempting the same process of cloning the app's PROD instance on server1 to TEST on server2, I'm getting RMAN errors.
    The prod database is ISLP and test database is ISLT. I've set the parameters:
    o     alter system set db_file_name_convert = '/u02/oradata/ISLP', '/u02/oradata/ISLT'
    o     alter system set log_file_name_convert= '/u01/oradata/ISLP', '/data/oracle/ISLT'
    Again the destination is on a second server.
    The error message I receive is:
    Oracle instance shut down
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/09/2013 12:48:55
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_2b.log conflicts with a file used by the target database
    RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_1b.log conflicts with a file used by the target database
    RMAN>
    Recovery Manager complete.
    I don't understand why RMAN keeps trying to create new redo log files in a directory that is not specified by the log_file_name_convert parameter. I also don't understand why this exact same process works for cloning one applications database but not this application. I would appreciate any help. Thank you. Here is the RMAN script being executed by Commvault.
    Rman Script:
    [run {
    set newname for datafile '/u02/oradata/ISLP/infosilem_ISLP_01.dbf' to '/u02/oradata/ISLT/infosilem_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/sysaux_ISLP_01.dbf' to '/u02/oradata/ISLT/sysaux_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/system_ISLP_01.dbf' to '/u02/oradata/ISLT/system_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/tools_ISLP_01.dbf' to '/u02/oradata/ISLT/tools_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/undo_ISLP_01.dbf' to '/u02/oradata/ISLT/undo_ISLP_01.dbf';
    set newname for datafile '/u02/oradata/ISLP/users_ISLP_01.dbf' to '/u02/oradata/ISLT/users_ISLP_01.dbf';
    allocate auxiliary channel ch1 type 'sbt_tape'
    PARMS="SBT_LIBRARY=/opt/galaxy/Base64/libobk.so,BLKSIZE=262144,ENV=(CV_mmsApiVsn=2,CV_channelPar=ch1,ThreadCommandLine= RESTORE  -jm 142 -a 2:0 -cl 137 -ins 150 -at 22 -j 700481 -jt 700481:3:1 -bal 0 -rcp 0 -ms 1 -p 2 -cn s-dbint -vm Instance001)"
    TRACE 0;
    set until time = "TO_DATE('05/08/2013 09:00:00','MM/DD/YYYY HH24:MI:SS')" ;
    duplicate target database to 'ISLT'
    exit;
    ]

    You haven't defined a log_file_name_convert for /u02/oradata/ISLP/
    Possibly, the database has multiplexed redo log files, one member each in /u01/oradata/ISLP and one member each in /u02/oradata/ISLP.
    Hemant K Chitale

  • Rapid clone ebs 12.1.3  with rdbms 11.2.0.3

    Hello
    I want to clone my oracle ebs environment
    source server : karamba
    source database : PROD
    Target server : djaraff
    target database : CLNE
    I follow the oracle support document ID 406982.1.
    But when i run perl adcfgclone.pl
    i have the error
    plyDBTier_03181744.log
    / 0% completed RC-00110: Fatal: Error occurred while relinking of ApplyDBTechStack
    ERROR while running Apply...
    Mon Mar 18 17:45:28 2013
    ERROR: Failed to execute /oraapps/app/oracle/CLNE/db/tech_st/11.2.0/appsutil/clone/bin/adclone.pl
    and in the logfile i can see
    AutoConfig could not successfully execute the following scripts:
    s/app/oracle/CLNE/db/tech_st/11.2.0/appsutil/perl /oraapps/app/oracle/CLNE/db/tech_st/11.2.0/appsutil/clone
    ouicli.pl               INSTE8_APPLY       255
    AutoConfig is exiting with status 1
    RC-50013: Fatal: Instantiate driver did not complete successfully.
    +/oraapps/app/oracle/CLNE/db/tech_st/11.2.0/appsutil/driver/regclone.drv+
    +(END)+
    Any idea, i tried many times but still got the same error.
    Thanks

    djoloff wrote:
    Hi Hussein,
    stiill failed my clone
    here are the steps
    SOURCE  servername karamba SID  PROD
    1- [oracle@karamba patches_ebs]$ sh /oraapps/app/oracle/PROD/inst/apps/PROD_karamba/admin/scripts/adautocfg.sh
    2- [oracle@karamba patches_ebs]$ perl /oraapps/app/oracle/PROD/apps/apps_st/appl/ad/12.0.0/bin/admkappsutil.pl
    3- [oracle@karamba patches_ebs]$ cp /oraapps/app/oracle/PROD/inst/apps/PROD_karamba/admin/out/appsutil.zip /oraapps/app/oracle/PROD/db/tech_st/11.2.0/
    4- [oracle@karamba 11.2.0]$ unzip -o appsutil.zip
    5- [oracle@karamba 11.2.0]$ sh /oraapps/app/oracle/PROD/db/tech_st/11.2.0/appsutil/scripts/PROD_karamba/adautocfg.sh
    6- 9.     Maintain Snapshot Information with adadmin
    7- [oracle@karamba PROD_karamba]$ pwd
    /oraapps/app/oracle/PROD/db/tech_st/11.2.0/appsutil/scripts/PROD_karamba
    [oracle@karamba PROD_karamba]$ perl adpreclone.pl dbTier
    8- [oracle@karamba scripts]$ pwd
    /oraapps/app/oracle/PROD/inst/apps/PROD_karamba/admin/scripts
    [oracle@karamba scripts]$ perl adpreclone.pl appsTier
    9- [oracle@karamba PROD]$ scp -pr db/ apps djaraff:/oraapps/app/oracle/CLNE/
    TARGET : servername djaraff   new_sid: CLNE
    /oraapps/app/oracle/CLNE/db/tech_st/11.2.0/appsutil/clone/bin
    [oracle@djaraff bin]$ perl adcfgclone.pl dbTier
    Failed
    RC-50013: Fatal: Instantiate driver did not complete successfully.
    */oraapps/app/oracle/CLNE/db/tech_st/11.2.0/appsutil/driver/regclone.drv*
    *(END*)
    Note : I checked the metalink notes you indicated (change the JRE)...
    Did I skip a step?
    Thanks
    Edited by: djoloff on Mar 22, 2013 7:19 AMHi,
    Your steps look ok. Which perl version are you using?
    Thanks

  • RMAN clone in new server

    Hi
    I have rman tape backup of the entire database. I want to clone this on new server.
    I have started database in new server. It is in mount stage. how to restore and recover the datafiles on new host.
    I am using leagato server for tape backup. Please guide me on this.

    You need to use RMAN DUPLICATE and to adapt following steps to your environment http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006474.
    About tape backups, please note:
    >
    When using tape backups, you must make the tapes containing the backups accessible to the remote node. You can achieve this goal by physically moving the tape to a drive attached to the remote host or by means of a network-accessible tape server.

  • How to configure RMAN - Oracle EBS R12

    Hi,
    I have installed Oracle EBS R12 on OEL 5.6 and want to configure Backup strategy for Database. Database Version is 11.1.0.7. Currently Database is in Noarchivelog mode and want to take backup of database using RMAN. Can anyone guide me what are the steps to follow in order to achive that ?
    Regards,
    Priyanka

    You can use RMAN to take backup in noarchive log mode.However you will be able to take cold backup only.
    Use this,
    RMAN> run {
    shutdown immediate;
    startup mount;
    backup database;
    alter database open;
    Note:
    RMAN does not permit you to make inconsistent backups when the database is in NOARCHIVELOG mode. If you employ user-managed backup techniques for a NOARCHIVELOG database, then you must not make inconsistent backups of this database.
    Edited by: user12943013 on Apr 13, 2011 5:20 PM

  • RMAN clone - only subset of data

    I have a requirement to clone the Production to Test database with the minimum size (subset of data).
    Can some one help me how to extract only subset of data from prod ?

    You could consider using SKIP TABLESPACE with the RMAN DUPLICATE command to create a test database that is a subset of the production, but it may depend on what you mean by "subset" of data.

  • RMAN clone query

    Hello DBA's
    I'm using an 9i Oracle Solaris box.
    I have a task to clone a TEST enviornment into a existing TRAIN enviornment using RMAN.
    I edited the TEST spfile and ran the RMAN duplicate commnad - 'duplicate target database to train;' without deleting the existing datafiles on TRAIN.
    RMAN automatically refreshed the datafiles with TEST's datafiles.
    My query is:
    1) Is this acceptable and will i land into problems later on OR should i have dropped the TRAIN database completley before doing a new clone?
    2) In 9i (Solaris) there is no easy way to drop the database, should i have done a shutdown and dropped the TRAIN's datafiles manually?
    You adivce/suggestions would be much appreciated!

    It is always better to remove the "TRAIN" database before cloning "TEST" over to "TRAIN".
    Consider the scenario :
    Day 1: "TEST" has 5 datafiles in /u01. /u01 has filesystem space of 10GB and the 5 datafiles take up 6GB
    Day 2: "TEST" is cloned to "TRAIN" for the first time. "TRAIN" is on /u02, 10GB, 5 files taking 6GB
    Day 6: "TRAIN" is very busily used with a lot more data inserted. The 5 files in /u02 grow to 9GB. You add a 6th datafile of 1GB in /u03
    Day 12: Your traning is over and you need to clone "TEST" to "TRAIN" again for the next set of trainees
    Day 13: "TEST" is cloned to "TRAIN".
    As has been pointed out, the clone would actually overwrite files. However, you'll find 5 files of 9GB being replaced by 5 files of 6GB. And a 6th file of 1GB "hanging loose" not being owned by anybody.
    Wouldn't that cause confusion on, say, Day 19 ?
    Here's another scenario :
    Day 1: "TEST" has 5 datafiles in /u01. /u01 has filesystem space of 10GB and the 5 datafiles take up 6GB
    Day 2: "TEST" is cloned to "TRAIN" for the first time. "TRAIN" is on /u02, 10GB, 5 files taking 6GB
    Day 6: "TRAIN" is used for DBA traning. The trainee DBAs "reorganise" the database, using export import, down to 4 datafiles and taking 4GB only (because data has been deleted)
    Day 12 : training is over
    Day 13 : "TEST" is cloned to "TRAIN"
    What do you see happening now ?
    Here's a third scenario :
    What about DBAs renaming datafiles (not just locations, but file names) during Training ?
    Here's a fourth scenario :
    Between Day 2 and Day 13, the "TEST" server storage is expanded and /u01 is 20GB. Also, "TEST" grows to 16GB in size. But the "TRAIN" server's /u02 is still 10GB.
    What happens when you re-clone on Day 13 ?
    At each refresh clone, you must consider that
    a. file numbers may have changed
    b. file names may have changed
    c. file sizes may have changed

  • RMAN clone; Avoid backup image

    Oracle 10.2.0.5
    When cloning databases with RMAN on ASM, it creates a backup image before restoring the backup to a clone. Whenever I clone a database, I need double amount of storage to do it.
    Is there way to clone a database in ASM and avoid the additional backup image?
    I appreciate the help.
    Thank you

    Hi Philippe,
    I really appreciate your post, doing things that seem impossible to be possible. (such as to duplicate (online) a database in 10g without restore). :)
    I decided to complement your post doing duplicate using ASM.
    I did not make step by step, but for any Senior DBA can understand.
    P.S: For All:
    Be very careful to do this using ASM because you can damage or remove your target database if the parameters(init<instance_name>.ora) are not configured correctly.
    I created/used a different diskgroup from that used by the target database, for precaution and safety.
    rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:01:42 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: DB10G (DBID=142098503)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    450      SYSTEM               ***     +DG_ORCL/db10g/datafile/system.259.749761723
    2    1105     UNDOTBS1             ***     +DG_ORCL/db10g/datafile/undotbs1.258.749761723
    3    250      SYSAUX               ***     +DG_ORCL/db10g/datafile/sysaux.257.749761723
    4    3250     USERS                ***     +DG_ORCL/db10g/datafile/users.256.749761725
    List of Temporary Files
    =======================
    File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
    1    98       TEMP                 32767       +DG_ORCL/db10g/tempfile/temp.260.749761777
    # Oracle ASM use db_unique_name to create directory. So I go use.
    sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 22:38:48 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    SQL:db10g> show parameter db_unique
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DB10G
    SQL:db10g> ALTER SYSTEM SET db_unique_name=dbclone scope=spfile;
    SQL:db10g> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL:db10g> startup mount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL> show parameter db_uni
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DBCLONE
    $ rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:43:27 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: DB10G (DBID=142098503, not open)
    RMAN>  BACKUP AS COPY DEVICE TYPE DISK DATABASE FORMAT '+DG_CLONE';
    Starting backup at 09-MAY-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=153 devtype=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=+DG_ORCL/db10g/datafile/users.256.749761725
    output filename=+DG_CLONE/dbclone/datafile/users.262.750725029 tag=TAG20110509T224348 recid=10 stamp=750725114
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=+DG_ORCL/db10g/datafile/undotbs1.258.749761723
    output filename=+DG_CLONE/dbclone/datafile/undotbs1.263.750725125 tag=TAG20110509T224348 recid=11 stamp=750725152
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.259.749761723
    output filename=+DG_CLONE/dbclone/datafile/system.264.750725161 tag=TAG20110509T224348 recid=12 stamp=750725170
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=+DG_ORCL/db10g/datafile/sysaux.257.749761723
    output filename=+DG_CLONE/dbclone/datafile/sysaux.265.750725175 tag=TAG20110509T224348 recid=13 stamp=750725182
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    copying current control file
    output filename=+DG_CLONE/dbclone/controlfile/backup.266.750725191 tag=TAG20110509T224348 recid=14 stamp=750725193
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 09-MAY-11
    channel ORA_DISK_1: finished piece 1 at 09-MAY-11
    piece handle=+DG_CLONE/dbclone/backupset/2011_05_09/nnsnf0_tag20110509t224348_0.267.750725195 tag=TAG20110509T224348 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 09-MAY-11
    SQL:db10g> alter database backup controlfile to trace;
    Database altered.
    SQL:db10g>create pfile='$ORACLE_HOME/dbs/initdbclone.ora' from spfile;
    File created.
    SQL:db10g> show parameter db_un
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DBCLONE
    SQL:db10g> alter system set db_unique_name=db10g scope=spfile;
    System altered.
    SQL:db10g> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    *.audit_file_dest='/u01/app/oracle/admin/dbclone/adump'
    *.background_dump_dest='/u01/app/oracle/admin/dbclone/bdump'
    *.control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora'
    *.core_dump_dest='/u01/app/oracle/admin/dbclone/cdump'
    *.db_create_file_dest='+DG_CLONE'
    *.db_name='db10g'
    *.db_recovery_file_dest='+DG_CLONE'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=dbcloneXDB)'
    *.user_dump_dest='/u01/app/oracle/admin/dbclone/udump'
    # Get list of datafiles on ASM (very useful for huge list)
    set linesize 110
    col DATAFILE_PATH for a100
    SQL:+ASM> select ''''||concat('+'||gname, sys_connect_by_path(aname, '/'))||''',' DATAFILE_PATH
         from ( select b.name gname, a.parent_index pindex, a.name aname,
                  a.reference_index rindex , a.system_created, a.alias_directory,
                  c.type file_type
           from v$asm_alias a, v$asm_diskgroup b, v$asm_file c
           where a.group_number = b.group_number
                 and a.group_number = c.group_number(+)
                 and a.file_number = c.file_number(+)
                 and a.file_incarnation = c.incarnation(+)
         ) WHERE file_type = 'DATAFILE'
    start with (mod(pindex, power(2, 24))) = 0
                and rindex in
                    ( select a.reference_index
                      from v$asm_alias a, v$asm_diskgroup b
                      where a.group_number = b.group_number
                            and (mod(a.parent_index, power(2, 24))) = 0
                            and a.name = UPPER('&DATABASENAME')
    connect by prior rindex = pindex;
    DATAFILE_PATH
    '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
    '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
    '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
    '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175',
    $ export ORACLE_SID=db10g
    $ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 23:55:16 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL:dbclone> startup nomount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size              92275968 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                6291456 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "DB10G" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 (
      9      '+DG_CLONE/DBCLONE/onlinelog/group_1.264.749761765',
    10      '+DG_CLONE/DBCLONE/onlinelog/group_1.257.749761767'
    11    ) SIZE 50M,
    12    GROUP 2 (
    13      '+DG_CLONE/DBCLONE/onlinelog/group_2.262.749761769',
    14      '+DG_CLONE/DBCLONE/onlinelog/group_2.258.749761771'
    15    ) SIZE 50M,
    16    GROUP 3 (
    17      '+DG_CLONE/DBCLONEonlinelog/group_3.261.749761771',
    18      '+DG_CLONE/DBCLONE/onlinelog/group_3.259.749761773'
    19    ) SIZE 50M
    20  DATAFILE
    21   '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
    22   '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
    23   '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
    24   '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175'
    25  CHARACTER SET WE8ISO8859P1
    26  ;
    Control file created.
    SQL:dbclone> alter database open resetlogs;
    Database altered.
    SQL:dbclone> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL:dbclone> startup mount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size              92275968 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL:dbclone> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ nid TARGET=/ DBNAME=dbclone
    DBNEWID: Release 10.2.0.5.0 - Production on Tue May 10 00:02:21 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to database DB10G (DBID=142098503)
    Connected to server version 10.2.0
    Control Files in database:
        /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
    Change database ID and database name DB10G to DBCLONE? (Y/[N]) => yes
    Proceeding with operation
    Changing database ID from 142098503 to 661154259
    Changing database name from DB10G to DBCLONE
        Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - modified
        Datafile +DG_CLONE/dbclone/datafile/system.264.750725161 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/undotbs1.263.750725125 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/sysaux.265.750725175 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/users.262.750725029 - dbid changed, wrote new name
        Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - dbid changed, wrote new name
        Instance shut down
    Database name changed to DBCLONE.
    Modify parameter file and generate a new password file before restarting.
    Database ID for database DBCLONE changed to 661154259.
    All previous backups and archived redo logs for this database are unusable.
    Database is not aware of previous backups and archived logs in Recovery Area.
    Database has been shutdown, open database with RESETLOGS option.
    Succesfully changed database name and ID.
    DBNEWID - Completed succesfully.
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    *.db_name='dbclone' # change this
    $ export ORACLE_SID=dbclone
    $ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 10 00:04:26 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL:dbclone> startup mount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL:dbclone> alter database open resetlogs;
    Database altered.
    SQL:dbclone>  ALTER TABLESPACE TEMP ADD TEMPFILE '+DG_CLONE(TEMPFILE)' SIZE 200M;
    Tablespace altered.
    # Moving SPFILE to ASM
    SQL:dbclone> create spfile='+DG_CLONE(PARAMETERFILE)' from pfile;
    File created.
    SQL:dbclone> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    ASMCMD> mkalias +DG_CLONE/DBCLONE/PARAMETERFILE/spfile.277.750732725 +DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    SPFILE='+DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA'
    # Moving CONTROLFILE to ASM
    SQL:dbclone> startup nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    SQL:dbclone> show parameter control
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    control_files                        string      /u01/app/oracle/product/10.2.0
                                                     /db_1/dbs/control_dbclone.ora
    SQL:dbclone> alter system set control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora','+DG_CLONE' scope=spfile;
    System altered.
    SQL:dbclone> exit
    $ rman target /
    connected to target database: dbclone (not mounted)
    RMAN> shutdown immediate
    using target database control file instead of recovery catalog
    Oracle instance shut down
    RMAN> startup nomount
    connected to target database (not started)
    Oracle instance started
    Total System Global Area     293601280 bytes
    Fixed Size                     2095872 bytes
    Variable Size                104858880 bytes
    Database Buffers             180355072 bytes
    Redo Buffers                   6291456 bytes
    RMAN> restore controlfile from '/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora';
    Starting restore at 10-MAY-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    channel ORA_DISK_1: copied control file copy
    output filename=/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
    output filename=+DG_CLONE/dbclone/controlfile/current.278.750733129
    Finished restore at 10-MAY-11
    RMAN> exit
    Recovery Manager complete.
    $ sqlplus / as sysdba
    SQL:dbclone> show parameter control
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    control_files                        string      /u01/app/oracle/product/10.2.0
                                                     /db_1/dbs/control_dbclone.ora,
                                                      +DG_CLONE/dbclone/controlfile
                                                     /current.278.750733129
    SQL> alter system set control_files='+DG_CLONE/dbclone/controlfile/current.278.750733129' scope=spfile;
    System altered.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    Database opened.
    SQL> exitCheers,
    Levi Pereira

  • RMAN Clone

    Hello all,
    I'm currently testing cloing using RMAN.
    On SERVER A, database backup taken using RMAN catalog to DISK on SERVER A. When I tried to clone to SERVER B, I get an error
    ORA-19505: failed to identify file "/dba/sade/kamsbup_scripts/testone_bkup/rman_TESTONE_FULL_240708-12:47:21_afjm9lb0_1_1_660919648.bak"
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Could you suggest me what channel parameters are to be used?
    Thanks,
    Kam

    But in your first reply you said you are using disk not tape.
    In case of tape we need to have same configuration of channel paths on both servers, as tape will be accessible to both servers and directory structire will be same or mount points will be same.
    In case of disk, we need to copy the backupset file to the same mount point or directory structure as Rman catalog or controlfile will find the backup only from the position where backup was taken and this information is store in rman catalog or controfile.
    So when duplicating , restore command will find the backup file on the same path as it was taken but on the other machine as we are restoring on the different machine.
    Regards,
    Navneet

Maybe you are looking for

  • How to import a class not in the package from a package

    how to import a class not in the package from a package?

  • Wireless routers and surge protector with phone line ports

    I cannot connect to the internet when I use my surge protector phone line ports.  I have the line from the wall in the in port and the other one in the out port but status light on modem doesn't light up and no connection to internet.  Is it my sureg

  • QR code embedded into images?

    Saw something in a magazine the other day: photos of products with a "smart phone" icon and caption saying "Scan this photo to be shown a video (or product info)." Am I right in thinking that some kind of QR-type code is embedded within the printer d

  • I want to delete a whole line in txt file where i found a string with DATE format.

    #The date have specific format  mm/dd/yyyy #I Need to find a line where is date older than one year and then erase it $Date = (Get-Date).AddDays(-365) write-host "-----------------------" $a= '\d{2}\/\d{2}\/\d{4}' Select-String -pattern "$a"  -Path C

  • Replace n strings

    hello, i have a string that contain some words that i want to replace to other words. replace can do just one and i want in onw sql to replace n strings. for example: i have the string: "this is a test string and i want to replace several words" i wa