How to clone an Oracle Home in 19c

How to clone an Oracle Home in 19c

In Oracle 19c the way that we clone an Oracle Home has changed. Before you had to zip or tar the original ORACLE_HOME , untar to the desired location and use the script So it you try to use it in 19c you will get the message below:

[oracle@reneace01 ]$ /u01/app/oracle/product/  /u01/app/oracle/product/  \
> ORACLE_BASE=/u01/app/oracle \
> ORACLE_HOME=/u01/app/oracle/product/ \

[INFO] [INS-32183] Use of is deprecated in this release. Clone operation is equivalent to performing a Software Only installation from the image.
You must use /u01/app/oracle/product/ script available to perform the Software Only install. For more details on image based installation, refer to help documentation.

Now in Oracle 19c we create a gold image to a backup location

[oracle@reneace01 ]$ echo $ORACLE_HOME
[oracle@reneace01 ]$ $ORACLE_HOME/runInstaller -silent  -createGoldImage -destinationLocation /u01/software/19c_dbhome
Launching Oracle Database Setup Wizard...

Successfully Setup Software.
Gold Image location: /u01/software/19c_dbhome/

Once you have created a gold image, you now unzip it to your new ORACLE_HOME

[oracle@reneace01 ]$ unzip -q /u01/software/19c_dbhome/ -d /u01/app/oracle/product/
[oracle@reneace01 ]$ unset ORACLE_HOME
[oracle@reneace01 ]$ unset ORACLE_SID
[oracle@reneace01 ]$ unset ORACLE_RSID
[oracle@reneace01 ]$ unset ORACLE_UNQNAME
[oracle@reneace01 ]$ unset ORACLE_BASE
[oracle@reneace01 ]$ export ORACLE_HOME=/u01/app/oracle/product/
[oracle@reneace01 ]$ export ORACLE_HOSTNAME=reneace01
[oracle@reneace01 ]$ export ORA_INVENTORY=/u01/app/oraInventory
[oracle@reneace01 ]$ export NODE1_HOSTNAME=reneace01
[oracle@reneace01 ]$ export NODE2_HOSTNAME=reneace02
[oracle@reneace01 ]$ export ORACLE_BASE=/u01/app/oracle

[oracle@reneace01 ]$ ${ORACLE_HOME}/runInstaller -ignorePrereq -waitforcompletion -silent \
-responseFile ${ORACLE_HOME}/install/response/db_install.rsp \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
oracle.install.db.InstallEdition=EE \
oracle.install.db.OSDBA_GROUP=dba \
oracle.install.db.OSOPER_GROUP=dba \
oracle.install.db.OSBACKUPDBA_GROUP=dba \
oracle.install.db.OSDGDBA_GROUP=dba \
oracle.install.db.OSKMDBA_GROUP=dba \
oracle.install.db.OSRACDBA_GROUP=dba \
oracle.install.db.isRACOneInstall=false \
oracle.install.db.rac.serverpoolCardinality=0 \
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE \
oracle.install.db.ConfigureAsContainerDB=false \

Launching Oracle Database Setup Wizard...

The response file for this session can be found at:

You can find the log of this install session at:

As a root user, execute the following script(s):
1. /u01/app/oracle/product/

Execute /u01/app/oracle/product/ on the following nodes:
[reneace01, reneace02]

Successfully Setup Software.

As root

[root@reneace01 ~]# /u01/app/oracle/product/
Check /u01/app/oracle/product/ for the output of root script
[root@reneace02 ~]# /u01/app/oracle/product/
Check /u01/app/oracle/product/ for the output of root script

As you can see , it is different as to how we use to clone in previous versions, but by no means more complex. 



Rene Antunez
1 Comment

Leave a Reply