Skip to content

Insight and analysis of technology and business strategy

How to install 18c Grid Infrastructure in Silent Mode on Linux 7

This blog post will show you how to install 18c Grid and upgrade to 1. Download the 18c binairy and Apr, 2019 PSU:
18c Grid: Apr 2019 PSU: OPatch
2. Prepare OS for Oracle installation, run following commands as root user:
yum install -y oracle-database-preinstall-18c yum install oracleasmlib yum install oracleasm-support
3. Prepare the disks for ASM using oracleasm or udev:
*** Create the disks using oracleasm ***
  • Configure oracleasm
# oracleasm configure -i
  • load oracleasm module
# oracleasm init
  • Create the disk for ASM diskgroup
# oracleasm createdisk asmvol001 /dev/sdb1 # oracleasm createdisk asmvol002 /dev/sdc1
*** Create the disks using udev ***
  • Obtain the Serial Numbers of the SCSI disk devices
# udevadm info --query=all --path=/sys/block/sdb | grep ID_SERIAL
 E: ID_SERIAL=VBOX_HARDDISK_VB699f3fca-4ea7d16b
 E: ID_SERIAL_SHORT=VB699f3fca-4ea7d16b
# udevadm info --query=all --path=/sys/block/sdc | grep ID_SERIAL
 E: ID_SERIAL=VBOX_HARDDISK_VB29b82c85-78d7b697
 E: ID_SERIAL_SHORT=VB29b82c85-78d7b697
  • Create or update the UDEV configuration file "/etc/udev/rules.d/99-oracleasm.rules"
# ====== DATADG DiskGroup ====== KERNEL=="sd*",ENV{DEVTYPE}=="partition",ENV{ID_SERIAL}=="VBOX_HARDDISK_VB699f3fca-4ea7d16b",SYMLINK+="oracleasm/asmvol001",OWNER="oracle",GROUP="dba",MODE="0660" KERNEL=="sd*",ENV{DEVTYPE}=="partition",ENV{ID_SERIAL}=="VBOX_HARDDISK_VB29b82c85-78d7b697",SYMLINK+="oracleasm/asmvol002",OWNER="oracle",GROUP="dba",MODE="0660"
  • Restart the udev service and verify device permissions
# /sbin/udevadm control --reload-rules && /sbin/udevadm trigger
  • Confirm that the devices have been created under /dev/oracleasm
# ls -ld /dev/oracleasm/* lrwxrwxrwx 1 root root 7 July 4 10:35 /dev/oracleasm/asmvol001 -> ../sdb1 lrwxrwxrwx 1 root root 7 July 4 10:35 /dev/oracleasm/asmvol002 -> ../sdc1
  • Check if they have the proper owner/group permissions in /dev
# ls -ld /dev/sd* brw-rw---- 1 oracle dba 8, 49 July 4 10:35 /dev/sdb1 brw-rw---- 1 oracle dba 8, 65 July 4 10:35 /dev/sdc1
4. Install Grid Infrastructure software
  • Create the directory
# mkdir -p /u01/app/oracle/product/
  • Unzip the binary as oracle user
# cd /u01/app/oracle/product/ # unzip
  • Install cvuqdisk as root user
# rpm -ivh /u01/app/oracle/product/
  • Prepare the response file
# cat /tmp/gi.rsp | grep -v "^$" | grep -v "^#" oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v18.0.0 INVENTORY_LOCATION=/u01/app/oracle/oraInventory oracle.install.option=HA_CONFIG ORACLE_BASE=/u01/app/oracle oracle.install.asm.OSDBA=oinstall oracle.install.asm.OSOPER=oinstall oracle.install.asm.OSASM=oinstall oracle.install.asm.configureGIMRDataDG= oracle.install.asm.storageOption=ASM oracle.install.asmOnNAS.ocrLocation= oracle.install.asmOnNAS.configureGIMRDataDG= oracle.install.asmOnNAS.gimrLocation= oracle.install.asm.SYSASMPassword=oracle oracle.install.asm.diskGroup.redundancy=EXTERNAL oracle.install.asm.diskGroup.AUSize= oracle.install.asm.diskGroup.FailureGroups= oracle.install.asm.diskGroup.disksWithFailureGroupNames= oracle.install.asm.diskGroup.disks=/dev/oracleasm/asmvol001,/dev/oracleasm/asmvol002 oracle.install.asm.diskGroup.quorumFailureGroupNames= oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/* oracle.install.asm.monitorPassword=oracle oracle.install.asm.gimrDG.redundancy= oracle.install.asm.gimrDG.AUSize= oracle.install.asm.gimrDG.FailureGroups= oracle.install.asm.gimrDG.disksWithFailureGroupNames= oracle.install.asm.gimrDG.disks= oracle.install.asm.gimrDG.quorumFailureGroupNames= oracle.install.asm.configureAFD=false oracle.install.config.managementOption= oracle.install.config.omsHost= oracle.install.config.omsPort= oracle.install.config.emAdminUser= oracle.install.config.emAdminPassword=
  • Perform Installation PreCheck as Oracle user
# /u01/app/oracle/product/ stage -pre hacfg
  • Install 18c Grid Infrastructure as Oracle user
# /u01/app/oracle/product/ -silent -responseFile /tmp/gi.rsp
  • As a root user, execute the following script(s)
1. /u01/app/oracle/oraInventory/ 2. /u01/app/oracle/product/
  • As an Oracle user, execute the following script
/u01/app/oracle/product/ -executeConfigTools -responseFile /tmp/gi.rsp -silent
  • Verify the installation as Oracle user
# /u01/app/oracle/product/ stage -post hacfg
5. Upgrade OPatch to the latest version Since current version is and you have to upgrade opatch to at least
  • As a root user, run following commands
# cd /u01/app/oracle/product/ # mv OPatch OPatch_old # unzip -q # chown oracle:dba OPatch
  • Verify the opatch version
# /u01/app/oracle/product/ version
6. Apply Apr 2019 PSU
  • As an Oracle user, run following commands (/home/oracle/patch is the location where you save Apr 2019 PSU)
# cd /home/oracle/patch # unzip -q
  • As a root user, run the prerequisites
# cd /home/oracle/patch/29251992/29301682 # /u01/app/oracle/product/ apply -oh /u01/app/oracle/product/ -analyze
  • Still as a root user, apply the patch if the prerequisites runs successfully
# /u01/app/oracle/product/ apply -oh /u01/app/oracle/product/
  • As an Oracle user, verify the patch is installed
# /u01/app/oracle/product/ lsinventory

Top Categories

  • There are no suggestions because the search field is empty.

Tell us how we can help!