Oracle 11gR2构建RAC之(4)--安装GI

本文涉及的产品
票证核验,票证核验 50次/账号
自定义KV模板,自定义KV模板 500次/账号
车辆物流识别,车辆物流识别 200次/月
简介:

系统环境:

操作系统:RedHat EL5

Cluster: Oracle GI(Grid Infrastructure)

Oracle:  Oracle 11.2.0.1.0


如图所示:RAC 系统架构

wKiom1OYESfyVEXyAAHMpFKmO50992.jpg

四、安装并配置GI  

 以grid用户的身份登录系统,安装GI.

wKiom1OYEamAotZUAAUK4IndH8Y143.jpg


安装并配置GI

wKioL1OYEZ3QmxGtAAWC239_9Q8935.jpg


配置scan ip(注意要和hosts文件一致)

wKiom1OYEgTCllLsAAbu13Tob-M349.jpg


添加node(注意信任关系配置)

wKioL1OYEkbgL-3lAAYHk5Z3z4s669.jpg


配置ocr和votedisk磁盘,加入到磁盘组里(normal redundancy需要三块ASM disk)

wKioL1OYEp_D_h_6AAXUuCp5MW8845.jpg


安装grid软件

wKioL1OYEx_SctUeAAcEVnMT-vM973.jpg


运行脚本(注意先后循序)

node1:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[root @node1  ~]# /u01/app/oraInventory/orainstRoot.sh 
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions  for  group.
Removing read,write,execute permissions  for  world.
 
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
 
[root @node1  ~]# /u01/ 11.2 . 0 /grid/root.sh
Running Oracle 11g root.sh script...
 
The following environment variables are set as:
     ORACLE_OWNER= grid
     ORACLE_HOME=  /u01/ 11.2 . 0 /grid
 
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ...
    Copying coraenv to /usr/local/bin ...
 
 
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2014 - 06 - 09  10 : 26 : 02 : Parsing the host name
2014 - 06 - 09  10 : 26 : 02 : Checking  for  super  user privileges
2014 - 06 - 09  10 : 26 : 02 : User has  super  user privileges
Using configuration parameter file: /u01/ 11.2 . 0 /grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys  for  user  'root' , privgrp  'root' ..
Operation successful.
   root wallet
   root wallet cert
   root cert export
   peer wallet
   profile reader wallet
   pa wallet
   peer wallet keys
   pa wallet keys
   peer cert request
   pa cert request
   peer cert
   pa cert
   peer root cert TP
   profile reader root cert TP
   pa root cert TP
   peer pa cert TP
   pa peer cert TP
   profile reader pa cert TP
   profile reader peer cert TP
   peer user cert
   pa user cert
Adding daemon to inittab
CRS- 4123 : Oracle High Availability Services has been started.
ohasd is starting
CRS- 2672 : Attempting to start  'ora.gipcd'  on  'node1'
CRS- 2672 : Attempting to start  'ora.mdnsd'  on  'node1'
CRS- 2676 : Start of  'ora.mdnsd'  on  'node1'  succeeded
CRS- 2676 : Start of  'ora.gipcd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.gpnpd'  on  'node1'
CRS- 2676 : Start of  'ora.gpnpd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.cssdmonitor'  on  'node1'
CRS- 2676 : Start of  'ora.cssdmonitor'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.cssd'  on  'node1'
CRS- 2672 : Attempting to start  'ora.diskmon'  on  'node1'
CRS- 2676 : Start of  'ora.diskmon'  on  'node1'  succeeded
CRS- 2676 : Start of  'ora.cssd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.ctssd'  on  'node1'
CRS- 2676 : Start of  'ora.ctssd'  on  'node1'  succeeded
 
ASM created and started successfully.
 
DiskGroup OCR_VOTE created successfully.
 
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys  for  user  'root' , privgrp  'root' ..
Operation successful.
CRS- 2672 : Attempting to start  'ora.crsd'  on  'node1'
CRS- 2676 : Start of  'ora.crsd'  on  'node1'  succeeded
CRS- 4256 : Updating the profile
Successful addition of voting disk 66690fe966214f83bfea1505011fc4f0.
Successful addition of voting disk 9a2c94cb249e4f85bff8f4c3930d0a1d.
Successful addition of voting disk 7cd28e57ae964f94bf31e35471fdefec.
Successfully replaced voting disk group with +OCR_VOTE.
CRS- 4256 : Updating the profile
CRS- 4266 : Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
  1 . ONLINE   66690fe966214f83bfea1505011fc4f0 (ORCL:OCR_VOTE1) [OCR_VOTE]
  2 . ONLINE   9a2c94cb249e4f85bff8f4c3930d0a1d (ORCL:OCR_VOTE2) [OCR_VOTE]
  3 . ONLINE   7cd28e57ae964f94bf31e35471fdefec (ORCL:OCR_VOTE3) [OCR_VOTE]
Located  3  voting disk(s).
CRS- 2673 : Attempting to stop  'ora.crsd'  on  'node1'
CRS- 2677 : Stop of  'ora.crsd'  on  'node1'  succeeded
CRS- 2673 : Attempting to stop  'ora.asm'  on  'node1'
CRS- 2677 : Stop of  'ora.asm'  on  'node1'  succeeded
CRS- 2673 : Attempting to stop  'ora.ctssd'  on  'node1'
CRS- 2677 : Stop of  'ora.ctssd'  on  'node1'  succeeded
CRS- 2673 : Attempting to stop  'ora.cssdmonitor'  on  'node1'
CRS- 2677 : Stop of  'ora.cssdmonitor'  on  'node1'  succeeded
CRS- 2673 : Attempting to stop  'ora.cssd'  on  'node1'
CRS- 2677 : Stop of  'ora.cssd'  on  'node1'  succeeded
CRS- 2673 : Attempting to stop  'ora.gpnpd'  on  'node1'
CRS- 2677 : Stop of  'ora.gpnpd'  on  'node1'  succeeded
CRS- 2673 : Attempting to stop  'ora.gipcd'  on  'node1'
CRS- 2677 : Stop of  'ora.gipcd'  on  'node1'  succeeded
CRS- 2673 : Attempting to stop  'ora.mdnsd'  on  'node1'
CRS- 2677 : Stop of  'ora.mdnsd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.mdnsd'  on  'node1'
CRS- 2676 : Start of  'ora.mdnsd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.gipcd'  on  'node1'
CRS- 2676 : Start of  'ora.gipcd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.gpnpd'  on  'node1'
CRS- 2676 : Start of  'ora.gpnpd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.cssdmonitor'  on  'node1'
CRS- 2676 : Start of  'ora.cssdmonitor'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.cssd'  on  'node1'
CRS- 2672 : Attempting to start  'ora.diskmon'  on  'node1'
CRS- 2676 : Start of  'ora.diskmon'  on  'node1'  succeeded
CRS- 2676 : Start of  'ora.cssd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.ctssd'  on  'node1'
CRS- 2676 : Start of  'ora.ctssd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.asm'  on  'node1'
CRS- 2676 : Start of  'ora.asm'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.crsd'  on  'node1'
CRS- 2676 : Start of  'ora.crsd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.evmd'  on  'node1'
CRS- 2676 : Start of  'ora.evmd'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.asm'  on  'node1'
CRS- 2676 : Start of  'ora.asm'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.OCR_VOTE.dg'  on  'node1'
CRS- 2676 : Start of  'ora.OCR_VOTE.dg'  on  'node1'  succeeded
CRS- 2672 : Attempting to start  'ora.registry.acfs'  on  'node1'
CRS- 2676 : Start of  'ora.registry.acfs'  on  'node1'  succeeded
 
node1      2014 / 06 / 09  10 : 31 : 50      /u01/ 11.2 . 0 /grid/cdata/node1/backup_20140609_103150.olr
Preparing packages  for  installation...
cvuqdisk- 1.0 . 7 - 1
Configure Oracle Grid Infrastructure  for  a Cluster ... succeeded
Updating inventory properties  for  clusterware
Starting Oracle Universal Installer...
 
Checking swap space: must be greater than  500  MB.   Actual  4071  MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList'  was successful.

node2:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[root @node2  ~]# /u01/app/oraInventory/orainstRoot.sh 
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions  for  group.
Removing read,write,execute permissions  for  world.
 
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
 
[root @node2  ~]# /u01/ 11.2 . 0 /grid/root.sh
Running Oracle 11g root.sh script...
 
The following environment variables are set as:
     ORACLE_OWNER= grid
     ORACLE_HOME=  /u01/ 11.2 . 0 /grid
 
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ...
    Copying coraenv to /usr/local/bin ...
 
 
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2014 - 06 - 09  10 : 32 : 35 : Parsing the host name
2014 - 06 - 09  10 : 32 : 35 : Checking  for  super  user privileges
2014 - 06 - 09  10 : 32 : 35 : User has  super  user privileges
Using configuration parameter file: /u01/ 11.2 . 0 /grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys  for  user  'root' , privgrp  'root' ..
Operation successful.
Adding daemon to inittab
CRS- 4123 : Oracle High Availability Services has been started.
ohasd is starting
 
CRS- 4402 : The CSS daemon was started in exclusive mode but found an active CSS daemon on node node1, number  1 , and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS- 2672 : Attempting to start  'ora.mdnsd'  on  'node2'
CRS- 2676 : Start of  'ora.mdnsd'  on  'node2'  succeeded
CRS- 2672 : Attempting to start  'ora.gipcd'  on  'node2'
CRS- 2676