Setting up a compute VM on OCI for eBS middle tier

This note is a generic note to detail how a VM compute should be prepare to deploy eBS, irrespective of the release. Additional steps will be performed, per release.

#1 Provision a default image with OL6.9, with a default 50GB.

#2 Create the oracle:oinstall user, use this note as a guideline

#3 Create a 200GB block volume to host the shared appltop

#4 Attach the block volume to the compute instance

Execute the scsi instructions on the oci console to attach the block volume

#5 Extend the book disk to create the /u01 partition

fdisk /dev/sdb
mkfs.ext4 /dev/sdb1 -L oracle -m 1

#4 Update /etc/fstab with the following content

LABEL=oracle /ebsapp ext4 defaults 0 0

#5 Mount the partition

mkdir /ebsapp
mount -a
chown oracle:oinstall /ebsapp

#6 Create the oratab file

touch /etc/oratab
chown oracle:oinstall /etc/oratab

#7 Create the oraInst.loc

touch /etc/oraInst.loc
chown oracle:oinstall /etc/oraInst.loc

#8 Create the local oraInventory

mkdir -p /u01/app/oraInventory
chown oracle:oinstall /u01/app/oraInventory

#8 Edit the oraInst.loc file with the following content

inventory_loc=/u01/app/oraInventory
inst_group=oinstall

#9 Install the linux dependencies via yum

yum install oracle-ebs-server-R12-preinstall

#10 Install the extra dependencies for R12.2

yum install compat-libstdc++-33

#11Adjust the kernel parameters

Set the following parameters in sysctl.conf

kernel.shmmax = 2147483648 
kernel.shmmni = 4096
vm.hugetlb_shm_group = 1002 <= dba group id

And reload the parameters sysctl -p