Beruflich Dokumente
Kultur Dokumente
Section 4, Lecture 39
REQUISITS
Software:
Virtual box
http://download.virtualbox.org/virtualbox/4.3.26/VirtualBox-4.3.26-98988Win.exe
Oracle linux 64bits
https://edelivery.oracle.com/linux
The course can be done with a laptop o PC with:
6G Ram at least
we'll use 2G RAM for each node
70G space free
We'll use 25 Go for OS install in each node, and 10G each for ocr and data
diskgroup
Supported Storage for RAC (GI 12c)
https://docs.oracle.com/database/121/CWLIN/storage.htm#CWLIN262
Network card:
http://docs.oracle.com/database/121/CWLIN/networks.htm#CWLIN209
Use ipv4 for interconnect as ipv6 is not supported
groupadd asmoper
groupadd asmdba
useradd -u 500 -g oinstall -G dba,oper,asmadmin,asmoper,asmdba oracle
VII Prepare both nodes
as root, change passwd oracle in both nodes
passwd oracle
Edit "/etc/hosts" file:
# 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
su - oracle
mkdir ~/.ssh
chmod 700 ~/.ssh
/usr/bin/ssh-keygen -t rsa # Accept the default settings.
rac1
su - oracle
cd ~/.ssh
cat id_rsa.pub >> authorized_keys
scp authorized_keys rac2:/home/oracle/.ssh/
rac2
su - oracle
cd ~/.ssh
cat id_rsa.pub >> authorized_keys
scp authorized_keys rac1:/home/oracle/.ssh/
go to the binary directory
service ntpd restart on both nodes.
/home/oracle/Downloads/grid/runcluvfy.sh stage -pre crsinst -n RAC1,RAC2
-fixup -verbose
########## INSTALL GRAPHIC MODE ################
xclock
/home/oracle/Downloads/grid/runInstaller -silent -ignorePrereq -showProgress
-responseFile /home/oracle/grid.rsp
As a root user, execute the following script(s):
1. /opt/oraInventory/orainstRoot.sh
2. /opt/app/12.1/root.sh
Execute /opt/oraInventory/orainstRoot.sh on the following nodes:
[rac1, rac2]
Execute /opt/app/12.1/root.sh on the following nodes:
[rac1, rac2]
Run the script on the local node first. After successful completion, you can
start the script in parallel on all other nodes.
.................................................. 100% Done.
Successfully Setup Software.
As install user, execute the following script to complete the configuration.
1. /opt/app/12.1/cfgtoollogs/configToolAllCommands
RESPONSE_FILE=/home/oracle/grid.rsp
Note:
1. This script must be run on the same host from where installer was run.
2. This script needs a small password properties file for configuration
assistants that require passwords (refer to install guide documentation).