Sunday, March 12, 2017

Backup-Based Database Duplication Without Target but With Recovery Catalog connection ( ASM to ASM on same host)

OS: Oracle Linux

DB: 11.2.0.1.0

1. First of all, define storage to duplicate database (we will use +DATA_DUP, +FRA_DUP here).
2. Backup target(source) database ora11g. 
    The backup locations are in the following output: 
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key  Size      Device Type   Elapsed Time   Completion Time
    -------  ----------    -----------     ------------       ---------------
   141     6.30M   DISK        00:00:05       10-DEC-16      
           BP Key: 146   Status: AVAILABLE  Compressed: YES  Tag: TAG20161210T111816
           Piece Name: +FRA/ora11g/backupset/2016_12_10/annnf0_tag20161210t111816_0.698.930223097
     List of Archived Logs in backup set 141
     Thrd  Seq     Low SCN    Low Time    Next SCN   Next Time
      ----   -------    ----------    ---------       ----------     ---------
      1    1       5129793    10-DEC-16   5138592    10-DEC-16
      1    2       5138592    10-DEC-16   5138690    10-DEC-16
      1    3       5138690    10-DEC-16   5138931    10-DEC-16
      1    4       5138931    10-DEC-16   5139928    10-DEC-16
     BS Key  Type LV   Size       Device Type  Elapsed Time   Completion Time
    -------    ----      --        ----------      -----------      -----------------------
    142     Full     406.77M   DISK        00:03:00      10-DEC-16      
            BP Key: 147   Status: AVAILABLE  Compressed: YES  Tag: TAG20161210T111827
           Piece Name: +FRA/ora11g/backupset/2016_12_10/nnndf0_tag20161210t111827_0.692.930223111
     List of Datafiles in backup set 142
     File LV Type Ckp SCN    Ckp Time  Name
     ---- -- ---- ---------- --------- ----
     1       Full 5139950    10-DEC-16 +DATA/ora11g/datafile/system.dbf
     2       Full 5139950    10-DEC-16 +DATA/ora11g/datafile/sysaux.dbf
     3       Full 5139950    10-DEC-16 +DATA/ora11g/datafile/undotbs1.dbf
     4       Full 5139950    10-DEC-16 +DATA/ora11g/datafile/users.dbf
     5       Full 5139950    10-DEC-16 +DATA/ora11g/datafile/example.dbf
     6       Full 5139950    10-DEC-16 +DATA/ora11g/datafile/rcat_data_01.dbf
    BS Key  Size       Device Type Elapsed Time Completion Time
    ------- ---------- ----------- ------------ ---------------
   143     30.00K     DISK        00:00:01     10-DEC-16      
           BP Key: 148   Status: AVAILABLE  Compressed: YES  Tag: TAG20161210T112137
           Piece Name: +FRA/ora11g/backupset/2016_12_10/annnf0_tag20161210t112137_0.688.930223297
     List of Archived Logs in backup set 143
     Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
     ---- ------- ---------- --------- ---------- ---------
     1    5       5139928    10-DEC-16 5140052    10-DEC-16
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    144     Full    10.42M     DISK        00:00:07     10-DEC-16      
            BP Key: 149   Status: AVAILABLE  Compressed: NO  Tag: TAG20161210T112139
            Piece Name: +FRA/ora11g/autobackup/2016_12_10/s_930223299.690.930223303
     SPFILE Included: Modification time: 10-DEC-16
     SPFILE db_unique_name: ORA11G
     Control File Included: Ckp SCN: 5140065      Ckp time: 10-DEC-16
    RMAN> 
   The archive logs location are
   ASMCMD [+fra/ora11g/archivelog] > ls
   2016_12_10/
   2016_12_25/
   2016_12_29/
3. Add the below entry in the /etc/oratab file
    BDUPDB:/u01/app/oracle/product/11.2.0/dbhome_1:N
4. Create the TNS ENTRY in the tnsnames.ora file
    [loc:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin]
    BDUPDB =
      (DESCRIPTION =
         (ADDRESS_LIST =
             (ADDRESS = (PROTOCOL = TCP)(HOST = orcl11g)(PORT = 1521))
      )
      ( CONNECT_DATA =
         (SERVER=DEDICATED)
         (SERVICE_NAME = BDUPDB)
      )
    )  
5. Edit listener.ora file
    (/u01/app/grid/product/11.2.0/grid/network/admin/listener.ora) 
    Before editing we have to stop listener([grid@orcl11ggrid]$lsnrctl stop) 
    ......
       (SID_DESC =
       (GLOBAL_DBNAME = BDUPDB)
       (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
       (SID_NAME = BDUPDB)
       )
     )
    .....
    Then start listener ([grid@orcl11g grid]$ lsnrctl start) 
6. Create initBDUPDB.ora file (created at $ORACLE_HOME/dbs) with following parameters 
     Option 1:
     #####################
      db_name=BDUPDB
      control_files=('+DATA_DUP','+FRA_DUP')
      ## DB_FILE_NAME_CONVERT=('+DATA','+DATA_DUP')
      LOG_FILE_NAME_CONVERT=('+DATA','+DATA_DUP','+FRA','+FRA_DUP')
      db_recovery_file_dest='+FRA_DUP'
      db_recovery_file_dest_size=10737418240
      db_create_file_dest='+DATA_DUP'
     #####################
     Option 2:
     #####################
       db_name=BDUPDB
       control_files=('+DATA_DUP','+FRA_DUP')
       #DB_FILE_NAME_CONVERT=('+DATA','+DATA_DUP')
       #LOG_FILE_NAME_CONVERT+('+DATA','+DATA_DUP','+FRA','+FRA_DUP')
       db_recovery_file_dest='+FRA_DUP'
       db_recovery_file_dest_size=10737418240
       db_create_file_dest='+DATA_DUP'
     ##################### 

     The following initBDUPDB.ora file options will not work with OMF files.
      Option 3: 
      #####################
        db_name=BDUPDB
        control_files=('+DATA_DUP','+FRA_DUP')
        DB_FILE_NAME_CONVERT=('+DATA','+DATA_DUP')
        LOG_FILE_NAME_CONVERT=('+DATA','+DATA_DUP','+FRA','+FRA_DUP') 
        db_recovery_file_dest='+FRA_DUP'
        db_recovery_file_dest_size=10737418240
        ##db_create_file_dest='+DATA_DUP'
      #####################
      Option 4:
      #####################
        db_name=BDUPDB
        control_files=('+DATA_DUP','+FRA_DUP')
        ##DB_FILE_NAME_CONVERT=('+DATA','+DATA_DUP')
        LOG_FILE_NAME_CONVERT=('+DATA','+DATA_DUP','+FRA','+FRA_DUP') 
        db_recovery_file_dest='+FRA_DUP'
        db_recovery_file_dest_size=10737418240
        ##db_create_file_dest='+DATA_DUP'
      #####################
      Option 5:
      #####################
        db_name=BDUPDB
        control_files=('+DATA_DUP','+FRA_DUP')
        DB_FILE_NAME_CONVERT=('+DATA','+DATA_DUP')
        LOG_FILE_NAME_CONVERT=('+DATA','+DATA_DUP','+FRA','+FRA_DUP')
        db_recovery_file_dest='+FRA_DUP'
        db_recovery_file_dest_size=10737418240
        db_create_file_dest='+DATA_DUP'
      #####################
      If we use initBDUPDB.ora content like in Option 5 then the following warning and error occurred. Some portion from output
      …
      database mounted
      RMAN-05529: WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to disk group only.
      contents of Memory Script:
      {
         set until scn  4325803;
         set newname for datafile  1 to "+DATA_DUP/ora11g/datafile/system.dbf";
         set newname for datafile  2 to "+DATA_DUP/ora11g/datafile/sysaux.dbf";
        set newname for datafile  3 to  "+DATA_DUP/ora11g/datafile/undotbs1.dbf";
        set newname for datafile  4 to  "+DATA_DUP/ora11g/datafile/users.dbf";
        set newname for datafile  5 to  "+DATA_DUP/ora11g/datafile/example.dbf";
        set newname for datafile  6 to  "+DATA_DUP/ora11g/datafile/rcat_data_01.dbf";
        restore
        clone database;
     }
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME  
    executing command: SET NEWNAME
    executing command: SET NEWNAME
     Starting restore at 05-OCT-16
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backup set restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_AUX_DISK_1: restoring datafile 00001 to +DATA_DUP/ora11g/datafile/system.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00002 to +DATA_DUP/ora11g/datafile/sysaux.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00003 to +DATA_DUP/ora11g/datafile/undotbs1.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00004 to +DATA_DUP/ora11g/datafile/users.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00005 to +DATA_DUP/ora11g/datafile/example.dbf
    channel ORA_AUX_DISK_1: restoring datafile 00006 to +DATA_DUP/ora11g/datafile/rcat_data_01.dbf
   channel ORA_AUX_DISK_1: reading from backup piece +FRA/ora11g/backupset/2016_10_03/nnndf0_tag20161003t110620_0.748.924260783
    channel ORA_AUX_DISK_1: ORA-19870: error while restoring backup piece
                    +FRA/ora11g/backupset/2016_10_03/nnndf0_tag20161003t110620_0.748.924260783
    ORA-19504: failed to create file "+DATA_DUP/ora11g/datafile/users.dbf"
    ORA-17502: ksfdcre:4 Failed to create file +DATA_DUP/ora11g/datafile/users.dbf
    ORA-15173: entry 'datafile' does not exist in directory 'ora11g' failover to previous backup
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/05/2016 16:06:00
    RMAN-05556: not all datafiles have backups that can be recovered to SCN 4325803
    RMAN-03015: error occurred in stored script Memory Script
   RMAN-06026: some targets not found - aborting restore
   RMAN-06023: no backup or copy of datafile 5 found to restore
   RMAN-06023: no backup or copy of datafile 4 found to restore
   RMAN-06023: no backup or copy of datafile 2 found to restore
   RMAN-06023: no backup or copy of datafile 1 found to restore
   RMAN> 
7. Create password file for new database
    [oracle11g@orcl11g Desktop]$ cd $ORACLE_HOME/dbs
        (must change path like $ORACLE_HOME/dbs before creating password file)
    [oracle11g@orcl11g dbs]$ orapwd file=orapwBDUPDB entries=5
    or just copy from source like
    [oracle11g@orcl11g~]cp $ORACLE_HOME/dbs/orapwORA11G $ORACLE_HOME/dbs/orapwBDUPDB
8. Set environment for duplicated database as SID
     [oracle11g@orcl11g oracle]$ . oraenv
     ORACLE_SID = [ora11g] ? BDUPDB
     The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
9. Start auxiliary database in nomount state.
       [oracle11g@orcl11g~]$ sqlplus / as sysdba
       SQL> startup nomount;
       Oracle instance started
       Total System Global Area     217157632 bytes
       Fixed Size                               2211928 bytes
       Variable Size                         159387560 bytes
       Database Buffers                   50331648 bytes
       Redo Buffers                          5226496 bytes
10. Connect to catalog and auxiliary instance.
       [oracle11g@orcl11g Desktop]$ rman catalog=rcat/222333 auxiliary=sys/222333@BDUPDB
       Recovery Manager: Release 11.2.0.1.0 - Production on Sun Jan 29 19:51:49 2017
       Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
       connected to recovery catalog database
       connected to auxiliary database: BDUPDB (not mounted)
       RMAN>
       Note: Before duplication we have to resync catalog for backuup file if not synced
11. We duplicate as following
      RMAN> duplicate database ora11g to BDUPDB;
      Starting Duplicate Db at 29-JAN-17
      allocated channel: ORA_AUX_DISK_1
      channel ORA_AUX_DISK_1: SID=24 device type=DISK
      contents of Memory Script:
     {
        sql clone "create spfile from memory";
     }
    executing Memory Script
sql statement: create spfile from memory
contents of Memory Script:
{
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area     217157632 bytes
Fixed Size                     2211928 bytes
Variable Size                159387560 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5226496 bytes
contents of Memory Script:
{
   sql clone "alter system set  control_files = 
  ''+DATA_DUP/bdupdb/controlfile/current.269.934573957'', ''+FRA_DUP/bdupdb/controlfile/current.257.934573959'' comment=
 ''Set by RMAN'' scope=spfile";
   sql clone "alter system set  db_name = ''ORA11G'' comment=''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name =''BDUPDB'' comment= ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   restore clone primary controlfile;
   alter clone database mount;
}
executing Memory Script
sql statement: alter system set  control_files =   ''+DATA_DUP/bdupdb/controlfile/current.269.934573957'', ''+FRA_DUP/bdupdb/controlfile/current.257.934573959'' comment= ''Set by RMAN'' scope=spfile
sql statement: alter system set  db_name =  ''ORA11G'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set  db_unique_name =  ''BDUPDB'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area     217157632 bytes
Fixed Size                     2211928 bytes
Variable Size                159387560 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5226496 bytes
Starting restore at 29-JAN-17
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=21 device type=DISK
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: reading from backup piece +FRA/ora11g/autobackup/2016_12_10/s_930223299.690.930223303
channel ORA_AUX_DISK_1: piece handle=+FRA/ora11g/autobackup/2016_12_10/s_930223299.690.930223303 tag=TAG20161210T112139
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:17
output file name=+DATA_DUP/bdupdb/controlfile/current.269.934573957
output file name=+FRA_DUP/bdupdb/controlfile/current.257.934573959
Finished restore at 29-JAN-17
database mounted
contents of Memory Script:
{
   set until scn  5589418;
   set newname for clone datafile  1 to new;
   set newname for clone datafile  2 to new;
   set newname for clone datafile  3 to new;
   set newname for clone datafile  4 to new;
   set newname for clone datafile  5 to new;
   set newname for clone datafile  6 to new;
   restore
   clone database;
}
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 29-JAN-17
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to +DATA_DUP
channel ORA_AUX_DISK_1: restoring datafile 00002 to +DATA_DUP
channel ORA_AUX_DISK_1: restoring datafile 00003 to +DATA_DUP
channel ORA_AUX_DISK_1: restoring datafile 00004 to +DATA_DUP
channel ORA_AUX_DISK_1: restoring datafile 00005 to +DATA_DUP
channel ORA_AUX_DISK_1: restoring datafile 00006 to +DATA_DUP
channel ORA_AUX_DISK_1: reading from backup piece +FRA/ora11g/backupset/2016_12_10/nnndf0_tag20161210t111827_0.692.930223111
channel ORA_AUX_DISK_1: piece handle=+FRA/ora11g/backupset/2016_12_10/nnndf0_tag20161210t111827_0.692.930223111 tag=TAG20161210T111827
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:11:16
Finished restore at 29-JAN-17
contents of Memory Script:
{
   switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=51 STAMP=934574663 file name=+DATA_DUP/bdupdb/datafile/system.267.934573989
datafile 2 switched to datafile copy
input datafile copy RECID=52 STAMP=934574663 file name=+DATA_DUP/bdupdb/datafile/sysaux.266.934573989
datafile 3 switched to datafile copy
input datafile copy RECID=53 STAMP=934574664 file name=+DATA_DUP/bdupdb/datafile/undotbs1.265.934573989
datafile 4 switched to datafile copy
input datafile copy RECID=54 STAMP=934574664 file name=+DATA_DUP/bdupdb/datafile/users.268.934573989
datafile 5 switched to datafile copy
input datafile copy RECID=55 STAMP=934574664 file name=+DATA_DUP/bdupdb/datafile/example.264.934573989
datafile 6 switched to datafile copy
input datafile copy RECID=56 STAMP=934574664 file name=+DATA_DUP/bdupdb/datafile/rcat_data.263.934573991
contents of Memory Script:
{
   set until scn  5589418;
   recover
   clone database
    delete archivelog;
}
executing Memory Script
executing command: SET until clause
Starting recover at 29-JAN-17
using channel ORA_AUX_DISK_1
starting media recovery
archived log for thread 1 with sequence 6 is already on disk as file +FRA/ora11g/archivelog/2016_12_10/thread_1_seq_6.696.930240039
archived log for thread 1 with sequence 7 is already on disk as file +FRA/ora11g/archivelog/2016_12_11/thread_1_seq_7.675.930349435
archived log for thread 1 with sequence 8 is already on disk as file +FRA/ora11g/archivelog/2016_12_13/thread_1_seq_8.697.930520873
archived log for thread 1 with sequence 9 is already on disk as file +FRA/ora11g/archivelog/2016_12_23/thread_1_seq_9.677.931384823
archived log for thread 1 with sequence 10 is already on disk as file +FRA/ora11g/archivelog/2016_12_23/thread_1_seq_10.682.931384937
archived log for thread 1 with sequence 11 is already on disk as file +FRA/ora11g/archivelog/2016_12_23/thread_1_seq_11.679.931384983
archived log for thread 1 with sequence 12 is already on disk as file +FRA/ora11g/archivelog/2016_12_25/thread_1_seq_12.684.931553913
archived log for thread 1 with sequence 13 is already on disk as file +FRA/ora11g/archivelog/2016_12_29/thread_1_seq_13.676.931901253
archived log for thread 1 with sequence 14 is already on disk as file +FRA/ora11g/archivelog/2017_01_03/thread_1_seq_14.686.932285357
archived log for thread 1 with sequence 15 is already on disk as file +FRA/ora11g/archivelog/2017_01_04/thread_1_seq_15.695.932421861
archived log for thread 1 with sequence 16 is already on disk as file +FRA/ora11g/archivelog/2017_01_05/thread_1_seq_16.681.932509917
archived log for thread 1 with sequence 17 is already on disk as file +FRA/ora11g/archivelog/2017_01_07/thread_1_seq_17.680.932645061
archived log for thread 1 with sequence 18 is already on disk as file +FRA/ora11g/archivelog/2017_01_11/thread_1_seq_18.678.933027901
archived log for thread 1 with sequence 19 is already on disk as file +FRA/ora11g/archivelog/2017_01_13/thread_1_seq_19.744.933206325
archived log for thread 1 with sequence 20 is already on disk as file +FRA/ora11g/archivelog/2017_01_14/thread_1_seq_20.691.933250341
archived log for thread 1 with sequence 21 is already on disk as file +FRA/ora11g/archivelog/2017_01_16/thread_1_seq_21.694.933461191
archived log for thread 1 with sequence 22 is already on disk as file +FRA/ora11g/archivelog/2017_01_16/thread_1_seq_22.687.933463007
archived log for thread 1 with sequence 23 is already on disk as file +FRA/ora11g/archivelog/2017_01_17/thread_1_seq_23.747.933548257
archived log for thread 1 with sequence 24 is already on disk as file +FRA/ora11g/archivelog/2017_01_22/thread_1_seq_24.685.933960955
archived log for thread 1 with sequence 25 is already on disk as file +FRA/ora11g/archivelog/2017_01_22/thread_1_seq_25.683.933962283
archived log for thread 1 with sequence 26 is already on disk as file +FRA/ora11g/archivelog/2017_01_24/thread_1_seq_26.673.934153529
archived log for thread 1 with sequence 27 is already on disk as file +FRA/ora11g/archivelog/2017_01_25/thread_1_seq_27.674.934236057
archived log for thread 1 with sequence 28 is already on disk as file +FRA/ora11g/archivelog/2017_01_28/thread_1_seq_28.693.934494303
archived log for thread 1 with sequence 29 is already on disk as file +FRA/ora11g/archivelog/2017_01_29/thread_1_seq_29.689.934554529
archived log for thread 1 with sequence 30 is already on disk as file +FRA/ora11g/archivelog/2017_01_29/thread_1_seq_30.751.934565793
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=5
channel ORA_AUX_DISK_1: reading from backup piece +FRA/ora11g/backupset/2016_12_10/annnf0_tag20161210t112137_0.688.930223297
channel ORA_AUX_DISK_1: piece handle=+FRA/ora11g/backupset/2016_12_10/annnf0_tag20161210t112137_0.688.930223297 tag=TAG20161210T112137
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
archived log file name=+FRA_DUP/bdupdb/archivelog/2017_01_29/thread_1_seq_5.258.934574675 thread=1 sequence=5
channel clone_default: deleting archived log(s)
archived log file name=+FRA_DUP/bdupdb/archivelog/2017_01_29/thread_1_seq_5.258.934574675 RECID=946 STAMP=934574676
archived log file name=+FRA/ora11g/archivelog/2016_12_10/thread_1_seq_6.696.930240039 thread=1 sequence=6
archived log file name=+FRA/ora11g/archivelog/2016_12_11/thread_1_seq_7.675.930349435 thread=1 sequence=7
archived log file name=+FRA/ora11g/archivelog/2016_12_13/thread_1_seq_8.697.930520873 thread=1 sequence=8
archived log file name=+FRA/ora11g/archivelog/2016_12_23/thread_1_seq_9.677.931384823 thread=1 sequence=9
archived log file name=+FRA/ora11g/archivelog/2016_12_23/thread_1_seq_10.682.931384937 thread=1 sequence=10
archived log file name=+FRA/ora11g/archivelog/2016_12_23/thread_1_seq_11.679.931384983 thread=1 sequence=11
archived log file name=+FRA/ora11g/archivelog/2016_12_25/thread_1_seq_12.684.931553913 thread=1 sequence=12
archived log file name=+FRA/ora11g/archivelog/2016_12_29/thread_1_seq_13.676.931901253 thread=1 sequence=13
archived log file name=+FRA/ora11g/archivelog/2017_01_03/thread_1_seq_14.686.932285357 thread=1 sequence=14
archived log file name=+FRA/ora11g/archivelog/2017_01_04/thread_1_seq_15.695.932421861 thread=1 sequence=15
archived log file name=+FRA/ora11g/archivelog/2017_01_05/thread_1_seq_16.681.932509917 thread=1 sequence=16
archived log file name=+FRA/ora11g/archivelog/2017_01_07/thread_1_seq_17.680.932645061 thread=1 sequence=17
archived log file name=+FRA/ora11g/archivelog/2017_01_11/thread_1_seq_18.678.933027901 thread=1 sequence=18
archived log file name=+FRA/ora11g/archivelog/2017_01_13/thread_1_seq_19.744.933206325 thread=1 sequence=19
archived log file name=+FRA/ora11g/archivelog/2017_01_14/thread_1_seq_20.691.933250341 thread=1 sequence=20
archived log file name=+FRA/ora11g/archivelog/2017_01_16/thread_1_seq_21.694.933461191 thread=1 sequence=21
archived log file name=+FRA/ora11g/archivelog/2017_01_16/thread_1_seq_22.687.933463007 thread=1 sequence=22
archived log file name=+FRA/ora11g/archivelog/2017_01_17/thread_1_seq_23.747.933548257 thread=1 sequence=23
archived log file name=+FRA/ora11g/archivelog/2017_01_22/thread_1_seq_24.685.933960955 thread=1 sequence=24
archived log file name=+FRA/ora11g/archivelog/2017_01_22/thread_1_seq_25.683.933962283 thread=1 sequence=25
archived log file name=+FRA/ora11g/archivelog/2017_01_24/thread_1_seq_26.673.934153529 thread=1 sequence=26
archived log file name=+FRA/ora11g/archivelog/2017_01_25/thread_1_seq_27.674.934236057 thread=1 sequence=27
archived log file name=+FRA/ora11g/archivelog/2017_01_28/thread_1_seq_28.693.934494303 thread=1 sequence=28
archived log file name=+FRA/ora11g/archivelog/2017_01_29/thread_1_seq_29.689.934554529 thread=1 sequence=29
archived log file name=+FRA/ora11g/archivelog/2017_01_29/thread_1_seq_30.751.934565793 thread=1 sequence=30
media recovery complete, elapsed time: 00:17:09
Finished recover at 29-JAN-17
contents of Memory Script:
{
   shutdown clone immediate;
   startup clone nomount;
   sql clone "alter system set  db_name = 
 ''BDUPDB'' comment=
 ''Reset to original value by RMAN'' scope=spfile";
   sql clone "alter system reset  db_unique_name scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script
database dismounted
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area     217157632 bytes
Fixed Size                     2211928 bytes
Variable Size                159387560 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5226496 bytes
sql statement: alter system set  db_name =  ''BDUPDB'' comment= ''Reset to original value by RMAN'' scope=spfile
sql statement: alter system reset  db_unique_name scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area     217157632 bytes
Fixed Size                     2211928 bytes
Variable Size                159387560 bytes
Database Buffers              50331648 bytes
Redo Buffers                   5226496 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "BDUPDB" RESETLOGS ARCHIVELOG 
  MAXLOGFILES     16
  MAXLOGMEMBERS      3
  MAXDATAFILES      100
  MAXINSTANCES     8
  MAXLOGHISTORY      584
 LOGFILE
  GROUP  1  SIZE 50 M ,
  GROUP  2  SIZE 50 M ,
  GROUP  3  SIZE 50 M 
 DATAFILE
  '+DATA_DUP/bdupdb/datafile/system.267.934573989'
 CHARACTER SET AL32UTF8
contents of Memory Script:
{
   set newname for clone tempfile  1 to new;
   switch clone tempfile all;
   catalog clone datafilecopy  "+DATA_DUP/bdupdb/datafile/sysaux.266.934573989", 
 "+DATA_DUP/bdupdb/datafile/undotbs1.265.934573989", 
 "+DATA_DUP/bdupdb/datafile/users.268.934573989", 
 "+DATA_DUP/bdupdb/datafile/example.264.934573989", 
 "+DATA_DUP/bdupdb/datafile/rcat_data.263.934573991";
   switch clone datafile all;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to +DATA_DUP in control file
cataloged datafile copy
datafile copy file name=+DATA_DUP/bdupdb/datafile/sysaux.266.934573989 RECID=1 STAMP=934575727
cataloged datafile copy
datafile copy file name=+DATA_DUP/bdupdb/datafile/undotbs1.265.934573989 RECID=2 STAMP=934575727
cataloged datafile copy
datafile copy file name=+DATA_DUP/bdupdb/datafile/users.268.934573989 RECID=3 STAMP=934575727
cataloged datafile copy
datafile copy file name=+DATA_DUP/bdupdb/datafile/example.264.934573989 RECID=4 STAMP=934575727
cataloged datafile copy
datafile copy file name=+DATA_DUP/bdupdb/datafile/rcat_data.263.934573991 RECID=5 STAMP=934575727
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=934575727 file name=+DATA_DUP/bdupdb/datafile/sysaux.266.934573989
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=934575727 file name=+DATA_DUP/bdupdb/datafile/undotbs1.265.934573989
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=934575727 file name=+DATA_DUP/bdupdb/datafile/users.268.934573989
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=934575727 file name=+DATA_DUP/bdupdb/datafile/example.264.934573989
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=934575727 file name=+DATA_DUP/bdupdb/datafile/rcat_data.263.934573991
contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 29-JAN-17

That's it!!!