Introduction
This is a work memo.
Prerequisites
EC2 instance type is t2.large
Installing on RHEL7.6
Installing via GUI rather than CUI
Steps up to running runinstaller
Install Required Packages
sudo -s
export LANG=C
yum -y install wget
cd /etc/yum.repos.d
wget https://public-yum.oracle.com/public-yum-ol7.repo
curl -k https://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -o /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
yum install oracle-rdbms-server-12cR1-preinstall
Network and SELinux Configuration Changes
vi /etc/sysconfig/network
HOSTNAME=dbsrvec2
/etc/init.d/network restart
cat /etc/selinux/config
vi /etc/selinux/config
SELINUX=disabled
vi /etc/hosts
x.xxx.181.3 dbsrvec2
Create Groups and Modify User Settings
groupadd -g 54321 oinstall
groupadd -g 1101 oper
groupadd -g 1102 backupdba
groupadd -g 1103 dgdba
groupadd -g 1104 kmdba
groupadd -g 1105 dba
useradd -u 54321 -g oinstall -G oinstall,oper,backupdba,dgdba,kmdba,dba -d /home/oracle oracle
usermod -u 54321 -g oinstall -G oinstall,oper,backupdba,dgdba,kmdba,dba oracle
passwd oracle
Create Required Directories
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01
cd /u01/app
mkdir oraInventory
chown oracle:oinstall oraInventory/
Settings for GUI Installation
-- Install Xming on client side (Windows)
File Downloads - Xming X Server for Windows - OSDN https://ja.osdn.net/projects/sfnet_xming/releases/
-- Install xorg
yum -y install xorg-x11-xauth.x86_64 xorg-x11-server-utils.x86_64
-- Verify with xeyes
yum -y install xeyes
xeyes
-- Install xdpyinfo since it is used by runinstaller/dbca
yum -y install xdpyinfo
Create Swap File
sudo dd if=/dev/zero of=/swapfile bs=1G count=4
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
vi /etc/fstab
/swapfile swap swap defaults 0 0
Run runinstaller
./runinstaller
~omitted~