Knowledge is Power – share IT



PurposeThis 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 -silentLaunching Oracle Database Setup Wizard...Successfully Setup Software.Gold Image location: /export/home/oracle/db_home_2020-05-12_10-45-20AM.ziporacle@db31:/opt/oracle/product/19.0.0$ $mv db_home_2020-05-12_10-45-20AM.zip 19c_Jan_PSU_Gold_Image.zipCopy the zip file to the target server oracle@db31:~$ scp -rp 19c_Jan_PSU_Gold_Image.zip oracle@db22:/export/home/oraclePassword:Create the directory structure for the ORACLE_HOME on the target server oracle@db22:~$ mkdir -p /opt/oracle/product/19.0.0/dbhome_1Unzip the fileoracle@db22:~$ mv 19c_Jan_PSU_Gold_Image.zip /opt/oracle/product/19.0.0/dbhome_1oracle@db22:~$ cd /opt/oracle/product/19.0.0/dbhome_1oracle@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.securityOracle Universal Installer (OUI) Methodoracle@db21:~$ cd /opt/oracle/product/19.0.0/dbhome_1oracle@db21:/opt/oracle/product/19.0.0/dbhome_1$ ./runInstallerExecute the root.sh script in the location shown aboveSilent Method$ export ORACLE_HOME=/opt/oracle/product/19.0.0/dbhome_2$ export ORA_INVENTORY=/opt/oracle/oraInventory $ export ORACLE_BASE=/opt/oracleoracle@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=dbaLaunching 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: /opt/oracle/product/19.0.0/dbhome_2/install/response/db_2020-05-12_12-58-05PM.rspYou 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.logAs a root user, execute the following script(s): 1. /opt/oracle/product/19.0.0/dbhome_2/root.shExecute /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_1oracle@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 lspatches30557433;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@db21:/opt/oracle/product/19.0.0/dbhome_1/OPatch$ ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download