0% found this document useful (0 votes)
182 views17 pages

Purpose: Create The Gold Image

This document describes how to clone an Oracle 19c database software installation using the new Oracle 19c option to create a 'gold image' zip file. It involves creating the gold image on a source server, copying the zip file to target servers, extracting it in the Oracle home directory, and then using the Oracle Universal Installer or running a silent installation script to complete the setup. The procedure allows for an identical Oracle 19c software environment across multiple servers and ensures all servers are patched to the same January 2020 level.

Uploaded by

yerzal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
182 views17 pages

Purpose: Create The Gold Image

This document describes how to clone an Oracle 19c database software installation using the new Oracle 19c option to create a 'gold image' zip file. It involves creating the gold image on a source server, copying the zip file to target servers, extracting it in the Oracle home directory, and then using the Oracle Universal Installer or running a silent installation script to complete the setup. The procedure allows for an identical Oracle 19c software environment across multiple servers and ensures all servers are patched to the same January 2020 level.

Uploaded by

yerzal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Purpose

This note describes the procedure used to clone an Oracle 19c database software ORACLE_HOME.

As a one-time task, we use the new Oracle 19c option –createGoldImage to create a ‘master’ copy of the Oracle 19c database software (this will include
January 2020 PSU patch).

The generated zip file is then copied to the target servers and then extracted in the target ORACLE_HOME directory.

The note describes the ‘silent’ method as well as using the OUI to set up the Oracle 19c database software.

Create the Gold Image

oracle@db31:/opt/oracle/product/19.0.0$ $ORACLE_HOME/runInstaller -createGoldImage -destinationLocation $HOME -silent


Launching Oracle Database Setup Wizard...

Successfully Setup Software.


Gold Image location: /export/home/oracle/db_home_2020-05-12_10-45-20AM.zip

oracle@db31:/opt/oracle/product/19.0.0$ $mv db_home_2020-05-12_10-45-20AM.zip 19c_Jan_PSU_Gold_Image.zip

Copy the zip file to the target server

oracle@db31:~$ scp -rp 19c_Jan_PSU_Gold_Image.zip oracle@db22:/export/home/oracle


Password:

Oracle 19c Software Cloning


1
Create the directory structure for the ORACLE_HOME on the target server

oracle@db22:~$ mkdir -p /opt/oracle/product/19.0.0/dbhome_1

Unzip the file

oracle@db22:~$ mv 19c_Jan_PSU_Gold_Image.zip /opt/oracle/product/19.0.0/dbhome_1

oracle@db22:~$ cd /opt/oracle/product/19.0.0/dbhome_1

oracle@db22:/opt/oracle/product/19.0.0/dbhome_1$ unzip 19c_Jan_PSU_Gold_Image.zip

..
..
javavm/admin/libjtcjt.so -> ../../javavm/jdk/jdk8/admin/libjtcjt.so
javavm/admin/classes.bin -> ../../javavm/jdk/jdk8/admin/classes.bin
javavm/admin/lfclasses.bin -> ../../javavm/jdk/jdk8/admin/lfclasses.bin
javavm/lib/security/cacerts -> ../../../javavm/jdk/jdk8/lib/security/cacerts
javavm/lib/sunjce_provider.jar -> ../../javavm/jdk/jdk8/lib/sunjce_provider.jar
javavm/lib/security/README.txt -> ../../../javavm/jdk/jdk8/lib/security/README.txt
javavm/lib/security/java.security -> ../../../javavm/jdk/jdk8/lib/security/java.security

Oracle 19c Software Cloning


2
Oracle Universal Installer (OUI) Method

oracle@db21:~$ cd /opt/oracle/product/19.0.0/dbhome_1

oracle@db21:/opt/oracle/product/19.0.0/dbhome_1$ ./runInstaller

Oracle 19c Software Cloning


3
Oracle 19c Software Cloning
4
Oracle 19c Software Cloning
5
Oracle 19c Software Cloning
6
Oracle 19c Software Cloning
7
Oracle 19c Software Cloning
8
Oracle 19c Software Cloning
9
Oracle 19c Software Cloning
10
Oracle 19c Software Cloning
11
Oracle 19c Software Cloning
12
Oracle 19c Software Cloning
13
Execute the root.sh script in the location shown above

Oracle 19c Software Cloning


14
Silent Method

$ export ORACLE_HOME=/opt/oracle/product/19.0.0/dbhome_2

$ export ORA_INVENTORY=/opt/oracle/oraInventory

$ export ORACLE_BASE=/opt/oracle

oracle@db31:/opt/oracle/product/19.0.0/dbhome_2$ ./runInstaller -ignorePrereq -waitforcompletion -silent \


ORACLE_BASE=${ORACLE_BASE} \
> -responseFile ${ORACLE_HOME}/install/response/db_install.rsp \
> oracle.install.option=INSTALL_DB_SWONLY \
> UNIX_GROUP_NAME=dba \
> INVENTORY_LOCATION=${ORA_INVENTORY} \
oracle.install.db.OSDGDBA_GROUP=dba \
> ORACLE_HOME=${ORACLE_HOME} \
oracle.install.db.OSKMDBA_GROUP=dba \
> ORACLE_BASE=${ORACLE_BASE} \
> 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

Launching Oracle Database Setup Wizard...

[WARNING] [INS-32056] The specified Oracle Base contains the existing Central Inventory location: /opt/oracle/oraInventory.
ACTION: Oracle recommends that the Central Inventory location is outside the Oracle Base directory. Specify a different location for the Oracle Base.
The response file for this session can be found at:

Oracle 19c Software Cloning


15
/opt/oracle/product/19.0.0/dbhome_2/install/response/db_2020-05-12_12-58-05PM.rsp

You can find the log of this install session at:


/opt/oracle/oraInventory/logs/InstallActions2020-05-12_12-58-05PM/installActions2020-05-12_12-58-05PM.log

As a root user, execute the following script(s):


1. /opt/oracle/product/19.0.0/dbhome_2/root.sh

Execute /opt/oracle/product/19.0.0/dbhome_2/root.sh on the following nodes:


[db31]

Successfully Setup Software.

Verify installed patches (Jan 2020

oracle@db21:/opt/oracle/product/19.0.0/dbhome_1$ export ORACLE_HOME=/opt/oracle/product/19.0.0/dbhome_1

oracle@db21:/opt/oracle/product/19.0.0/dbhome_1$ cd $ORACLE_HOME/OPatch/

oracle@db21:/opt/oracle/product/19.0.0/dbhome_1/OPatch$ ./opatch lspatches

30557433;Database Release Update : 19.6.0.0.200114 (30557433)

30484981;OJVM RELEASE UPDATE: 19.6.0.0.200114 (30484981)

29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

OPatch succeeded.

Oracle 19c Software Cloning


16
oracle@db21:/opt/oracle/product/19.0.0/dbhome_1/OPatch$

Oracle 19c Software Cloning


17

You might also like