step for installing Oracle 19c in linux:
Prerequests of oracle 19c installation
set fqdn first by the command of
sudo nano /etc/hosts
"/etc/hosts"
also set static ip with the command of
“ifconfig”
192.168.182.144
to check fqdn the command is there
hostname -f
Go to network setting for static ip
cat /etc/sysconfig/network-scripts/ifcfg-ens33
Vi menas edit mood
cat means read only mood
to go network script
Vi /etc/sysconfig/network-scripts/ifcfg-ens33
cd /etc/sysconfig/network-scripts
to down network
ifdown ifcfg-ens33
to up network
ifup ifcfg-ens33
After fqdn set
to oracle-database-preinstall-19c" package to perform all your prerequisite setup, issue the following
command.
yum install -y oracle-database-preinstall-19c
for cross check we use this command
cat /etc/sysctl.conf
Create Group and user
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
after insert click esc for return and shipt : and then wq!
to set bash profile from user mood
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=/u01/app/oracle/product/19.0.0/dbhome_1/bin:$PATH
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export ORACLE_SID=orcl
export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=\$ORACLE_HOME/jlib:\$ORACLE_HOME/rdbms/jlib
if dont want to reboot
source .bash_profile
Create the directories in which the Oracle software will be installed. in user mood
mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1
mkdir -p /u02/oradata
chown -R oracle:oinstall /u01 /u02
chmod -R 775 /u01 /u02
for cheaking path or oracle database directory
env |grep ora
sudo nano /etc/selinux/config
change selinux enforcing to selinux permissive
command
sudo setenforce
for apply permissive
sudo setenforce Permissive
command to stop firewall
sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service
vmware-hgfsclient
result show share folder name for example : dbhome_1
sudo vmhgfs-fuse .host:/dbhome_1 /u01/app/oracle/product/19.0.0/dbhome_1 -o allow_other -o
uid=1000
cd /u01/19c/unzip LINUX.X64_193000_db_home.zip
rsync -av Linux.X64_19300_db_home/ /u01/app/oracle/product/19.0.0.0/dbhome_1/