## Preparing for installation
-------------------------------
1. Disabling the firewall:
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service
2. Disabling SELinux
vim /etc/selinux/config
SELINUX=disabled
Save the configuration and restart the system
## Setting the number of file descriptors
echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range
root# ulimit –n
root# vim /etc/security/limits.conf
[add bellow]
* soft nofile 65535
* hard nofile 65535
Save the configuration and restart the system.
## Setting the number of user processes
root# vim /etc/security/limits.d/20-nproc.conf
[Change the default value to 40960]
* soft nproc 40960
root soft nproc unlimited
Save the configuration and restart the system
### package install
dnf install -y bc binutils elfutils-libelf elfutils-libelf-devel fontconfig-devel
glibc glibc-devel ksh libaio libaio-devel libXrender libX11 libXau libXi dnf
install -y libXtst libgcc libnsl librdmacm libstdc++ libstdc++-devel libxcb
libibverbs make smartmontools sysstat libnsl2 libnsl2-devel
dnf install gcc gcc-c++ unixODBC
binutils-2.27-27.base.el7.x86_64.rpm
• compat-libcap1-1.10-7.el7.x86_64.rpm
• cpp-4.8.5-28.el7.x86_64.rpm
• elfutils-libelf-0.170-4.el7.x86_64.rpm
• elfutils-libelf-devel-0.170-4.el7.x86_64.rpm
• gcc-4.8.5-28.el7.x86_64.rpm
• gcc-c++-4.8.5-28.el7.x86_64.rpm
• glibc-2.17-222.el7.x86_64.rpm
• glibc-common-2.17-222.el7.x86_64.rpm
• glibc-devel-2.17-222.el7.x86_64.rpm
• ksh-20120801-137.el7.x86_64.rpm
• libaio-0.3.109-13.el7.x86_64.rpm
• libaio-devel-0.3.109-13.el7.x86_64.rpm
• libgcc-4.8.5-28.el7.x86_64.rpm
• libstdc++-4.8.5-28.el7.x86_64.rpm
• libstdc++-devel-4.8.5-28.el7.x86_64.rpm
• libXext-1.3.3-3.el7.x86_64.rpm
• make-3.82-23.el7.x86_64.rpm
• mpfr-3.1.1-4.el7.x86_64.rpm
• sysstat-10.1.5-13.el7.x86_64.rpm
• unixODBC-2.3.1-11.el7.x86_64.rpm
• unixODBC-devel-2.3.1-11.el7.x86_64.rpm
##### Group user permission
groupadd -g 54321 oinstall
groupadd -g 54322 dba
groupadd -g 54323 oper
groupadd -g 54324 backupdba
groupadd -g 54325 dgdba
groupadd -g 54326 kmdba
groupadd -g 54327 asmdba
groupadd -g 54328 asmoper
groupadd -g 54329 asmadmin
groupadd -g 54330 racdba
useradd -u 54321 -g oinstall -G dba,oper oracle
Create Directory for ORACLE
mkdir -p /u01/app/oracle/product/19.3.0/dbhome_1
mkdir -p /u02/oradata
chown -R oracle:oinstall /u01 /u02
chmod -R 775 /u01 /u02
####
#### Adjusting kernel parameters
vim /etc/sysctl.conf [Set the following variable values:]
kernel.shmall=4118456
kernel.shmmax=16869195776
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=6815744
fs.suid_dumpable=1
fs.aio-max-nr=1048576
net.ipv4.ip_local_port_range=9000 65500
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576
[:wq!]
/sbin/sysctl -p /etc/sysctl.conf
### Verifying the environment variable settings
root # echo $ORACLE_HOME
-- /u01/app/oracle/product/19.3.0
root # echo $LD_LIBRARY_PATH
-- /u01/app/oracle/product/19.3.0/lib
root # echo $ORACLE_SID
-- orcl
### Setting environment variables for the Oracle database
vim /etc/profile [Addthis]
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/19.3.0
ORACLE_SID=orcl
PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH
[:wq!]
### Setting environment variables for the oracle user
vim /home/oracle/.bash_profile
2. Set the language variable according to the language your system supports.
LANG=en_US.UTF-8
export LANG
3. Add the following content to the end of the file:
umask 022
[:wq!]
5. Switch to oracle and validate the new settings.
su – oracle
export DISPLAY=localhost:0.0
6. Switch to root.
exit
## Setting the NLS_LANG environment variable
vim /etc/profile
2. Add the following content to the file:
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15
export NLS_LANG
[:wq]