Oracle Rac Conf
Oracle Rac Conf
Oracle Rac Conf
ENVIRONMENT:
Scan IP:
192.168.0.121
192.168.0.122
192.168.0.123
HOST FILE:
Enter these entries in both nodes host file:
vi /etc/hosts
# Public
# Private
# Virtual
# SCAN
vi /etc/sysctl.conf
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
/sbin/sysctl –p
For checking:
DISABLE FIREWALL:
systemctl disable firewalld
Oracle preinstall:
curl -o oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
https://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/getPackage/oracle-database-preinstall-19c-1.0-
1.el7.x86_64.rpm
rpm -i oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm
rpm -i compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
Checking:
cd /etc/security/limits.d/
ls -l
cat oracle-database-preinstall-19c.conf
https://yum.oracle.com/oracle-linux-7.html
https://yum.oracle.com/repo/OracleLinux/OL7/8/base/x86_64/index.html
If above command not install ASM so SCP oracle ASM from this website:
https://www.oracle.com/linux/downloads/linux-asmlib-v7-downloads.html
rpm -i oracleasmlib-2.0.15-1.el7.x86_64.rpm
oracleasm configure -i
EXAMPLE:
This will configure the on-boot properties of the Oracle ASM library
loaded on boot and what permissions it will have. The current values
CREATE DIRECTORIES:
Create directories and give permissions according to you we have two home and base one for grid and second for oracle:
mkdir /u01
mkdir /u01/oracle/
mkdir /u01/oracle/V19BaseDatabase
mkdir /u01/oracle/V19Database
mkdir /u01/oracle/V19BaseGrid
mkdir /u01/oracle/V19Grid
cd /u01/oracle; ls -l
chronyc -a makestep
vi /home/oracle/.bashrc
#export DISPLAY=192.168.1.6:7.0
vi /home/grid/.bashrc
#export DISPLAY=192.168.1.6:7.0
IMPORTANT NOTE:
Every things will be same on bash for node 2 accept ASM SID and HOSTNAME will be change on node 2 like that:
Change the MAC address in the Virtual Box Adapter both nodes.
vi /etc/hosts
Change the IP address of 2nd Node and set according that give above:
http://abilim.blogspot.com/2014/01/step-by-step-configuring-automatic.html
1- Add openfiler iso on vmware (with assign storage 15 gb and ram 4 gb) must you have hdd or scsi drive
3- You must have remember assign static ip address and local hostname in the time of installation
4- After the installation you have to power off the virtual machine and add hardive capacity for being purpose of sharing
5- Afterward power on the vm machine and trigger url address on screen just copy and paste on the web browser
6- You must have ssl ver 1 min and max 3 then you could access the machine
ERROR:
Solve open filer interface is not opening for that we use Firefox there we configure:
about:config
security.tls.version.min
Configuration steps:
Id : openfiler
Password : password
2- Then go to system option and check IP address and local host name
3- After check the configuration your start three services initiator.i target,scst target
4- After you select volume tab and select option create new volume group and enter volume group name.
5- Then go to again volume tab and scroll down and fill the some option available and select disk full size. (File system select
block)
6- Then go to ISCI target and select add option after that generate a address.
8- Then go to LUN mapping option and click on map after that generate and address.
CONFIGURE OPEN-FILER RAC NODES:
Check ISCSI RPM:
Note: the LUN map and IP will be different according to your environment:
RAC 1:
fdisk /dev/sdi
N>>>>W
RAC 2:
oracleasm scandisk
Download the grid zip from oracle website and SCP then unzip it:
/u01/oracle/V19Grid/gridSetup.sh
1)
2)
3) add your scan
8)
9)
14)
15)
16)
17)
18)
19)
22) ignore this it will show because of DNS you can verify from details
23)
ERROR:
IF YOU SEE IN INSTALLATIO THAT NODE 2 FILE COPYING ERROR SO CHECK THE PERMISSION OF RAC1 AND RAC2 ALSO:
chmod 777 /u01 -R on both node
+ASM1:/u01/oracle/V19Grid:Y
RAC2:
+ASM2:/u01/oracle/V19Grid:Y
INSTALL RPM:
# as root
/u01/oracle/V19Grid/cv/rpm
rpm -i cvuqdisk-1.0.10-1.rpm
ON NODE 2:
scp cvuqdisk-1.0.10-1.rpm root@db2:/tmp/
ssh db2
/u01/oracle/V19Grid/cv/rpm
cd /u01
/u01/oracle/V19Database/runInstaller
1)
2)
5)
6)
7)
8)
cd $ORACLE_HOME/bin
./dbca
1)
2)
3)
4)
5)
6)
7) --- Solution --- SELECT name, compatibility FROM v$asm_diskgroup; (for-check) ALTER DISKGROUP ASMDATA1 SET
ATTRIBUTE 'compatible.asm' = '19.0'; (change)
8) add storage asmdata2 like asmdata1 add (optional enable archive)
9)
10)
11)
12)
13)
14)
17)
Add entry in /etc/oratab
+ora19c1:/u01/oracle/V19Database:Y
. oraenv
+ASM1
sqlplus / as sysasm
sulemanloyee_name VARCHAR2(50),
hire_date DATE
);
INSERT INTO suleman5 (sulemanloyee_id, sulemanloyee_name, hire_date) VALUES (1, 'Suleman1', TO_DATE('2023-01-01',
'YYYY-MM-DD'));
INSERT INTO suleman5 (sulemanloyee_id, sulemanloyee_name, hire_date) VALUES (2, 'Suleman2', TO_DATE('2023-02-01',
'YYYY-MM-DD'));
INSERT INTO suleman5 (sulemanloyee_id, sulemanloyee_name, hire_date) VALUES (3, 'Suleman3', TO_DATE('2023-03-01',
'YYYY-MM-DD'));
COMMIT;
RAC 2:
1 CRS
2 NODE
3 ASM
4 DB INSTANCE
5 DB
1. CRS:
2. NODE:
GRID:
GRID:
4. DB INSTANCE:
5. DB:
RAC SHUTDOWN:
Shutdown RAC step by step like that:
1 DB
2 DB INSTANCE
3 ASM
4 NODE
5 CRS