Hot - Cloning - 19C (CDB) - 119
Hot - Cloning - 19C (CDB) - 119
What is Cloning?
Hot Cloning:
Hot cloning enables the creation of a new database (PDB or non-CDB) from an
existing one without requiring the source database to be shut down or put into read-
only mode.
Prerequisites:
⚫ The Target server should have the oracle database installed (only software need
to be installed).
⚫ Make Database to archivelog mode.
⚫ Note the control file, logfile, datafile, pfile, archivelog location.
⚫ Take control file backup as trace file.
Server Details:
In Source database:
➢ Control file,
➢ Logfile,
➢ Archive log,
cd $ORACLE_HOME/dbs/initPROD.ora
⚫ Copy the files from the source to the target server using scp command.
Datafile:
Logfile:
Archivelog:
Copy Pfile:
⚫ In Target Server:
⚫ Now open (In Target Server) the pfile and make changes. Also, create audit file
manually.
PROD.__data_transfer_cache_size=0
PROD.__db_cache_size=1828716544
PROD.__inmemory_ext_roarea=0
PROD.__inmemory_ext_rwarea=0
PROD.__java_pool_size=0
PROD.__large_pool_size=16777216
PROD.__oracle_base='/u01/apps/oracle/server/19c'#ORACLE_BASE set from
environment
PROD.__pga_aggregate_target=838860800
PROD.__sga_target=2516582400
PROD.__shared_io_pool_size=134217728
PROD.__shared_pool_size=520093696
PROD.__streams_pool_size=0
PROD.__unified_pga_pool_size=0
*.audit_file_dest='/u01/apps/oracle/server/19c/admin/BKP/adump'
*.audit_trail='db'
*.compatible='19.0.0'
*.control_files='/u01/apps/oracle/server/19c/oradata/BKP/control01.ctl','/u01/apps/
oracle/server/19c/oradata/BKP/control02.ctl'
*.db_block_size=8192
*.db_name='BKP'
*.diagnostic_dest='/u01/apps/oracle/server/19c'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=PRODXDB)'
*.local_listener='LISTENER_PROD'
*.nls_language='AMERICAN'
*.nls_territory='AMERICA'
*.open_cursors=300
*.pga_aggregate_target=797m
*.processes=300
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=2389m
*.undo_tablespace='UNDOTBS1'
➢ Create adump directory,
⚫ Modify the Control File in the Target server by creating a .sql and giving the
required command,