0% found this document useful (0 votes)
2 views

oracle19c_Redhat8

The document provides a step-by-step guide for installing Oracle Database 19c on a Linux system. It includes instructions for configuring the host file, sysctl.conf, SELinux, firewall settings, installing necessary packages, creating user groups, and setting up directory structures. Additionally, it outlines the setup of user profiles and environment variables required for the Oracle installation.

Uploaded by

enamul whab
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

oracle19c_Redhat8

The document provides a step-by-step guide for installing Oracle Database 19c on a Linux system. It includes instructions for configuring the host file, sysctl.conf, SELinux, firewall settings, installing necessary packages, creating user groups, and setting up directory structures. Additionally, it outlines the setup of user profiles and environment variables required for the Oracle installation.

Uploaded by

enamul whab
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

[https://www.dbdocs.

net/oracle/how-to-install-oracle-database-19c-on-linux]

## Configure the host file

[root@oracledb]# vim /etc/hosts [add bellow]

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4


::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.xxx.xx dbdocs.dbnetwork.com dbdocs

[:wq]

[root@oracledb]# /etc/hostname

oracle
[:wq]

## Configure the sysctl.conf file

[root@oracledb]# vim /etc/sysctl.conf [Add this bellow]

fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096 #The minimum size, in bytes, of a single shared memory
segment.
kernel.shmall = 1073741824
kernel.shmmax = 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
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-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

You might also like