This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /sbin/sysctl --system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n' \ | |
binutils \ | |
compat-libcap1 \ | |
compat-libstdc++-33 \ | |
glibc \ | |
glibc-devel \ | |
ksh \ | |
libaio \ | |
libaio-devel \ | |
libgcc \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install compat-libcap1 \ | |
compat-libstdc++-33 \ | |
glibc-devel \ | |
ksh \ | |
libaio \ | |
libaio-devel \ | |
libstdc++-devel \ | |
libxcb \ | |
libX11 \ | |
libXau \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo groupadd -g 54321 oracle | |
sudo useradd -u 54321 -g oracle oracle | |
sudo passwd oracle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir -p /u01/app/oracle/product/12.2.0/dbhome_1 | |
sudo chown -R oracle:oracle /u01 | |
sudo chmod -R 775 /u01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open file | |
sudo vi /home/oracle/.bash_profile | |
# Add variables | |
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then . ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dd if=/dev/zero of=/swapfile bs=10M count=70 | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open configuration file | |
sudo vi /etc/fstab | |
# Add parameter | |
/swapfile none swap sw 0 0 |