Skip to content

Instantly share code, notes, and snippets.

# Open **/etc/sysctl.conf** file
sudo vi /etc/sysctl.conf
# Add the following parameters and save.
kernel.shmmax = 4294967295
kernel.shmall = 2097152
fs.aio-max-nr = 1048576
fs.file-max = 6815744
sudo /sbin/sysctl --system
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n' \
binutils \
compat-libcap1 \
compat-libstdc++-33 \
glibc \
glibc-devel \
ksh \
libaio \
libaio-devel \
libgcc \
sudo yum install compat-libcap1 \
compat-libstdc++-33 \
glibc-devel \
ksh \
libaio \
libaio-devel \
libstdc++-devel \
libxcb \
libX11 \
libXau \
sudo groupadd -g 54321 oracle
sudo useradd -u 54321 -g oracle oracle
sudo passwd oracle
sudo mkdir -p /u01/app/oracle/product/12.2.0/dbhome_1
sudo chown -R oracle:oracle /u01
sudo chmod -R 775 /u01
# Open file
sudo vi /home/oracle/.bash_profile
# Add variables
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then . ~/.bashrc
# Open configuration file
sudo vi /etc/security/limits.conf
# Enter the following values
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
sudo dd if=/dev/zero of=/swapfile bs=10M count=70
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
# Open configuration file
sudo vi /etc/fstab
# Add parameter
/swapfile none swap sw 0 0