Sunday, March 12, 2017

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

OS: Oracle Linux

DB: 11.2.0.1.0

1. First of all, copy all backup files (backupset, autobackup, archivelog files) to location '/u01/app/oracle/flash_recovery_area/bdupdb2'
2. Add the below entry in the /etc/oratab file
    BDUPDB2:/u01/app/oracle/product/11.2.0/dbhome_1:N
3. Create the TNS ENTRY in the tnsnames.ora file
    [loc:/u01/app/oracle/product/11.2.0/dbhome_1/network/admin]
    BDUPDB2 =
      (DESCRIPTION =
         (ADDRESS_LIST =
             (ADDRESS = (PROTOCOL = TCP)(HOST = orcl11g)(PORT = 1521))
      )
      ( CONNECT_DATA =
         (SERVER=DEDICATED)
         (SERVICE_NAME = BDUPDB2)
      )
    )  
4. 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 = BDUPDB2)
       (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
       (SID_NAME = BDUPDB2)
       )
     )
    .....
    Then start listener ([grid@orcl11g grid]$ lsnrctl start) 
5. Create initBDUPDB2.ora file (created at $ORACLE_HOME/dbs) with following parameters 
     Option 1:
     #####################
      db_name=BDUPDB2
      control_files='/u01/app/oracle/oradata/bdupdb2/control01.ctl','/u01/app/oracle/flash_recovery_area/bdupdb2/control02.ctl'
      db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
      db_recovery_file_dest_size=10737418240
      db_create_file_dest='/u01/app/oracle/oradata'
      
6. 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=orapwBDUPDB2 entries=5
    or just copy from source like
    [oracle11g@orcl11g~]cp $ORACLE_HOME/dbs/orapwORA11G $ORACLE_HOME/dbs/orapwBDUPDB2
7. Set environment for duplicated database as SID
     [oracle11g@orcl11g oracle]$ . oraenv
     ORACLE_SID = [ora11g] ? BDUPDB2
     The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
8. 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
 9. Connect to only auxiliary instance.
       [oracle11g@orcl11g Desktop]$ rman auxiliary=sys/222333@BDUPDB2
       Recovery Manager: Release 11.2.0.1.0 - Production on Fri Jan 6 13:26:37 2017
       Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
       connected to auxiliary database: BDUPDB2 (not mounted)
       RMAN>
10. We have some duplication options here.
       Option 1:
       RMAN> duplicate database to BDUPDB2 noredo
       2> backup location '/u01/app/oracle/flash_recovery_area/bdupdb2';
      Starting Duplicate Db at 06-JAN-17
      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  db_name = ''ORA11G'' comment= ''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name = ''BDUPDB2'' comment= ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   restore clone primary controlfile from  '/u01/app/oracle/flash_recovery_area/dupdb2/s_930223299.690.930223303';
   alter clone database mount;
}
executing Memory Script
sql statement: alter system set  db_name =  ''ORA11G'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set  db_unique_name =  ''BDUPDB2'' 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 06-JAN-17
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=95 device type=DISK
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/u01/app/oracle/oradata/dupdb2/control01.ctl
output file name=/u01/app/oracle/flash_recovery_area/dupdb2/control02.ctl
Finished restore at 06-JAN-17
database mounted
released channel: ORA_AUX_DISK_1
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=95 device type=DISK
contents of Memory Script:
{
   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 NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 06-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 /u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_system_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_sysaux_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_undotbs1_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_users_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_example_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_rcat_dat_%u_.dbf
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/dupdb2/nnndf0_TAG20161210T111827_0.692.930223111
channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/flash_recovery_area/dupdb2/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:02:35
Finished restore at 06-JAN-17
contents of Memory Script:
{
   switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=7 STAMP=932563838 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_system_d6yrs3v8_.dbf
datafile 2 switched to datafile copy input datafile copy RECID=8 STAMP=932563839 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_sysaux_d6yrs3vc_.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=9 STAMP=932563839 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_undotbs1_d6yrs3vw_.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=10 STAMP=932563839 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_users_d6yrs3sn_.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=11 STAMP=932563839 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_example_d6yrs3wd_.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=12 STAMP=932563839 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_rcat_dat_d6yrs3wv_.dbf
contents of Memory Script:
{
   recover
   clone database
   noredo
    delete archivelog;
}
executing Memory Script
Starting recover at 06-JAN-17
using channel ORA_AUX_DISK_1
Finished recover at 06-JAN-17
contents of Memory Script:
{
   shutdown clone immediate;
   startup clone nomount;
   sql clone "alter system set  db_name = 
 ''BDUPDB2'' 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 =  ''BDUPDB2'' 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 "BDUPDB2" RESETLOGS NOARCHIVELOG 
  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
  '/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_system_d6yrs3v8_.dbf'
 CHARACTER SET AL32UTF8
contents of Memory Script:
{
   set newname for clone tempfile  1 to new;
   switch clone tempfile all;
   catalog clone datafilecopy  "/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_sysaux_d6yrs3vc_.dbf", 
 "/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_undotbs1_d6yrs3vw_.dbf", 
 "/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_users_d6yrs3sn_.dbf", 
 "/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_example_d6yrs3wd_.dbf", 
 "/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_rcat_dat_d6yrs3wv_.dbf";
   switch clone datafile all;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to /u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_temp_%u_.tmp in control file
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_sysaux_d6yrs3vc_.dbf RECID=1 STAMP=932563920
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_undotbs1_d6yrs3vw_.dbf RECID=2 STAMP=932563920
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_users_d6yrs3sn_.dbf RECID=3 STAMP=932563920
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_example_d6yrs3wd_.dbf RECID=4 STAMP=932563920
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_rcat_dat_d6yrs3wv_.dbf RECID=5 STAMP=932563920
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=932563920 filename=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_sysaux_d6yrs3vc_.dbf
datafile 3 switched to datafile copy input datafile copy RECID=2 STAMP=932563920 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_undotbs1_d6yrs3vw_.dbf
datafile 4 switched to datafile copy input datafile copy RECID=3 STAMP=932563920 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_users_d6yrs3sn_.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=932563920 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_example_d6yrs3wd_.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=932563920 file name=/u01/app/oracle/oradata/dupdb2/BDUPDB2/datafile/o1_mf_rcat_dat_d6yrs3wv_.dbf
contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 06-JAN-17
RMAN> 
  
Option 2:
RMAN> duplicate database to BDUPDB2
2>         until time "to_date('12/23/2016 22:03:02', 'MM/DD/YYYY HH24:MI:SS')"                    
3>        backup location '/u01/app/oracle/flash_recovery_area/backup_ora11g';
Starting Duplicate Db at 06-JAN-17
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  db_name = 
 ''ORA11G'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name = 
 ''BDUPDB2'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   restore clone primary controlfile from  '/u01/app/oracle/flash_recovery_area/backup_ora11g/s_930223299.690.930223303';
   alter clone database mount;
}
executing Memory Script
sql statement: alter system set  db_name =  ''ORA11G'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set  db_unique_name =  ''BDUPDB2'' 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 06-JAN-17
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=95 device type=DISK
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:07
output file name=/u01/app/oracle/oradata/control01.ctl
output file name=/u01/app/oracle/flash_recovery_area/control02.ctl
Finished restore at 06-JAN-17
database mounted
released channel: ORA_AUX_DISK_1
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=95 device type=DISK
contents of Memory Script:
{
   set until scn  5139950;
   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 06-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 /u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_system_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00002 to /u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_sysaux_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_undotbs1_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_users_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_example_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00006 to /u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_rcat_dat_%u_.dbf
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/backup_ora11g/nnndf0_TAG20161210T111827_0.692.930223111
channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/flash_recovery_area/backup_ora11g/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:02:35
Finished restore at 06-JAN-17
contents of Memory Script:
{
   switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=7 STAMP=932569249 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_system_d6yy26nr_.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=8 STAMP=932569249 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_sysaux_d6yy26nv_.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=9 STAMP=932569249 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_undotbs1_d6yy26og_.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=10 STAMP=932569249 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_users_d6yy26jh_.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=11 STAMP=932569249 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_example_d6yy26ox_.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=12 STAMP=932569249 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_rcat_dat_d6yy26pc_.dbf
contents of Memory Script:
{
   shutdown clone immediate;
   startup clone nomount;
   sql clone "alter system set  db_name = 
 ''BDUPDB2'' 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 =  ''BDUPDB2'' 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 "BDUPDB2" 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
  '/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_system_d6yy26nr_.dbf'
 CHARACTER SET AL32UTF8
contents of Memory Script:
{
   set newname for clone tempfile  1 to new;
   switch clone tempfile all;
   catalog clone datafilecopy  "/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_sysaux_d6yy26nv_.dbf", 
 "/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_undotbs1_d6yy26og_.dbf", 
 "/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_users_d6yy26jh_.dbf", 
 "/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_example_d6yy26ox_.dbf", 
 "/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_rcat_dat_d6yy26pc_.dbf";
   switch clone datafile all;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to /u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_temp_%u_.tmp in control file
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_sysaux_d6yy26nv_.dbf RECID=1 STAMP=932569266
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_undotbs1_d6yy26og_.dbf RECID=2 STAMP=932569266
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_users_d6yy26jh_.dbf RECID=3 STAMP=932569266
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_example_d6yy26ox_.dbf RECID=4 STAMP=932569266
cataloged datafile copy
datafile copy file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_rcat_dat_d6yy26pc_.dbf RECID=5 STAMP=932569266
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=932569266 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_sysaux_d6yy26nv_.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=932569266 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_undotbs1_d6yy26og_.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=932569266 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_users_d6yy26jh_.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=932569266 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_example_d6yy26ox_.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=932569266 file name=/u01/app/oracle/oradata/BDUPDB2/datafile/o1_mf_rcat_dat_d6yy26pc_.dbf
contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 06-JAN-17
RMAN>

That's it!!!

No comments:

Post a Comment