Step by Step Rac Installation
Step by Step Rac Installation
Step by Step Rac Installation
Network
adapter1
internal network-pubnet
adapter 2
internal network-privnet
adapter 3
Bridged Adapted
General
Advanced
bidirectional shared clipboard, drag n drop
System
remove floppy
processor 2
Storage
os image file
shared folder
d:/softwares/sf
automount
start the vm
install
software selection
server with gui-compatility,development,security toosl-select all the
options
installation destination
/u01 remaining
/boot 1g
/tmp 5g
swap 5g
/ 10g
networks
03
configure
192.168.56.71
255.255.255.0
0.0.0.0
08
192.168.10.1
255.255.255.0
0.0.0.0
09
Guest addition
------------------------------------------
yum update -y
yum search oracle
yum install -y oracle-database-preinstall-19c.x86_64
yum install bind* -y
sysctl -p
--------------------------------------------
cat /etc/hosts
#PRIVATE
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv
#PUBLIC
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2
#VIRTUAL
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip
#SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan
--------------------------
Create Groups and Permissions
groupadd -g 54327 asmdba
groupadd -g 54328 asmoper
groupadd -g 54329 asmadmin
mkdir -p /u01/app/19c/grid
mkdir -p /u01/app/oracle/product/19c/db_!
chown -R oracle:oinstall /u01
chmod -R 775 /u01/
-----------------------------------
from oracle user
/home/oracle/.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/u01/app/oracle
export GRID_HOME=/u01/app/19c/grid
export DB_HOME=$ORACLE_BASE/product/19c/db_1
export ORACLE_HOME=$DB_HOME
export ORACLE_SID=racdb1
export ORACLE_TERM=xterm
export BASE_PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$BASE_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
---------------------------------
/home/oracle/grid/env
export ORACLE_SID = +ASM1
export ORACLE_HOME=$GRID_HOME
export PATH=$ORACLE_HOME/bin:$BASE_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
----------------------
/home/oracle/db.env
export ORACLE_SID=racdb1;
export ORACLE_HOME=$DB_HOME
export PATH=$ORACLE_HOME/bin:$BASE_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/u=sr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
---------------------------
systemctl stop firewalld.service
systemctl disable firewalld.service
--------------------------
systemctl enable chronyd.service
systemctl restart chronyd.service
chronyc -a 'burst 4/4'
chronyc -a makestep
...............................
clone the Virtual Machine
shutdown the VM
rac2
full clone
generate the new mac address
root user login
change hostname by using /etc/sysconfig/network
(or)
nmcli general hostname
nmcli general hostname rac2.localdomain
nmcli general hostname
service systemd-hostnamed restart
/bin/systemctl restart systemd-hostnamed.service
hostname
network setting
192.168.10.2
192.168.56.72
restart init 0
ping rac2
ping rac2-priv
ping scan-ip
ping rac1
ping rac1-priv
-------------------------------------------
creating shared disk
rac1
setting->storage->controller:sata-> add
hard disk ->VHD->FIXED SIZE->10GB->ASM1 CREATE
CREATE TWO MORE DISKS 12 & 8 GB
oracleasm configure -i
oracle
oinstall
y
y
oracleasm init
oracleasm createdisk DISK1 /dev/sdb1
oracleasm scandisks
oracleasm listdisks
in rac2 modify ORACLE_SID as racdb2 in bash_profile and db.env and modify ASM1 as
ASM2
now as root copy grid software to /u01 mount point now create software folder with
oracle:oinstall as chown and mv grid software to /u01/software
chmod -p 777 /u01/software
cd software
as oracle user
source grid.env
unzip -o gridsoftware
CLUSTER VERIFICATION
./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
Grid installation
Xhost +
Su � oracle
Source grid.env
Cd /u01/software
Export DISPLAY=:0.0
./gridsetup.sh
-------------------------------------------------------------------------
Oracle user
. db.env
Cd $ORACLE_HOME
Unzip -o dbsoftware
Xhost +
Source db.env
Export DISPLAY=:0.0./runInstaller
ROOT
Oracleasm createdisk DISK2 /dev/sdd1
Oracleasm createdisk DISK3 /dev/sde1
Oracleasm listdisks
Oracle user
Export DISPLAY=:0.0
Asmca
Diskgroup
OCRDISK,DISK,ARCHIVE
SOURCE DB.env
Oracle user
Export DISPLAY=:0.0
Dbca
Create database
Advanced configuration
Oracle rac,admin managed,gptp
Select all
Racdb
Use following
Use oracle managed files
Enable archiving automatic archiving +ARCHIVELOG
Specify fast recovery area +ARCHIVELOG(OPTIONAL
RUN CLUSTER VERIFICATION UTILITY
Use the same administrative password