RAC Installation 19c
RAC Installation 19c
Install the OS
Note: when configuring network, the nodes should have minimum of two network interfaces,
for public network and private network
2. Prepare the repository to install the PACKAGES.
2.1 Create /etc/yum.repo/dvd.repo file as below:
[dvd]
name=oracle linux 7
#baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_nodejs8/$basearch/
baseurl=file:///mnt
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
Output:
[dvd]
name=oracle linux 7
#baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/developer_nodejs8/$basearch/
baseurl=file:///mnt
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
yum install bc -y
yum install binutils -y
yum install compat-libcap1 -y
yum install compat-libstdc++-33 -y
yum install elfutils-libelf -y
yum install elfutils-libelf-devel -y
yum install fontconfig-devel -y
yum install glibc -y
yum install glibc-devel -y
yum install ksh -y
yum install libaio -y
yum install libaio-devel -y
yum install libXrender -y
yum install libXrender-devel -y
yum install libX11 -y
yum install libXau -y
yum install libXi -y
yum install libXtst -y
yum install libgcc -y
yum install libstdc++ -y
yum install libstdc++-devel -y
yum install libxcb -y
yum install make -y
yum install policycoreutils -y
yum install policycoreutils-python -y
yum install smartmontools -y
yum install sysstat –y
5. Configuring Users, Groups and Environments for Oracle Grid Infrastructure and Oracle
Database
5.1 Create oracle password on both nodes.
5.2 create the oraInventory group oinstall with the group ID number 54321 if it does not
exist.
5.3 verify that the Oracle installation owners you intend to use have the Oracle
Inventory group as their primary group.
# /usr/sbin/usermod -g oinstall -G
dba,asmdba,asmoper,asmadmin,backupdba,dgdba,kmdba,racdba,oper oracle
# id oracle
Output:
----Create OS groups
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd asmadmin
/usr/sbin/groupadd asmdba
/usr/sbin/groupadd asmoper
/usr/sbin/groupadd osdba
----CREATE USER
---To create the Oracle Inventory directory, enter the following commands as the root user:
mkdir -p /u01/app/oraInventory
---To create the Grid Infrastructure home directory, enter the following commands as the root user:
mkdir -p /u01/app/19.3.0/grid
-----To create the Oracle Base directory, enter the following commands as the root user:
mkdir -p /u01/app/oracle
---- To create the Oracle RDBMS Home directory, enter the following commands as the root user:
mkdir -p /u01/app/oracle/product/19.3.0.0/dbhome_1
# nano /etc/security/limits.conf
oracle soft nofile 131072
oracle hard nofile 131072
oracle soft nproc 131072
oracle hard nproc 131072
oracle soft core unlimited
oracle hard core unlimited
oracle soft memlock 3500000
oracle hard memlock 3500000
oracle soft stack 10240
grid soft nofile 131072
grid hard nofile 131072
grid soft nproc 131072
grid hard nproc 131072
grid soft core unlimited
grid hard core unlimited
grid soft memlock 3500000
grid hard memlock 3500000
grid soft stack 10240
6. Disable firewall and change SElinux to permissive
8. Configuring storage :
8.1 Configuring an iSCSI Target
…..
8.2 iSCSI Initiator
Install the iscsi-initiator-utils package:
InitiatorName=iqn.2003-01.org.linux-iscsi.t24test2.x8664:sn.10e15c5d93d2
Display information about the targets that are now stored in the discovery database
# iscsiadm -m discoverydb -t st -p 10.48.8.16
Verify that the session is active and display the available LUNs
# iscsiadm -m session -P 3
oracleasm configure -i
8.4 Load oracleasm module
# oracleasm init
To configure iscsi:
How to configure iSCSI target and initiator on CentOS/RHEL 7/8 Linux | GoLinuxCloud
To Delete ISCSI connection :
How to delete iscsi target from initiator ( CentOS / RHEL 7 ) Linux | GoLinuxCloud
9. Install oracle grid infrastructure 19c
9.1 $ cd /u01/app/19.0.0/grid/
9.2 $ unzip LINUX.X64_193000_grid_home.zip
9.3 $ ./gridSetup.sh
9.4
9.5
9.6
9.7
9.8
9.9 The permission for the disks should be as below:
9.11
9.12
9.13
9.14
rm -rf /var/tmp/.oracle/ora_gipc*
rm -rf /var/tmp/.oracle/mdnsd
rm -rf /var/tmp/.oracle/mdnsd.pid
rm -rf /var/tmp/.oracle/npohasd
rm –rf /var/tmp/.oracle/npohasd2
9.15
For any error in the middle at 32% installation rum the below
command from $GRID_HOME/install/crs
1. /u01/app/grid/19.3.0/gridhome_1/crs/install./rootcrs.sh -
deconfig –force
2. + Then delete all files from /var/tmp/.oracle
3. cd /var/tmp/.oracle
4. rm -rf *.*
5. Then rerun root.sh
9.16 Post installation check the below:
Output:
Check your ASM disks ownership and mentioned group name in below command.
total 0
total 0
jdbc:oracle:thin:@(DESCRIPTION_LIST=(LOAD_BALANCE=off)(FAILOVER=on)
(DESCRIPTION=(ENABLE=broken)
(ADDRESS=(PROTOCOL=TCP)(HOST=oelc8scan.plb.internal)(PORT=1521))
(CONNECT_DATA=(UR=A)(SERVICE_NAME=orcl112))))
From oracle:
DESCRIPTION =
(CONNECT_TIMEOUT=90) (RETRY_COUNT=20)(RETRY_DELAY=3)
(TRANSPORT_CONNECT_TIMEOUT=3)
( ADDRESS = (PROTOCOL =
TCP)(HOST=scan)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service_name))
)
Sample:
(DESCRIPTION =
(CONNECT_TIMEOUT=90) (RETRY_COUNT=20)(RETRY_DELAY=3)
(TRANSPORT_CONNECT_TIMEOUT=3)
( ADDRESS = (PROTOCOL = TCP)(HOST=sales1-
scan.mycluster.example.com)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=oltp.exam
ple.com)))
In order to create a SCAN on second public network in the cluster, you must first enable the use
of multiple subnets in the cluster, which in general is a post installation task, including the
following steps:
1.Set additional subnet for public network
2.Assign node VIPs to newly created subnet
3.Create a node Listener for newly created subnet
4.Create additional SCAN
grid@<hostname>1]$oifcfg iflist
eth0 133.xxx.67.0
eth1 192.xxx.122.0
eth1 169.254.0.0
eth2 10.xxx.1.0
[grid@<hostname>1]$ oifcfg setif -global eth2/10.48.8.0:public
[grid@<hostname>1]$ oifcfg getif
eth0 133.xxx.67.0 global public
eth1 192.xxx.122.0 global cluster_interconnect,asm
eth2 10.xxx.1.0 global public
[root@<hostname>1]#srvctl add network -netnum 2 subnet 10.xxx.1.0/255.xxx.252.0/eth2
[root@<hostname>1]#srvctl config network -netnum 2
Network 2 exists
Subnet IPv4: 10.xxx.1.0/255.xxx.252.0/eth0, static
Subnet IPv6:
Step8:Add and start a new SCAN listener on network 2 (as grid user)
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
------------------------
Alias LISTENER
SNMP OFF
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.48.8.63)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.48.8.67)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac-
node1)(PORT=5502))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=rac-
node1)(PORT=5501))(Security=(my_wallet_directory=/u01/app/oracle/admin/t24racdb/xdb_wallet))(Pr
esentation=HTTP)(Session=RAW))
Services Summary...