oracle@testserver1.oric.no:[testdb01]# /sw/oracle/product/19c_230117/runInstaller -silent -createGoldImage -destinationLocation /sw/oracle/product Launching Oracle Database Setup Wizard... Successfully Setup Software. Gold Image location: /sw/oracle/product/db_home_2023-01-24_04-05-28PM.zip
Note that I use the -silent flag. Without it, I received the following two errors:
ERROR: Could not read any NLS message catalogue!
and
Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
ERROR: Could not read any NLS message catalogue!
and
Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
2. Transfer the zip file to your destination server using scp
ssh testserver2.oric.no su - oracle cd /sw/oracle/product scp testserver1:/sw/oracle/product/db_home_2023-01-24_04-05-28PM.zip .3. Make a directory for the new ORACLE_HOME
mkdir 19c_2301174. Unzip the image file
unzip -d 19c_230117 db_home_2023-01-24_04-05-28PM.zip5. create a simple script for the installation process
vi exec_runInstaller.sh; chmod 755 exec_runInstaller.shAdd the following to exec_runInstaller.sh:
#!/bin/bash
export GLOGFILE=/sw/oracle/product/exec_runInstaller.log
touch ${GLOGFILE}
chmod 666 ${GLOGFILE}
exec 1> ${GLOGFILE} 2>&1
echo "starting installer at " `date`
export CV_ASSUME_DISTID=OEL8.1
export NEW_ORACLE_HOME=/sw/oracle/product/19c_230117
cd $NEW_ORACLE_HOME
./runInstaller -silent -debug -force \
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0 \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=dba \
ORACLE_HOME=$NEW_ORACLE_HOME \
ORACLE_BASE=$ORACLE_BASE \
oracle.install.db.InstallEdition=EE \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_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 \
DECLINE_SECURITY_UPDATES=true
exit
Note that I enter the newly unpacked ORACLE_HOME to execute runInstaller.
6. execute the script
./exec_runInstaller.sh7. Run root scripts
Upon completion, check the logfile /sw/oracle/product/install_sw_${TS}.log and you are reminded to run two root scripts:
You can find the log of this install session at:
/home/oracle/oraInventory/logs/InstallActions2023-01-25_10-04-01AM/installActions2023-01-25_10-04-01AM.log
As a root user, execute the following script(s):
1. /sw/oracle/product/19c_230117/root.sh
Execute /sw/oracle/product/19c_230117/root.sh on the following nodes:
[testserver02.oric.no]
8. Verify that the new ORACLE_HOME is registered in the inventory
cat /home/oracle/oraInventory/ContentsXML/inventory.xmlOutput (abbreviated):
<HOME NAME="OraDB19Home1" LOC="/sw/oracle/product/19c_230117" TYPE="O" IDX="3"/>