Step by Step Installation of Oracle 19c binaries in linux 7.7

Facebooktwittergoogle_plusredditpinterestlinkedinmailFacebooktwittergoogle_plusredditpinterestlinkedinmail

In this Article you will se how to install oracle 19cbinaries

Step 1 :
Disable firewall and selinux:
first check the status of firewalld status weather is active or not:

[root@localhost /]# systemctl status firewalld
● firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-05-03 01:47:30 IST; 4h 12min ago
Docs: man:firewalld(1)
Main PID: 957 (firewalld)
Tasks: 2
CGroup: /system.slice/firewalld.service
└─957 /usr/bin/python2 -Es /usr/sbin/firewalld –nofork –nopid

May 03 01:47:28 localhost.localdomain systemd[1]: Starting firewalld – dynamic firewall daemon…
May 03 01:47:30 localhost.localdomain systemd[1]: Started firewalld – dynamic firewall daemon.

If it is active then disabled:

root@localhost /]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted – Targeted processes are protected,
# minimum – Modification of targeted policy. Only selected processes are protected.
# mls – Multi Level Security protection.
SELINUXTYPE=targeted

~

~
“/etc/selinux/config” 14L, 542C

Step 2
create OS group and user :

[root@localhost /]# groupadd -g 1100 oinstall
[root@localhost /]# groupadd -g 1131 dba
[root@localhost /]# groupadd -g 1132 oper
[root@localhost /]# useradd -u 1101 -g oinstall -G dba,oper oracle

set the oracle password:

[root@localhost /]# passed oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passed: all authentication tokens updated successfully.
[root@localhost /]#

create the directories for installing oracle binaries installation and permission and ownership :

[root@localhost /]# mkdir -p /dmarch01/app/oracle/product/19.0.0/dbhome_1
[root@localhost /]# chown -R oracle:oinstall /u01
[root@localhost /]# chmod -R 775 /u01
[root@localhost /]#

Set the host files in vi /etc/hosts :

192.168.100.10 testlab.com.bd testlab (this is for example ip address)

And run the following command from anywhere as root to install the oracle preinstalls:

[root@localhost /]# yum install oracle-database-preinstall-19c.x86_64

switch to the oracle user and set the bash_profile :

[root@localhost /]# su – oracle
[oracle@MiWiFi-R4CM-srv ~]$ vi .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=testlab.com.bd; export ORACLE_HOSTNAME
ORACLE_BASE=/dmarch01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME
ORACLE_TERM=xterm; export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
PATH=$ORACLE_HOME/bin:$GRID_HOME/bin:$BASE_PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

Check the bash_profile status by using this command:

[oracle@MiWiFi-R4CM-srv ~]$ . .bash_profile

And check the oracle_home:

[oracle@MiWiFi-R4CM-srv ~]$ echo $ORACLE_HOME
/dmarch01/app/oracle/product/19.0.0/dbhome_1

And upload the zip file in this directory /u01/app/oracle/product/19.0.0/dbhome_1 through winScp software or any other which one you like:
Go to ORACLE_HOME directory and run this command:

./runInstaller

[oracle@localhost bin]$ pwd
/u01/app/oracle/product/19.0.0/dbhome_1/bin
[oracle@localhost bin]$
[oracle@localhost bin]$ export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
[oracle@localhost bin]$
[oracle@localhost bin]$ ./sqlplus

SQL*Plus: Release 19.0.0.0.0 - Production on Sat may 21 02:26:02 2020
Version 19.0.0.0

Copyright (c) 1982, 2019, Oracle. All rights reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *