How to install 18c Grid Infrastructure in Silent Mode on Linux 7
18c Grid: https://download.oracle.com/otn/linux/oracle18c/180000/LINUX.X64_180000_grid_home.zip Apr 2019 PSU: https://updates.oracle.com/Orion/Services/download/p29251992_180000_Linux-x86-64.zip?aru=22869122&patch_file=p29251992_180000_Linux-x86-64.zip OPatch 12.2.0.1.17: https://updates.oracle.com/Orion/Services/download/p6880880_180000_Linux-x86-64.zip?aru=22870225&patch_file=p6880880_180000_Linux-x86-64.zip2. Prepare OS for Oracle installation, run following commands as root user:
yum install -y oracle-database-preinstall-18c yum install oracleasmlib yum install oracleasm-support3. 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/sdc14. Install Grid Infrastructure software
- Create the directory
# mkdir -p /u01/app/oracle/product/18.0.0.0/grid
- Unzip the binary as oracle user
# cd /u01/app/oracle/product/18.0.0.0/grid/ # unzip LINUX.X64_180000_grid_home.zip
- Install cvuqdisk as root user
# rpm -ivh /u01/app/oracle/product/18.0.0.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm
- 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.crs.config.scanType= oracle.install.crs.config.SCANClientDataFile= oracle.install.crs.config.gpnp.scanName= oracle.install.crs.config.gpnp.scanPort= oracle.install.crs.config.ClusterConfiguration= oracle.install.crs.config.configureAsExtendedCluster= oracle.install.crs.config.memberClusterManifestFile= oracle.install.crs.config.clusterName= oracle.install.crs.config.gpnp.configureGNS= oracle.install.crs.config.autoConfigureClusterNodeVIP= oracle.install.crs.config.gpnp.gnsOption= oracle.install.crs.config.gpnp.gnsClientDataFile= oracle.install.crs.config.gpnp.gnsSubDomain= oracle.install.crs.config.gpnp.gnsVIPAddress= oracle.install.crs.config.sites= oracle.install.crs.config.clusterNodes= oracle.install.crs.config.networkInterfaceList= oracle.install.asm.configureGIMRDataDG= oracle.install.crs.config.storageOption= oracle.install.crs.config.useIPMI= oracle.install.crs.config.ipmi.bmcUsername= oracle.install.crs.config.ipmi.bmcPassword= 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.name=DATA 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.name= 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.crs.configureRHPS= oracle.install.crs.config.ignoreDownNodes= oracle.install.config.managementOption= oracle.install.config.omsHost= oracle.install.config.omsPort= oracle.install.config.emAdminUser= oracle.install.config.emAdminPassword= oracle.install.crs.rootconfig.executeRootScript= oracle.install.crs.rootconfig.configMethod= oracle.install.crs.rootconfig.sudoPath= oracle.install.crs.rootconfig.sudoUserName= oracle.install.crs.config.batchinfo= oracle.install.crs.app.applicationAddress= oracle.install.crs.deleteNode.nodes=
- Perform Installation PreCheck as Oracle user
# /u01/app/oracle/product/18.0.0.0/grid/bin/runcluvfy.sh stage -pre hacfg
- Install 18c Grid Infrastructure as Oracle user
# /u01/app/oracle/product/18.0.0.0/grid/gridSetup.sh -silent -responseFile /tmp/gi.rsp
- As a root user, execute the following script(s)
1. /u01/app/oracle/oraInventory/orainstRoot.sh 2. /u01/app/oracle/product/18.0.0.0/grid/root.sh
- As an Oracle user, execute the following script
/u01/app/oracle/product/18.0.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /tmp/gi.rsp -silent
- Verify the installation as Oracle user
5. Upgrade OPatch to the latest version Since current version is 12.2.0.1.14 and you have to upgrade opatch to at least 12.2.0.1.16.# /u01/app/oracle/product/18.0.0.0/grid/bin/cluvfy stage -post hacfg
- As a root user, run following commands
# cd /u01/app/oracle/product/18.0.0.0/grid/ # mv OPatch OPatch_old # unzip -q p6880880_180000_Linux-x86-64.zip # chown oracle:dba OPatch
- Verify the opatch version
6. Apply Apr 2019 PSU# /u01/app/oracle/product/18.0.0.0/grid/OPatch/opatch version
- 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 p29251992_180000_Linux-x86-64.zip
- As a root user, run the prerequisites
# cd /home/oracle/patch/29251992/29301682 # /u01/app/oracle/product/18.0.0.0/grid/OPatch/opatchauto apply -oh /u01/app/oracle/product/18.0.0.0/grid -analyze
- Still as a root user, apply the patch if the prerequisites runs successfully
# /u01/app/oracle/product/18.0.0.0/grid/OPatch/opatchauto apply -oh /u01/app/oracle/product/18.0.0.0/grid
- As an Oracle user, verify the patch is installed
# /u01/app/oracle/product/18.0.0.0/grid/OPatch/opatch lsinventory
On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Installing Oracle 18c using command line
Installing Oracle 18c using command line
Jul 27, 2018 12:00:00 AM
5
min read
How to prepare a response file for a grid 18c silent upgrade
How to prepare a response file for a grid 18c silent upgrade
Mar 7, 2019 12:00:00 AM
2
min read
Oracle Database 18c schema only accounts
Oracle Database 18c schema only accounts
Mar 16, 2018 12:00:00 AM
5
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.