RedHat6.5 install Oracle 12C RAC
12c RAC Installation Process
Note: The following configurations are executed on both nodes.
1. Network Configuration
Take rac01 as an example. Both nodes must be configured.
Eth0 and eth1 are bond0
Eth2 and eth3 are bond1
The Mac address record is as follows:
Eth0: 00: 0C: 29: 12: 28: 2C
Eth1: 00: 0c: 29: 12: 28: 36
Eth2: 00: 0c: 29: 12: 28: 40
Eth3: 00: 0c: 29: 12: 28: 4a
[Root @ test-rac01 network-scripts] # cat ifcfg-bond0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE = bond0
BOOTPROTO = none
BROADCAST = 10.109.67.255
IPADDR = 10.109.67.52
NETMASK = 255.255.255.0
NETWORK = 10.109.67.0
USERCTL = no
ONBOOT = yes
GATEWAY = 10.109.67.1
TYPE = BOND
[Root @ test-rac01 network-scripts] # cat ifcfg-bond1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE = bond1
BOOTPROTO = none
BROADCAST = 193.168.1.255
IPADDR = 193.168.1.102
NETMASK = 255.255.255.0
NETWORK = 193.168.1.0
USERCTL = no
ONBOOT = yes
TYPE = BOND
BONDING_OPTS = "mode = 1 miimon = 50"
[Root @ test-rac01 network-scripts] # cat ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE = eth0
BOOTPROTO = none
HWADDR = 00: 0C: 29: 12: 28: 2C
MASTER = bond0
ONBOOT = yes
SLAVE = yes
USERCTL = no
TYPE = Ethernet
PEERDNS = yes
IPV6INIT = no
[Root @ test-rac01 network-scripts] # cat ifcfg-eth1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE = eth1
BOOTPROTO = none
ONBOOT = yes
HWADDR = 00: 0c: 29: 12: 28: 36
MASTER = bond0
SLAVE = yes
USERCTL = no
TYPE = Ethernet
PEERDNS = yes
IPV6INIT = no
[Root @ test-rac01 network-scripts] # cat ifcfg-eth2
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE = eth2
BOOTPROTO = none
ONBOOT = yes
HWADDR = 00: 0c: 29: 12: 28: 40
MASTER = bond1
SLAVE = yes
USERCTL = no
TYPE = Ethernet
PEERDNS = yes
IPV6INIT = no
[Root @ test-rac01 network-scripts] # cat ifcfg-eth3
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE = eth3
BOOTPROTO = none
ONBOOT = yes
HWADDR = 00: 0c: 29: 12: 28: 4a
MASTER = bond1
SLAVE = yes
USERCTL = no
TYPE = Ethernet
PEERDNS = yes
IPV6INIT = no
2. kernel module Loading
[Root @ rac01 ~] # Vi/etc/modprobe. d/dist. conf
Add content
Alias bond0 bonding
Alias bond1 bonding
Alias scsi_hostadapter2 lpfc
[Root @ rac01 ~] # Vi/etc/modprobe. d/openfwwf. conf
Add content
Options lpfc lpfc_nodev_tmo = 30 lpfc_lun_queue_depth = 16 lpfc_discovery_threads = 32
Options hangcheck-timer hangcheck_tick = 1 hangcheck_margin = 10 hangcheck_reboot = 1
Options e1000 FlowControl = 1
3. Disable the sendmail service.
[Root @ test-rac01 ~] # Chkconfig sendmail off
[Root @ test-rac01 ~] # Chkconfig -- list | grep sendmail
Sendmail 0: off 1: off 2: off 3: off 4: off 5: off 6: off
4. Configure the hosts file and DNS
[Root @ test-rac01 ~] # Cat/etc/hosts
# Do not remove the following line, or various programs
# That require network functionality will fail.
12 7.0.0.1 test-rac01 localhost. localdomain localhost
: 1 localhost6.localdomain6 localhost6
# Public IP for Oracle 11g RAC
10.109.67.52 rac01.localdomain rac01
10.109.67.53 rac02.localdomain rac02
# Private IP for Oracle 11g RAC
193.168.1.102 rac01pri. localdomain rac01pri
193.168.1.103 rac02pri. localdomain rac02pri
# Virtual IP for Oracle 11g RAC
10.109.67.46 rac01vip. localdomain rac01vip
10.109.67.47 rac02vip. localdomain rac02vip
Ensure that the two nodes can communicate with each other using the host
Configure DNS
[Root @ rac01 ~] # Yum install bind *
Running Transaction
Installing: 32: bind-9.8.2-0.17.rc1.el6_4.6.x86_64 1/3
Installing: 32: bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64 2/3
Installing: bind-dyndb-ldap-2.3-5.el6.x86_64 3/3
Verifying: 32: bind-9.8.2-0.17.rc1.el6_4.6.x86_64 1/3
Verifying: 32: bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64 2/3
Verifying: bind-dyndb-ldap-2.3-5.el6.x86_64 3/3
Installed:
Bind. x86_64 32: 9.8.2-0.17.rc1.el6 _ 4.6
Bind-chroot.x86_64 32: 9.8.2-0.17.rc1.el6 _ 4.6
Bind-dyndb-ldap.x86_64 0: 2. 3-5.el6
Complete!
[Root @ rac01 u01] # cat/etc/named. rfc1912.zones
Zone "localdomain.com" IN {
Type master;
File "named.localdomain.com ";
Allow-update {none ;};
};
Zone "1.168.193.in-addr. arpa" IN {
Type master;
File "named.193.168.1.db ";
Allow-update {none ;};
};
Zone "67.109.10.in-addr. arpa" IN {
Type master;
File "named.10.109.67.db ";
Allow-update {none ;};
};
[Root @ rac01 u01] # cat/var/named/chroot/var/named/named.localdomain.com
$ TTL 1D
@ In soa localdomain.com. root.localdomain.com .(
0; serial
28800; refresh
14400; retry
3600000; expire
86400); minimum
NS @
A 127.0.0.1
AAAA: 1
Rac01vip in a 10.109.67.46
Rac02vip in a 10.109.67.47
Rac01 in a 10.109.67.52
Rac02 in a 10.109.67.53
Rac01pri in a 193.168.1.102
Rac02pri in a 193.168.1.103
Scan-oracle in a 10.109.67.48
Note: The scanIP address is similar to the vip address. It is a virtual IP address and does not require a real Nic.
[Root @ rac01 u01] # cat/var/named/chroot/var/named/named.10.109.67.db
$ TTL 1D
@ In soa localdomain.com. root.localdomain.com .(
0; serial
28800; refresh
14400; retry
3600000; expire
86400); minimum
NS @
A 127.0.0.1
AAAA: 1
52 in ptr rac01.localdomain.com.
53 in ptr rac02.localdomain.com.
46 in ptr rac01vip.localdomain.com.
47 in ptr rac02vip.localdomain.com.
48 in ptr scan-oracle.localdomain.com.
[Root @ rac01 u01] # cat/var/named/chroot/var/named/named.193.168.1.db
$ TTL 1D
@ In soa localdomain.com. root.localdomain.com .(
0; serial
28800; refresh
14400; retry
3600000; expire
86400); minimum
NS @
A 127.0.0.1
AAAA: 1
102 in ptr rac01pri.localdomain.com.
103 in ptr rac02pri.localdomain.com.
For more details, please continue to read the highlights on the next page:
Migration from 32-bit to 64-bit for a single Oracle instance
Install Oracle 11gR2 (x64) in CentOS 6.4)
Steps for installing Oracle 11gR2 in vmwarevm
Install Oracle 11g XE R2 In Debian