Beruflich Dokumente
Kultur Dokumente
SL
Description
Install and configure Oracle 12C RAC One Node (Two Node Cluster),
ASM, and Oracle Database. And Installed Non RAC database at DR
System
Configure Oracle Partitioning
Install Oracle Enterprise Manager Diagnostic Pack
Install Oracle Enterprise Manager Tuning Pack
Install/configure Advanced Security (in cluster database)
Install and configure Oracle Secure Backup at DC and DR
Install and Configure Active Data Guard (One Node, Non RAC)
Telco Data Migration (two steps)
And 6 months Maintenance service
2
3
4
5
6
7
8
9
QT
Y
1
1
1
1
1
2
1
1
1
SL
IP Address
Gateway
Server /VM
Machine/Host
RAC01
172.16.26.51
172.16.26.1
RAC02
172.16.26.52
SAN_Storage
172.16.26.58
RAC01 Private IP
192.168.11.1
172.16.26.53
RAC02 Private IP
192.168.11.2
172.16.26.54
255.255.240.
0
255.255.240.
0
255.255.240.
0
255.255.255.
0
255.255.240.
0
255.255.255.
0
255.255.240.
0
DNS- Scan-IP
DNS- Scan-IP
10
DNS- Scan-IP
172.16.26.5
5
172.16.26.5
6
172.16.26.5
6
172.16.26.1
172.16.26.1
172.16.26.1
172.16.26.1
Activity Description
Red Hat Enterprise Linux 7
Remarks
Node 1 And Node 2
Not Required
Not Required
Details as below:
Appendi
xA
A-1
Reference
Need to installed each node of RAC
3.3.3 Oracle Database 12c Release 1 (12.1) P
ackage Requirements
A-5
A-6
A-7
Storage DG Configuration
A-2
A-3
A-4
A-1)
OK
Mount Point
/
/dev/shm
/boot
/home
/tmp
/u01
/usr
/var
Swap
Size
15 GB
24 GB
248 MB
8 GB
4 GB
50 GB
5 GB
8 GB
10 GB
Remarks
IPADDR=172.16.26.51
PREFIX=20
NETMASK=255.255.240.0
GATEWAY=172.16.26.1
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
Up the Network Service
ifconfig -a
systemctl status NetworkManager.service
systemctl enable NetworkManager.service
systemctl restart NetworkManager.service
A-2)
Network Configuration
Pending
A-3
rac01.synesis.com
rac02.synesis.com
rac01
rac02
rac01-priv.synesis.com
rac02-priv.synesis.com
rac01-priv
rac02-priv
rac01-vip.synesis.com
rac02-vip.synesis.com
rac01-vip
rac02-vip
rac-scan.synesis.com
rac-scan.synesis.com
rac-scan.synesis.com
rac-scan
rac-scan
rac-scan
nas.synesis.com
nas
OS user Configures
OK
A-4
OS Kernel
Parameter allocation
kernel.panic_on_oops = 1
# sysctl -p /etc/sysctl.conf
3.3.18 Setting Shell Limits for the Grid and Oracle User
# touch /etc/security/limits.d/99-grid-oracle-limits.conf
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
grid soft nproc 16384
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
As the root user, on each node of the Oracle RAC Database cluster, create a
shell script labeled oracle-grid.sh within /etc/profile.d/
vi /etc/profile.d/ oracle-grid.sh
#The contents of the oracle-grid.sh script:
#Setting the appropriate ulimits for oracle and grid user
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -u 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
# ulimit a
A-5
DSN Configuration
A-6
Configuring udev
3.4.3.1 Oracle ASMLib Alternative:
Rules
Configuring udev Rules
On the first node of the Oracle RAC cluster as the root user, identify the Device Mapper
Universally Unique IDentifier (DM_UUID) for each device mapper volume
#for i in ocrvote1p1 ocrvote2p1 ocrvote3p1 db1p1 db2p1 fra1 redo1; do printf "%s %s\n" "$i"
"$(udevadm info --query=all --name=/dev/mapper/$i | grep -i dm_uuid)"; done
Create a file labeled 99-oracle-asmdevices.rules within /etc/udev/rules.d/
KERNEL=="dm-*",ENV{DM_UUID}=="part1mpath3600c0ff000dabfe5f4d8515101000000",OWNER="grid",GROUP="asmadmin",MODE=
"06 60"
Save the file labeled 99-oracle-asmdevices.rules
# scp /etc/udev/rules.d/99-oracle-asmdevices.rules db-oraclenode2:/etc/udev/rules.d/
On each node within the Oracle RAC Database cluster, locate the dm- device for each
Oracle related partition
# for i in db1p1 db2p1 fra1 redo1 ocrvote1p1 ocrvote2p1 ocrvote3p1; do printf %s %s\n $i
$(ls -ll /dev/mapper/$i); done
# udevadm test /sys/block/dm-11
# ls -lh /dev/dm-11
3.4.4 Optimizing Database Storage using Automatic System Tuning
# yum install tuned
# systemctl enable tuned.service
# systemctl start tuned.service
# cd /path/to/oracle/profile
# cp -r oracle /usr/lib/tuned/
Another doc
Once all the disks are partitioned, the results can be seen by repeating the previous "ls"
command.
# cd /dev
# ls sd*
sda sda1 sda2 sdb sdb1 sdc sdc1 sdd sdd1 sde sde1
#
The disks should now be visible and have the correct ownership using the following
command. If they are not visible, your UDEV configuration is incorrect and must be fixed
before you proceed.
# ls -al /dev/oracleasm/*
lrwxrwxrwx. 1 root root 7 Sep 17 16:10 /dev/oracleasm/asm-disk1 -> ../sdb1
lrwxrwxrwx. 1 root root 7 Sep 17 16:10 /dev/oracleasm/asm-disk2 -> ../sdc1
lrwxrwxrwx. 1 root root 7 Sep 17 16:10 /dev/oracleasm/asm-disk3 -> ../sdd1
lrwxrwxrwx. 1 root root 7 Sep 17 16:10 /dev/oracleasm/asm-disk4 -> ../sde1
#
A-7
Storage DG Configuration
Recover Device files for shared storage
Then
4.1.3 Creating ASM Diskgroups via the ASM Configuration Assistant (ASMCA)
================================================
Via the asmca application, select the Disk Groups tab and click Create
Within the Create Disk Group window, provide the following:
A name for the disk group, i.e. FRADG
Redundancy level for the disk group, i.e. External Redundancy
Selection of the disks to be added to the disk group, i.e. /dev/mapper/fra1
Click the Show Advanced Options radio button and provide the appropriate AU Size.
This reference environment uses an AU Size of 4 MB
for disk groups all disks groups: DATA, FRADG, and REDODG
===================================================
As the grid user, start asmca via the following command:
# /u01/app/12.1.0/grid/bin/asmca
Appendi
xB
# mkdir /u01/app/grid/grid-software
# mv V46096-01_1of2.zip /u01/app/grid/grid-software
# mv V46096-01_2of2.zip /u01/app/grid/grid-software
vi)Copy the grid installer files to /u01/app/grid/grid-software folder then unzip it.
As the grid user,
# cd /u01/app/grid/grid-software
# unzip V46096-01_1of2.zip
# unzip V46096-01_2of2.zip
vii) use the "runcluvfy.sh" utility in the clusterware root directory to check the prerequisites
have been met
/mountpoint/clusterware/runcluvfy.sh stage -pre crsinst -n ol7-121-rac1,ol7-121-rac2
-verbose
viii) Startup the GUI then go to the proper path & execute grid run-installer
Appendi
xC
Appendi
xD
shared space
#ping -c 3 rac01
#ping -c 3 rac01-priv
#ping -c 3 rac02
#ping -c 3 rac02-priv
# nslookup rac01-scan
# nslookup rac02-scan
$ ls -ltr /dev/oracleasm/disks/
Connect to a CDB
Connect to a PDB
Managing a CDB
Managing a PDB
Location of Data files in a CDB & PDB
=============Helps
=====================================================
======
Issues: ASM Diskgroup Can Not Be Shown When Creating Database With DBCA (Doc ID
1269734.1)
Check if file permissions in <Grid_home>/bin/oracle executable are set properly, it should be 6751.
$ chmod 6751 $ORACLE_HOME/bin/oracle
#chown grid:asmadmin /dev/grid/disk1
#chown grid:asmadmin /dev/grid/disk2
#chown grid:asmadmin /dev/grid/disk3
#chmod 755 /dev/grid/disk1
#chmod 755 /dev/grid/disk2
#chmod 755 /dev/grid/disk3
Results as follows:
$ ls -l $ORACLE_HOME/bin/oracle
-rwsr-sx 1 grid oinstall 200678430 Jun 16 12:44 /app/11.2.0/grid/bin/oracle
$ ls -ltr /dev/oracleasm/disks/
total 0
brw-rw- 1 grid asmadmin 8,
brw-rw- 1 grid asmadmin 8,
brw-rw- 1 grid asmadmin 8,
brw-rw- 1 grid asmadmin 8,
34
39
36
37
Jun
Jun
Jun
Jun
23
23
23
23
14:05
14:05
14:05
16:10
ASMDATA
ASMREDO
ASMFRA
ASMRAC
https://oracle-base.com/articles/12c/oracle-db-12cr1-rac-installation-on-oracle-linux-7using-virtualbox
Sample Files
Apart form the localhost address, the "/etc/hosts" file can be left blank, but I prefer to
put the addresses in for reference.
127.0.0.1
localhost.localdomain localhost
# Public
192.168.56.101 ol7-121-rac1.localdomain
ol7-121-rac1
192.168.56.102 ol7-121-rac2.localdomain
ol7-121-rac2
# Private
192.168.1.101 ol7-121-rac1-priv.localdomain ol7-121-rac1-priv
192.168.1.102 ol7-121-rac2-priv.localdomain ol7-121-rac2-priv
# Virtual
192.168.56.103 ol7-121-rac1-vip.localdomain
ol7-121-rac1-vip
192.168.56.104 ol7-121-rac2-vip.localdomain
ol7-121-rac2-vip
# SCAN
#192.168.56.105 ol7-121-scan.localdomain ol7-121-scan
#192.168.56.106 ol7-121-scan.localdomain ol7-121-scan
#192.168.56.107 ol7-121-scan.localdomain ol7-121-scan
Log in as the "oracle" user and add the following lines at the end of the
"/home/oracle/.bash_profile" file.
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=ol7-121-rac1.localdomain
export ORACLE_UNQNAME=CDBRAC
export ORACLE_BASE=/u01/app/oracle
export GRID_HOME=/u01/app/12.1.0.2/grid
export DB_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
export ORACLE_HOME=$DB_HOME
export ORACLE_SID=cdbrac1
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
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:
$ORACLE_HOME/rdbms/jlib
export ORACLE_SID=cdbrac1
export ORACLE_HOME=$DB_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
Once the "/home/oracle/.bash_profile" has been run, you will be able to switch between
environments as follows.
$ grid_env
$ echo $ORACLE_HOME
/u01/app/12.1.0.2/grid
$ db_env
$ echo $ORACLE_HOME
/u01/app/oracle/product/12.1.0.2/db_1
$
Edit the "/home/oracle/.bash_profile" file on the "ol7-121-rac2" node to correct the
ORACLE_SID and ORACLE_HOSTNAME values.
export ORACLE_SID=cdbrac2
export ORACLE_HOSTNAME=ol7-121-rac2.localdomain
Restart the "ol7-121-rac2" virtual machine and start the "ol7-121-rac1" virtual machine.
When both nodes have started, check they can both ping all the public and private IP
addresses using the following commands.
ping -c 3 ol7-121-rac1
ping -c 3 ol7-121-rac1-priv
ping -c 3 ol7-121-rac2
ping -c 3 ol7-121-rac2-priv
INST_NAME
-------------------------------------------------------------------------------rac01.synesis.com:sildb_1
SQL>