Skip to main content

Step-by-Step: Oracle RMAN Active Duplication to New Host

This blog demonstrates how to duplicate an Oracle database from one host to another using Active Duplication. In this method, RMAN copies the live data files and control files from the source database to the destination, eliminating the need for a separate backup.

Prerequisites

  • Network connectivity must be established between the target and auxiliary databases.
  • The password file from the target (e.g., production) database must be copied to the auxiliary (test) database, as Active Duplication requires both to have the same SYS password.

Setup Overview

  • Server: host01 — Database: PROD

  • Server: host02 — Database: TEST

In this setup, the PROD database is already created, as described in the previous blog post. The second server (host02) has been configured with the same system setup, but without a database instance. The goal is to create a new instance on host02 and duplicate the PROD database from host01, effectively setting up a TEST environment.

Listener and tnsnames setup

[oracle@host01 ~]$ cat /u01/app/19/grid_1/network/admin/listener.ora
#Backup file is  /u01/app/oracle/crsdata/host01/output/listener.ora.bak.host01.oracle line added by Agent
# listener.ora Network Configuration File: /u01/app/19/grid_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = host01)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

SID_LIST_LISTENER =
 (SID_LIST =
   (SID_DESC =
    (GLOBAL_DBNAME = PROD_clone) # service name
    (ORACLE_HOME = /u01/app/oracle/product/19/dbhome_1/)
    (SID_NAME = PROD) # instance name
  )
)


ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent
VALID_NODE_CHECKING_REGISTRATION_LISTENER=ON            # line added by Agent
[oracle@host01 ~]$ lsnrctl status

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-OCT-2025 18:06:18

Copyright (c) 1991, 2025, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date                20-OCT-2025 17:56:03
Uptime                    0 days 0 hr. 10 min. 14 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/19/grid_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/host01/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host01)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_RECO" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "PROD" has 1 instance(s).
  Instance "PROD", status READY, has 1 handler(s) for this service...
Service "PRODXDB" has 1 instance(s).
  Instance "PROD", status READY, has 1 handler(s) for this service...
Service "PROD_clone" has 2 instance(s).
  Instance "PROD", status UNKNOWN, has 1 handler(s) for this service...
  Instance "PROD", status READY, has 1 handler(s) for this service...
The command completed successfully


[oracle@host02 ~]$ cat /u01/app/19/grid_1/network/admin/listener.ora
#Backup file is  /u01/app/oracle/crsdata/host02/output/listener.ora.bak.host02.oracle line added by Agent
# listener.ora Network Configuration File: /u01/app/19/grid_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = host02)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

SID_LIST_LISTENER =
 (SID_LIST =
   (SID_DESC =
    (GLOBAL_DBNAME = TEST_clone) # service name
    (ORACLE_HOME = /u01/app/oracle/product/19/dbhome_1/)
    (SID_NAME = TEST) # instance name
 )
)

ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent
VALID_NODE_CHECKING_REGISTRATION_LISTENER=ON            # line added by Agent
[oracle@host02 ~]$ lsnrctl status

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 20-OCT-2025 18:06:55

Copyright (c) 1991, 2025, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date                20-OCT-2025 17:56:13
Uptime                    0 days 0 hr. 10 min. 42 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/19/grid_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/host02/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host02)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_DATA" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "+ASM_RECO" has 1 instance(s).
  Instance "+ASM", status READY, has 1 handler(s) for this service...
Service "TEST" has 1 instance(s).
  Instance "TEST", status READY, has 1 handler(s) for this service...
Service "TEST_clone" has 1 instance(s).
  Instance "TEST", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Add service name to the database

[oracle@host01 ~]$ . oraenv <<< PROD
ORACLE_SID = [PROD] ? The Oracle base remains unchanged with value /u01/app/oracle
[oracle@host01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sun Oct 19 19:09:24 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.28.0.0.0

SQL> alter system set service_names='PROD_clone,PROD' scope=both;

System altered.

SQL> alter system register;

System altered.

SQL> show parameter service

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
service_names                        string      PROD_clone,PROD

Transferring the PFILE and password file

[oracle@host01 ~]$ . oraenv <<< PROD
ORACLE_SID = [oracle] ? The Oracle base has been set to /u01/app/oracle
[oracle@host01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sun Oct 19 17:03:46 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.28.0.0.0

SQL> create pfile='/tmp/initTEST.ora' from spfile;

File created.

SQL> exit
Disconnected from Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.28.0.0.0
[oracle@host01 ~]$ scp /tmp/TESTinit.ora oracle@host02:/u01/app/oracle/product/19/dbhome_1/dbs
oracle@host02's password:
initTEST.ora                                                                                              100% 1146     1.6MB/s   00:00

[oracle@host01 ~]$ scp /u01/app/oracle/product/19/dbhome_1/dbs/orapwPROD oracle@host02:/u01/app/oracle/product/19/dbhome_1/dbs/orapwTEST
oracle@host02's password:
orapwPROD                                                                                                 100% 2048     3.6MB/s   00:00

Adjusting pfile and creating database instance

[oracle@host02 dbs]$ pwd
/u01/app/oracle/product/19/dbhome_1/dbs
[oracle@host02 dbs]$ ls
init.ora  orapwTEST  initTEST.ora

[oracle@host02 dbs]$ cat initTEST.ora
*.audit_file_dest='/u01/app/oracle/admin/TEST/adump'
*.audit_trail='db'
*.compatible='19.0.0'
*.db_block_size=8192
*.db_create_file_dest='+DATA'
*.db_name='TEST'
*.db_recovery_file_dest='+RECO'
*.db_recovery_file_dest_size=7851m
*.diagnostic_dest='/u01/app/oracle'
*.log_archive_format='%t_%s_%r.dbf'
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=300
*.pga_aggregate_target=1470m
*.processes=560
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=4408m
*.undo_tablespace='UNDOTBS1'
[oracle@host02 dbs]$ mkdir -p /u01/app/oracle/admin/TEST/adump
[oracle@host02 dbs]$ export ORACLE_HOME=/u01/app/oracle/product/19/dbhome_1/
[oracle@host02 dbs]$ export ORACLE_SID=TEST
[oracle@host02 dbs]$ srvctl add database -db TEST -oraclehome $ORACLE_HOME -instance $ORACLE_SID -dbname $ORACLE_SID -diskgroup DATA,RECO -role primary -startoption open

Startup the instance and create spfile

[oracle@host02 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sun Oct 19 19:24:18 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup nomount;
ORACLE instance started.

Total System Global Area 4630510656 bytes
Fixed Size                  8948800 bytes
Variable Size             855638016 bytes
Database Buffers         3758096384 bytes
Redo Buffers                7827456 bytes
SQL> create spfile from pfile;

File created.
SQL> exit
Disconnected from Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.28.0.0.0

[oracle@host02 ~]$ . oraenv <<< +ASM
ORACLE_SID = [+ASM] ? The Oracle base remains unchanged with value /u01/app/oracle
[oracle@host02 ~]$ asmcmd
ASMCMD> lsdg
State    Type    Rebal  Sector  Logical_Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512             512   4096  4194304     51196    51088                0           51088              0             N  DATA/
MOUNTED  EXTERN  N         512             512   4096  4194304     51196    51100                0           51100              0             N  RECO/
ASMCMD> cd data
ASMCMD> ls
ASM/
TEST/
orapwasm
spfileTEST.ora
ASMCMD> ls -l spfileTEST.ora

Type           Redund  Striped  Time             Sys  Name
PARAMETERFILE  UNPROT  COARSE   OCT 19 19:00:00  N    spfileTEST.ora => +DATA/TEST/PARAMETERFILE/spfile.257.1214940327
ASMCMD> exit
[oracle@host02 ~]$ srvctl modify database -db TEST -spfile +DATA/TEST/PARAMETERFILE/spfile.257.1214940327
[oracle@host02 ~]$ srvctl config database -db TEST
Database unique name: TEST
Database name: TEST
Oracle home: /u01/app/oracle/product/19/dbhome_1/
Oracle user: oracle
Spfile: +DATA/TEST/PARAMETERFILE/spfile.257.1214940327
Password file:
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Disk Groups: DATA,RECO
Services:
OSDBA group:
OSOPER group:
Database instance: TEST

[oracle@host02 dbs]$ . oraenv <<< TEST
ORACLE_SID = [TEST] ? The Oracle base remains unchanged with value /u01/app/oracle
[oracle@host02 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sun Oct 19 19:34:00 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2025, Oracle.  All rights reserved.


Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.28.0.0.0

SQL> startup nomount force
ORACLE instance started.

Total System Global Area 4630510656 bytes
Fixed Size                  8948800 bytes
Variable Size             855638016 bytes
Database Buffers         3758096384 bytes
Redo Buffers                7827456 bytes
SQL> show parameter spfi

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string      +DATA/TEST/PARAMETERFILE/spfil
                                                 e.257.1214940327

Duplicate from active database

When duplicating an active database on the same host, the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters must be set to prevent overwriting production data. In this case, the duplication is performed on another host, so these parameters are not needed. The NOFILENAMECHECK option will be used to skip validation of data file and redo log file names when both hosts share the same directory structure and file names. f duplicating a database on the same host as the source, do not use NOFILENAMECHECK. Enabling it may cause RMAN to overwrite or corrupt existing data files, temp files, or online logs.

[oracle@host02 ~]$ . oraenv <<< TEST
ORACLE_SID = [TEST] ? The Oracle base remains unchanged with value /u01/app/oracle
[oracle@host02 ~]$ tnsping PROD_duplicate

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 19-OCT-2025 19:39:19

Copyright (c) 1997, 2025, Oracle.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host01)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PROD_clone)))
OK (0 msec)

[oracle@host02 ~]$ rman target sys/*****@PROD_duplicate auxiliary sys/*****@TEST_duplicate

Recovery Manager: Release 19.0.0.0.0 - Production on Sun Oct 19 22:31:55 2025
Version 19.28.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates.  All rights reserved.

connected to target database: PROD (DBID=626680420)
connected to auxiliary database: TEST (not mounted)

RMAN> duplicate database to 'TEST' from active database nofilenamecheck;
duplicate database to 'TEST' from active database nofilenamecheck;
Starting Duplicate Db at 19-OCT-25
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=352 device type=DISK
current log archived
duplicating Online logs to Oracle Managed File (OMF) location
duplicating Datafiles to Oracle Managed File (OMF) location

contents of Memory Script:
{
   sql clone "alter system set  control_files =
  ''+DATA/TEST/CONTROLFILE/current.258.1214951577'', ''+RECO/TEST/CONTROLFILE/current.256.1214951577'' comment=
 ''Set by RMAN'' scope=spfile";
   sql clone "alter system set  db_name =
 ''PROD'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name =
 ''TEST'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   restore clone from service  'PROD_duplicate' primary controlfile;
   alter clone database mount;
}
executing Memory Script

sql statement: alter system set  control_files =   ''+DATA/TEST/CONTROLFILE/current.258.1214951577'', ''+RECO/TEST/CONTROLFILE/current.256.1214951577'' comment= ''Set by RMAN'' scope=spfile

sql statement: alter system set  db_name =  ''PROD'' comment= ''Modified by RMAN duplicate'' scope=spfile

sql statement: alter system set  db_unique_name =  ''TEST'' comment= ''Modified by RMAN duplicate'' scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area    4630510656 bytes

Fixed Size                     8948800 bytes
Variable Size                855638016 bytes
Database Buffers            3758096384 bytes
Redo Buffers                   7827456 bytes

Starting restore at 19-OCT-25
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=357 device type=DISK

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service PROD_duplicate
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=+DATA/TEST/CONTROLFILE/current.258.1214951577
output file name=+RECO/TEST/CONTROLFILE/current.256.1214951577
Finished restore at 19-OCT-25

database mounted

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;
   restore
   from  nonsparse   from service
 'PROD_duplicate'   clone database
   ;
   sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 19-OCT-25
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service PROD_duplicate
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service PROD_duplicate
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00002 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service PROD_duplicate
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00003 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: using network backup set from service PROD_duplicate
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00004 to +DATA
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 19-OCT-25

sql statement: alter system archive log current
current log archived

contents of Memory Script:
{
   restore clone force from service  'PROD_duplicate'
           archivelog from scn  947211;
   switch clone datafile all;
}
executing Memory Script

Starting restore at 19-OCT-25
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service PROD_duplicate
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=20
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: using network backup set from service PROD_duplicate
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=21
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 19-OCT-25

datafile 1 switched to datafile copy
input datafile copy RECID=5 STAMP=1214951628 file name=+DATA/TEST/DATAFILE/system.260.1214951615
datafile 2 switched to datafile copy
input datafile copy RECID=6 STAMP=1214951628 file name=+DATA/TEST/DATAFILE/sysaux.261.1214951619
datafile 3 switched to datafile copy
input datafile copy RECID=7 STAMP=1214951628 file name=+DATA/TEST/DATAFILE/undotbs1.262.1214951621
datafile 4 switched to datafile copy
input datafile copy RECID=8 STAMP=1214951628 file name=+DATA/TEST/DATAFILE/users.263.1214951625

contents of Memory Script:
{
   set until scn  947314;
   recover
   clone database
    delete archivelog
   ;
}
executing Memory Script

executing command: SET until clause

Starting recover at 19-OCT-25
using channel ORA_AUX_DISK_1

starting media recovery

archived log for thread 1 with sequence 20 is already on disk as file +RECO/TEST/ARCHIVELOG/2025_10_19/thread_1_seq_20.258.1214951627
archived log for thread 1 with sequence 21 is already on disk as file +RECO/TEST/ARCHIVELOG/2025_10_19/thread_1_seq_21.259.1214951627
archived log file name=+RECO/TEST/ARCHIVELOG/2025_10_19/thread_1_seq_20.258.1214951627 thread=1 sequence=20
archived log file name=+RECO/TEST/ARCHIVELOG/2025_10_19/thread_1_seq_21.259.1214951627 thread=1 sequence=21
media recovery complete, elapsed time: 00:00:00
Finished recover at 19-OCT-25

contents of Memory Script:
{
   delete clone force archivelog all;
}
executing Memory Script

released channel: ORA_AUX_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=633 device type=DISK
deleted archived log
archived log file name=+RECO/TEST/ARCHIVELOG/2025_10_19/thread_1_seq_20.258.1214951627 RECID=1 STAMP=1214951626
deleted archived log
archived log file name=+RECO/TEST/ARCHIVELOG/2025_10_19/thread_1_seq_21.259.1214951627 RECID=2 STAMP=1214951627
Deleted 2 objects

Oracle instance started

Total System Global Area    4630510656 bytes

Fixed Size                     8948800 bytes
Variable Size                855638016 bytes
Database Buffers            3758096384 bytes
Redo Buffers                   7827456 bytes

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''TEST'' comment=
 ''Reset to original value by RMAN'' scope=spfile";
   sql clone "alter system reset  db_unique_name scope=spfile";
}
executing Memory Script

sql statement: alter system set  db_name =  ''TEST'' comment= ''Reset to original value by RMAN'' scope=spfile

sql statement: alter system reset  db_unique_name scope=spfile
Oracle instance started

Total System Global Area    4630510656 bytes

Fixed Size                     8948800 bytes
Variable Size                855638016 bytes
Database Buffers            3758096384 bytes
Redo Buffers                   7827456 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "TEST" RESETLOGS ARCHIVELOG
  MAXLOGFILES     16
  MAXLOGMEMBERS      3
  MAXDATAFILES      100
  MAXINSTANCES     8
  MAXLOGHISTORY      292
 LOGFILE
  GROUP     1  SIZE 200 M ,
  GROUP     2  SIZE 200 M ,
  GROUP     3  SIZE 200 M
 DATAFILE
  '+DATA/TEST/DATAFILE/system.260.1214951615'
 CHARACTER SET AL32UTF8


contents of Memory Script:
{
   set newname for clone tempfile  1 to new;
   switch clone tempfile all;
   catalog clone datafilecopy  "+DATA/TEST/DATAFILE/sysaux.261.1214951619",
 "+DATA/TEST/DATAFILE/undotbs1.262.1214951621",
 "+DATA/TEST/DATAFILE/users.263.1214951625";
   switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to +DATA in control file

cataloged datafile copy
datafile copy file name=+DATA/TEST/DATAFILE/sysaux.261.1214951619 RECID=1 STAMP=1214951669
cataloged datafile copy
datafile copy file name=+DATA/TEST/DATAFILE/undotbs1.262.1214951621 RECID=2 STAMP=1214951669
cataloged datafile copy
datafile copy file name=+DATA/TEST/DATAFILE/users.263.1214951625 RECID=3 STAMP=1214951669

datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=1214951669 file name=+DATA/TEST/DATAFILE/sysaux.261.1214951619
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=1214951669 file name=+DATA/TEST/DATAFILE/undotbs1.262.1214951621
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=1214951669 file name=+DATA/TEST/DATAFILE/users.263.1214951625

contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script

database opened
Finished Duplicate Db at 19-OCT-25

Comments

Popular posts from this blog

In-Place Upgrade from Oracle Linux 7 to 8 Using LEAPP

Upgrading from Oracle Linux 7 to Oracle Linux 8 is important to keep your system secure, stable, and supported. Oracle Linux 7 is now out of support, which means it no longer receives updates, security patches, or fixes. Moving to Oracle Linux 8 ensures you continue getting updates, new features, and better performance. The LEAPP tool makes this upgrade easier by allowing an in-place upgrade, so you don’t need to reinstall the system from scratch. It checks if your system is ready, identifies potential issues, and helps guide you through the upgrade process. This guide will walk you through the basic steps and requirements to successfully upgrade Oracle Linux 7 to Oracle Linux 8 using LEAPP. Oracle Lifetime Support Policy Regarding upgrading Oracle Linux 7 to Oracle Linux 8, here are a few key points to consider: Review the official documentation thoroughly before starting the upgrade process Ensure you have a complete backup in place, as this is an in-place upgrade and you may n...

Step-by-Step Guide to Renewing OLVM Certificates in Version 4.3

Managing certificates is a critical administrative task in Oracle Linux Virtualization Manager (OLVM) environments, as expired certificates can result in host disconnections, authentication failures, and service disruptions. In this article, we will cover the process of renewing certificates in OLVM version 4.3 before they expire, ensuring secure communication between the engine and managed KVM hosts. For this procedure, we will use the OlvmKvmCerts utility provided by Oracle to renew the required certificates. In OLVM 4.3, although some engine-related certificates can be renewed using the engine-setup command, not all certificates are automatically refreshed. Certain components require manual renewal because the certificate renewal process in this version is not fully automated. It is important to note that this limitation has been addressed in  OLVM 4.4.10.7-1.0.24 and later.  Additionally, OLVM 4.3 has been unsupported since October 2022, and OLVM 4.4 reached end of su...

Oracle 19c: Data Guard Physical Standby Setup Guide

In this blog post, we’ll walk through the process of creating a Data Guard Physical Standby database in Oracle Database 19c, where ASM (Automatic Storage Management) and OMF (Oracle Managed Files) are used for storage management.  Setting up a standby database with Data Guard enhances the high availability, disaster recovery, and data protection capabilities of your Oracle environment.  By leveraging ASM and OMF, we simplify file management and ensure optimal performance and flexibility. This guide provides a step-by-step approach, from preparing the primary database to configuring the standby environment, ensuring a smooth and reliable setup. Environment Overview In this setup, we have two database servers configured for a Data Guard Physical Standby environment: Primary Server : server-graz – This server hosts the primary database named graz . Standby Server : server-salzburg – This server will act as the physical standby. Both servers are configured to use ASM (Au...