[[Link]
net/oracle/how-to-install-oracle-database-19c-on-linux]
## Configure the host file
[root@oracledb]# vim /etc/hosts [add bellow]
[Link] localhost [Link] localhost4 localhost4.localdomain4
::1 localhost [Link] localhost6 localhost6.localdomain6
[Link] [Link] dbdocs
[:wq]
[root@oracledb]# /etc/hostname
oracle
[:wq]
## Configure the [Link] file
[root@oracledb]# vim /etc/[Link] [Add this bellow]
[Link]-max = 6815744
[Link] = 250 32000 100 128
[Link] = 4096 #The minimum size, in bytes, of a single shared memory
segment.
[Link] = 1073741824
[Link] = 4398046511104 #The maximum size, in bytes, of a single shared
memory segment. For best performance, it should be large enough to hold the entire
SGA.
kernel.panic_on_oops = 1
[Link].rmem_default = 262144
[Link].rmem_max = 4194304
[Link].wmem_default = 262144
[Link].wmem_max = 1048576
[Link].rp_filter = 2
[Link].rp_filter = 2
[Link]-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
[:wq]
root@oracledb # /sbin/sysctl -p
## Configure secure Linux to permissive
root@oracledb # vim /etc/selinux/config
SELINUX=permissive
SELINUXTYPE=targeted
[:wq]
root@oracledb # setenforce Permissive
## Disable firewall
systemctl stop firewalld
systemctl disable firewalld
## Install the missing packages
root@oracledb # rpm -q bc binutils compat-libcap1 compat-libstdc++-33 dtrace-utils
elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio
libaio-devel libdtrace-ctf-devel libXrender libXrender-devel libX11 libXau libXi
libXtst libgcc librdmacm-devel libstdc++ libstdc++-devel libxcb make net-tools nfs-
utils python python-configshell python-rtslib python-six targetcli smartmontools
sysstat libnsl libnsl2 libnsl.i686 libnsl2.i686
## Create user and groups
[root@dbdocs ~]# groupadd -g 5001 oinstall
[root@dbdocs ~]# groupadd -g 5002 dba
[root@dbdocs ~]# groupadd -g 5003 oper
[root@dbdocs ~]# useradd -u 5000 -g oinstall -G dba,oper oracle
[root@dbdocs ~]# passwd oracle
## Create a directory structure
[root@dbdocs ~]# mkdir -p /opt/oracle/product/19.0.0/dbhome_1
[root@dbdocs ~]# mkdir -p /u01/oradata
[root@dbdocs ~]# chown -R oracle:oinstall /opt /u01
[root@dbdocs ~]# chmod -R 775 /opt /u01
[root@dbdocs ~]#
## Set user profile
[root@dbdocs ~]# su - oracle
[oracle@dbdocs ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
umask 022
ORACLE_SID=dbdocs
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1
LD_LIBRARY_PATH=$ORACLE_HOME/lib
TMP=/tmp
TMPDIR=/tmp
PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
export ORACLE_SID ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH TMP TMPDIR PATH
[oracle@dbdocs ~]$
[oracle@dbdocs ~]$ source .bash_profile
[oracle@dbdocs ~]$ echo $ORACLE_SID
dbdocs
## Set the DISPLAY Environment Variable
[root@dbdocs ~]# vim /etc/ssh/sshd_config [Make sure that the following lines are
set.]
AllowTcpForwarding yes
AddressFamily inet
X11Forwarding yes
X11UseLocalhost yes
# x11 package install
[root@dbdocs ~]# rpm -qa | grep -i xorg
[root@dbdocs ~]# dnf install xorg-x11-server-Xorg
[root@dbdocs ~]# dnf groupinstall "Server with GUI"
[root@dbdocs ~]# which xterm
[root@dbdocs ~]# yum install xterm
export DISPLAY="HOST_NAME":0.0
# Example
export DISPLAY=dbdocs:0.0
Export DISPLAY=localhost:0.0
setenv DISPLAY localhost:0.0
# 1. Install the latest released versions of the following packages:
bc
binutils
elfutils-libelf
elfutils-libelf-devel
glibc
glibc-devel
ksh
libaio
libaio-devel
libXrender
libX11
libXau
libXi
libXtst
libgcc
libnsl
librdmacm
libstdc++
libstdc++-devel
libxcb
libibverbs
make
policycoreutils
policycoreutils-python-utils
smartmontools
sysstat
# 2. Optional Packages for Red Hat Enterprise Linux 8
ipmiutil (for Intelligent Platform Management Interface)
libnsl2 (for Oracle Database Client only)
libnsl2-devel (for Oracle Database Client only)
net-tools (for Oracle RAC and Oracle Clusterware)
nfs-utils (for Oracle ACFS)
dnf install ipmiutil libnsl2 libnsl2 net-tools nfs-utils