100% found this document useful (1 vote)
2K views

Step by Step Rac Installation

This document provides step-by-step instructions for installing Oracle 19C RAC on a two-node virtual machine cluster. It describes configuring the virtual network adapters and storage, installing Oracle Grid Infrastructure, and creating a database using Oracle Database Configuration Assistant. Key steps include cloning the first node, configuring shared storage, creating the Oracle ASM disk group, and installing the database software.

Uploaded by

maruthi631
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views

Step by Step Rac Installation

This document provides step-by-step instructions for installing Oracle 19C RAC on a two-node virtual machine cluster. It describes configuring the virtual network adapters and storage, installing Oracle Grid Infrastructure, and creating a database using Oracle Database Configuration Assistant. Key steps include cloning the first node, configuring shared storage, creating the Oracle ASM disk group, and installing the database software.

Uploaded by

maruthi631
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

19C RAC STEP BY STEP 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

usermod -G asmdba,asmoper,asmadmin oracle

Create oracle user password


passwd oracle

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

alias grid =`. /home/oracle/grid.env`


alias db=`. /home/oracle/db.env`

---------------------------------
/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

VIRTUAL MEDIA MANAGER


CONVERT ALL THE HARD DISKS TO THE NORMAL TO SHARABLE
ATTACH TO RAC2
------------------------------
FORMAT THE DISKS AND CREATE A DISKGROUP
ls /dev/sd*
fdisk /dev/sdb
n p 1 return return w

oracleasm configure -i
oracle
oinstall
y
y

oracleasm init
oracleasm createdisk DISK1 /dev/sdb1
oracleasm scandisks
oracleasm listdisks

from rac2 node also perform same steps


oracleasm init
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

. configure oracle grid infrastructure for new cluster option->next


. Configure an oracle standalone cluster ->next
. create local scan
rac-cluster
rac-scan
1521
Next
. shows one node now we need to add second node
Add a single node
Rac2.localdomain
Rac2-vip.localdomain
Next
. ssh connectivity
Test and next
. next public, asm and private
. use oracle flex asm for storage
. no
. change disk discovery path
/dev/oracleasm/disks*
Select the link and provide disk group name as OCRVOTINGDISK
EXTERNAL REDUNDANCY and next
. use same password for these account
Oracle oracle next
. do not use the intelligent
. no choose
. oinstall
Oinstall
Oinstall
Next
. Oracle Base /u01/app/oracle
. inventory as its
. next
. ignore all
Next
. install

-------------------------------------------------------------------------

oracel@rac1 ./srvctl config scan


./srvctl config scan_listener

Copy software to /u01/app/oracle/product/19c/db_1 as root


Root chmod -R 777 /u01/app/oracle/product/19c/db_1/DBSOFTWARE
Chown -R oracle:oinstall /u01/app/oracle/product/19c/db_1/DBSOFTWARE

Oracle user
. db.env
Cd $ORACLE_HOME
Unzip -o dbsoftware
Xhost +
Source db.env
Export DISPLAY=:0.0./runInstaller

.setup software only


.oracle rac
.select all
Ssh connectivity next
.enterprise edition
.oracle base /u01/app/oracle
Oinstall

ROOT
Oracleasm createdisk DISK2 /dev/sdd1
Oracleasm createdisk DISK3 /dev/sde1
Oracleasm listdisks

Oracle user
Export DISPLAY=:0.0
Asmca
Diskgroup
OCRDISK,DISK,ARCHIVE

CREATE DATA -EXTERNAL REDUNDANCY


CHANGE DISK DISCOVERY PATH /DEV/ORACLEASM/DISKS* OK
Choose any one that is available and click ok

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

You might also like